]>
Commit | Line | Data |
---|---|---|
e2478fde VZ |
1 | /////////////////////////////////////////////////////////////////////////////// |
2 | // Name: wx/msw/apptrait.h | |
3 | // Purpose: class implementing wxAppTraits for MSW | |
4 | // Author: Vadim Zeitlin | |
5 | // Modified by: | |
6 | // Created: 21.06.2003 | |
7 | // RCS-ID: $Id$ | |
77ffb593 | 8 | // Copyright: (c) 2003 Vadim Zeitlin <vadim@wxwidgets.org> |
65571936 | 9 | // Licence: wxWindows licence |
e2478fde VZ |
10 | /////////////////////////////////////////////////////////////////////////////// |
11 | ||
12 | #ifndef _WX_MSW_APPTRAIT_H_ | |
13 | #define _WX_MSW_APPTRAIT_H_ | |
14 | ||
15 | // ---------------------------------------------------------------------------- | |
16 | // wxGUI/ConsoleAppTraits: must derive from wxAppTraits, not wxAppTraitsBase | |
17 | // ---------------------------------------------------------------------------- | |
18 | ||
bb24c68f | 19 | class WXDLLIMPEXP_BASE wxConsoleAppTraits : public wxConsoleAppTraitsBase |
e2478fde VZ |
20 | { |
21 | public: | |
2ddff00c | 22 | virtual wxEventLoopBase *CreateEventLoop(); |
e2478fde | 23 | virtual void *BeforeChildWaitLoop(); |
e2478fde | 24 | virtual void AfterChildWaitLoop(void *data); |
c2ca375c VZ |
25 | #if wxUSE_TIMER |
26 | virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer); | |
27 | #endif | |
e2478fde | 28 | virtual bool DoMessageFromThreadWait(); |
b95a7c31 | 29 | virtual WXDWORD WaitForThread(WXHANDLE hThread, int flags); |
784ee7d5 VZ |
30 | #ifndef __WXWINCE__ |
31 | virtual bool CanUseStderr() { return true; } | |
32 | virtual bool WriteToStderr(const wxString& text); | |
33 | #endif // !__WXWINCE__ | |
e2478fde VZ |
34 | }; |
35 | ||
36 | #if wxUSE_GUI | |
37 | ||
bb24c68f | 38 | class WXDLLIMPEXP_CORE wxGUIAppTraits : public wxGUIAppTraitsBase |
e2478fde VZ |
39 | { |
40 | public: | |
2ddff00c | 41 | virtual wxEventLoopBase *CreateEventLoop(); |
e2478fde | 42 | virtual void *BeforeChildWaitLoop(); |
e2478fde | 43 | virtual void AfterChildWaitLoop(void *data); |
c2ca375c VZ |
44 | #if wxUSE_TIMER |
45 | virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer); | |
46 | #endif | |
e2478fde | 47 | virtual bool DoMessageFromThreadWait(); |
1f5c6629 | 48 | virtual wxPortId GetToolkitVersion(int *majVer = NULL, int *minVer = NULL) const; |
b95a7c31 | 49 | virtual WXDWORD WaitForThread(WXHANDLE hThread, int flags); |
784ee7d5 VZ |
50 | |
51 | #ifndef __WXWINCE__ | |
52 | virtual bool CanUseStderr(); | |
53 | virtual bool WriteToStderr(const wxString& text); | |
54 | #endif // !__WXWINCE__ | |
e2478fde VZ |
55 | }; |
56 | ||
57 | #endif // wxUSE_GUI | |
58 | ||
59 | #endif // _WX_MSW_APPTRAIT_H_ |