2003-06-23 20:56:19 -04:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/msw/apptrait.h
|
|
|
|
// Purpose: class implementing wxAppTraits for MSW
|
|
|
|
// Author: Vadim Zeitlin
|
|
|
|
// Modified by:
|
|
|
|
// Created: 21.06.2003
|
|
|
|
// RCS-ID: $Id$
|
2004-05-23 10:56:36 -04:00
|
|
|
// Copyright: (c) 2003 Vadim Zeitlin <vadim@wxwidgets.org>
|
2004-05-23 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
2003-06-23 20:56:19 -04:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_MSW_APPTRAIT_H_
|
|
|
|
#define _WX_MSW_APPTRAIT_H_
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// wxGUI/ConsoleAppTraits: must derive from wxAppTraits, not wxAppTraitsBase
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
2003-07-04 09:00:07 -04:00
|
|
|
class WXDLLIMPEXP_BASE wxConsoleAppTraits : public wxConsoleAppTraitsBase
|
2003-06-23 20:56:19 -04:00
|
|
|
{
|
|
|
|
public:
|
2007-05-21 22:30:01 -04:00
|
|
|
virtual wxEventLoopBase *CreateEventLoop();
|
2003-06-23 20:56:19 -04:00
|
|
|
virtual void *BeforeChildWaitLoop();
|
|
|
|
virtual void AlwaysYield();
|
|
|
|
virtual void AfterChildWaitLoop(void *data);
|
2007-04-19 21:29:16 -04:00
|
|
|
#if wxUSE_TIMER
|
|
|
|
virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer);
|
|
|
|
#endif
|
2003-06-23 20:56:19 -04:00
|
|
|
virtual bool DoMessageFromThreadWait();
|
2007-02-02 17:46:48 -05:00
|
|
|
virtual WXDWORD WaitForThread(WXHANDLE hThread);
|
2008-05-23 19:28:13 -04:00
|
|
|
#ifndef __WXWINCE__
|
|
|
|
virtual bool CanUseStderr() { return true; }
|
|
|
|
virtual bool WriteToStderr(const wxString& text);
|
|
|
|
#endif // !__WXWINCE__
|
2003-06-23 20:56:19 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#if wxUSE_GUI
|
|
|
|
|
2003-07-04 09:00:07 -04:00
|
|
|
class WXDLLIMPEXP_CORE wxGUIAppTraits : public wxGUIAppTraitsBase
|
2003-06-23 20:56:19 -04:00
|
|
|
{
|
|
|
|
public:
|
2007-05-21 22:30:01 -04:00
|
|
|
virtual wxEventLoopBase *CreateEventLoop();
|
2003-06-23 20:56:19 -04:00
|
|
|
virtual void *BeforeChildWaitLoop();
|
|
|
|
virtual void AlwaysYield();
|
|
|
|
virtual void AfterChildWaitLoop(void *data);
|
2007-04-19 21:29:16 -04:00
|
|
|
#if wxUSE_TIMER
|
|
|
|
virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer);
|
|
|
|
#endif
|
2003-06-23 20:56:19 -04:00
|
|
|
virtual bool DoMessageFromThreadWait();
|
2008-03-21 10:21:52 -04:00
|
|
|
virtual wxPortId GetToolkitVersion(int *majVer = NULL, int *minVer = NULL) const;
|
2007-02-02 17:46:48 -05:00
|
|
|
virtual WXDWORD WaitForThread(WXHANDLE hThread);
|
2008-05-23 19:28:13 -04:00
|
|
|
|
|
|
|
#ifndef __WXWINCE__
|
|
|
|
virtual bool CanUseStderr();
|
|
|
|
virtual bool WriteToStderr(const wxString& text);
|
|
|
|
#endif // !__WXWINCE__
|
2003-06-23 20:56:19 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // wxUSE_GUI
|
|
|
|
|
|
|
|
#endif // _WX_MSW_APPTRAIT_H_
|