]>
git.saurik.com Git - wxWidgets.git/blob - src/unix/apptraits.cpp
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: src/unix/apptraits.cpp
3 // Purpose: implementation of wxGUIAppTraits for Unix systems
4 // Author: Vadim Zeitlin
6 // Copyright: (c) 2008 Vadim Zeitlin <vadim@wxwindows.org>
7 // Licence: wxWindows licence
8 ///////////////////////////////////////////////////////////////////////////////
10 // ============================================================================
12 // ============================================================================
14 // ----------------------------------------------------------------------------
16 // ----------------------------------------------------------------------------
18 // for compilers that support precompilation, includes "wx.h".
19 #include "wx/wxprec.h"
25 #include "wx/apptrait.h"
31 #include "wx/unix/execute.h"
32 #include "wx/evtloop.h"
34 // ============================================================================
36 // ============================================================================
38 int wxGUIAppTraits::WaitForChild(wxExecuteData
& execData
)
40 // prepare to wait for the child termination: show to the user that we're
41 // busy and refuse all input unless explicitly told otherwise
43 wxWindowDisabler
wd(!(execData
.flags
& wxEXEC_NODISABLE
));
45 // Allocate an event loop that will be used to wait for the process
46 // to terminate, will handle stdout, stderr, and any other events and pass
47 // it to the common (to console and GUI) code which will run it.
49 return RunLoopUntilChildExit(execData
, loop
);