]>
Commit | Line | Data |
---|---|---|
a637417c SN |
1 | /////////////////////////////////////////////////////////////////////////////// |
2 | // Name: wx/os2/apptrait.h | |
3 | // Purpose: class implementing wxAppTraits for OS/2 | |
4 | // Author: Stefan Neis | |
5 | // Modified by: | |
6 | // Created: 22.09.2003 | |
7 | // RCS-ID: $Id$ | |
8 | // Copyright: (c) 2003 Stefan Neis <Stefan.Neis@t-online.de> | |
65571936 | 9 | // Licence: wxWindows licence |
a637417c SN |
10 | /////////////////////////////////////////////////////////////////////////////// |
11 | ||
12 | #ifndef _WX_OS2_APPTRAIT_H_ | |
13 | #define _WX_OS2_APPTRAIT_H_ | |
14 | ||
15 | // ---------------------------------------------------------------------------- | |
16 | // wxGUI/ConsoleAppTraits: must derive from wxAppTraits, not wxAppTraitsBase | |
17 | // ---------------------------------------------------------------------------- | |
18 | ||
19 | class WXDLLIMPEXP_BASE wxConsoleAppTraits : public wxConsoleAppTraitsBase | |
20 | { | |
21 | public: | |
c2ca375c VZ |
22 | #if wxUSE_TIMER |
23 | virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer) { return NULL; }; | |
24 | #endif | |
a637417c SN |
25 | }; |
26 | ||
27 | #if wxUSE_GUI | |
28 | ||
29 | class WXDLLIMPEXP_CORE wxGUIAppTraits : public wxGUIAppTraitsBase | |
30 | { | |
31 | public: | |
c2ca375c VZ |
32 | #if wxUSE_TIMER |
33 | virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer); | |
34 | #endif | |
8bb6b2c0 | 35 | virtual wxPortId GetToolkitVersion(int *majVer, int *minVer) const; |
a637417c SN |
36 | |
37 | // wxThread helpers | |
38 | // ---------------- | |
39 | ||
40 | // Initialize PM facilities to enable GUI access | |
41 | virtual void InitializeGui(unsigned long &ulHab); | |
42 | ||
43 | // Clean up message queue. | |
44 | virtual void TerminateGui(unsigned long ulHab); | |
7b44d740 SN |
45 | #ifdef __WXGTK__ |
46 | virtual wxString GetDesktopEnvironment() const; | |
47 | #endif | |
a637417c SN |
48 | }; |
49 | ||
50 | #endif // wxUSE_GUI | |
51 | ||
52 | #endif // _WX_OS2_APPTRAIT_H_ |