mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 00:59:44 -06:00
Upgrade WX to r74856, mainly to support @2x.
This commit is contained in:
42
Externals/wxWidgets3/include/wx/unix/apptbase.h
vendored
42
Externals/wxWidgets3/include/wx/unix/apptbase.h
vendored
@ -4,7 +4,6 @@
|
||||
// Author: Vadim Zeitlin
|
||||
// Modified by:
|
||||
// Created: 23.06.2003
|
||||
// RCS-ID: $Id: apptbase.h 61688 2009-08-17 23:02:46Z VZ $
|
||||
// Copyright: (c) 2003 Vadim Zeitlin <vadim@wxwidgets.org>
|
||||
// Licence: wxWindows licence
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
@ -12,9 +11,12 @@
|
||||
#ifndef _WX_UNIX_APPTBASE_H_
|
||||
#define _WX_UNIX_APPTBASE_H_
|
||||
|
||||
struct wxEndProcessData;
|
||||
struct wxExecuteData;
|
||||
#include "wx/evtloop.h"
|
||||
#include "wx/evtloopsrc.h"
|
||||
|
||||
class wxExecuteData;
|
||||
class wxFDIOManager;
|
||||
class wxEventLoopSourcesManagerBase;
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxAppTraits: the Unix version adds extra hooks needed by Unix code
|
||||
@ -26,23 +28,13 @@ public:
|
||||
// wxExecute() support methods
|
||||
// ---------------------------
|
||||
|
||||
// wait for the process termination, return whatever wxExecute() must
|
||||
// return
|
||||
// Wait for the process termination and return its exit code or -1 on error.
|
||||
//
|
||||
// base class implementation handles all cases except wxEXEC_SYNC without
|
||||
// wxEXEC_NOEVENTS one which is implemented at the GUI level
|
||||
// Notice that this is only used when execData.flags contains wxEXEC_SYNC
|
||||
// and does not contain wxEXEC_NOEVENTS, i.e. when we need to really wait
|
||||
// until the child process exit and dispatch the events while doing it.
|
||||
virtual int WaitForChild(wxExecuteData& execData);
|
||||
|
||||
// integrate the monitoring of the given fd with the port-specific event
|
||||
// loop: when this fd, which corresponds to a dummy pipe opened between the
|
||||
// parent and child processes, is closed by the child, the parent is
|
||||
// notified about this via a call to wxHandleProcessTermination() function
|
||||
//
|
||||
// the default implementation uses wxFDIODispatcher and so is suitable for
|
||||
// the console applications or ports which don't have any specific event
|
||||
// loop
|
||||
virtual int AddProcessCallback(wxEndProcessData *data, int fd);
|
||||
|
||||
#if wxUSE_SOCKETS
|
||||
// return a pointer to the object which should be used to integrate
|
||||
// monitoring of the file descriptors to the event loop (currently this is
|
||||
@ -56,11 +48,19 @@ public:
|
||||
virtual wxFDIOManager *GetFDIOManager();
|
||||
#endif // wxUSE_SOCKETS
|
||||
|
||||
#if wxUSE_CONSOLE_EVENTLOOP
|
||||
// Return a non-NULL pointer to the object responsible for managing the
|
||||
// event loop sources in this kind of application.
|
||||
virtual wxEventLoopSourcesManagerBase* GetEventLoopSourcesManager();
|
||||
#endif // wxUSE_CONSOLE_EVENTLOOP
|
||||
|
||||
protected:
|
||||
// a helper for the implementation of WaitForChild() in wxGUIAppTraits:
|
||||
// checks the streams used for redirected IO in execData and returns true
|
||||
// if there is any activity in them
|
||||
bool CheckForRedirectedIO(wxExecuteData& execData);
|
||||
// Wait for the process termination by running the given event loop until
|
||||
// this happens.
|
||||
//
|
||||
// This is used by the public WaitForChild() after creating the event loop
|
||||
// of the appropriate kind.
|
||||
int RunLoopUntilChildExit(wxExecuteData& execData, wxEventLoopBase& loop);
|
||||
};
|
||||
|
||||
#endif // _WX_UNIX_APPTBASE_H_
|
||||
|
Reference in New Issue
Block a user