* Fixed Async -> sync in wxExecute

* Added documentation about wxProcess, ...
* Added wxDataStream::WriteString and wxDataStream::ReadString


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@178 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Guilhem Lavaux
1998-07-03 17:44:34 +00:00
parent 884360bc11
commit eafc087e69
7 changed files with 91 additions and 11 deletions

View File

@@ -120,6 +120,7 @@ $$\image{14cm;0cm}{wxclass.ps}$$
\input point.tex
\input prevwin.tex
\input print.tex
\input process.tex
\input postscpt.tex
\input query.tex
\input radiobox.tex

View File

@@ -905,9 +905,9 @@ See also \helpref{wxIsBusy}{wxisbusy}.
\membersection{::wxExecute}\label{wxexecute}
\func{long}{wxExecute}{\param{const wxString\& }{command}, \param{bool }{sync = FALSE}}
\func{long}{wxExecute}{\param{const wxString\& }{command}, \param{bool }{sync = FALSE}, \param{wxProcess *}{callback = NULL}}
\func{long}{wxExecute}{\param{const wxString\& *}{argv}, \param{bool }{sync = FALSE}}
\func{long}{wxExecute}{\param{const wxString\& *}{argv}, \param{bool }{sync = FALSE}, \param{wxProcess *}{callback = NULL}}
Executes another program in UNIX or Windows.
@@ -923,7 +923,11 @@ If execution is asynchronous, the return value is the process id,
otherwise it is a status value. A zero value indicates that the command could not
be executed.
See also \helpref{wxShell}{wxshell}.
If callback isn't NULL and if execution is asynchronous,
\helpref{wxProcess::OnTerminate}{wxprocessonterminate} will be called when
the process finishes.
See also \helpref{wxShell}{wxshell}, \helpref{wxProcess}{wxprocess}.
\membersection{::wxExit}\label{wxexit}

39
docs/latex/wx/process.tex Normal file
View File

@@ -0,0 +1,39 @@
\section{\class{wxProcess}}\label{wxprocess}
This class contains a method which is invoked when a process finishes.
It can raise a \helpref{wxProcessEvent}{wxprocessevent} if wxProcess::OnTerminate
isn't overriden.
\wxheading{Derived from}
\helpref{wxEvtHandler}{wxevthandler}
\latexignore{\rtfignore{\wxheading{Members}}}
\membersection{wxProcess::wxProcess}\label{wxprocessconstr}
\func{}{wxProcess}{\param{wxEvtHandler *}{ parent = NULL}, \param{int}{ id = -1}}
Constructs a process object. {\it id} is only used in the case you want to
use wxWindows events.
\wxheading{Parameters}
\docparam{parent}{The event handler parent.}
\docparam{id}{id of an event.}
\membersection{wxProcess::\destruct{wxProcess}}
\func{}{\destruct{wxProcess}}{\void}
Destroys the wxProcess object.
\membersection{wxProcess::OnTerminate}\label{wxprocessonterminate}
\constfunc{void}{OnTerminate}{\param{int}{ pid}}
It is called when the process with the pid {\it pid} finishes.
It raises a wxWindows event when it isn't overriden.
\docparam{pid}{The pid of the process which ends.}