]>
Commit | Line | Data |
---|---|---|
ffecfa5a JS |
1 | /////////////////////////////////////////////////////////////////////////////// |
2 | // Name: wx/palmos/apptrait.h | |
3 | // Purpose: class implementing wxAppTraits for Palm OS | |
e1d63b79 | 4 | // Author: William Osborne - minimal working wxPalmOS port |
6afc1b46 | 5 | // Modified by: Yunhui Fu |
ffecfa5a | 6 | // Created: 10/13/04 |
e1d63b79 | 7 | // RCS-ID: $Id$ |
ffecfa5a JS |
8 | // Copyright: (c) William Osborne |
9 | // Licence: wxWindows licence | |
10 | /////////////////////////////////////////////////////////////////////////////// | |
11 | ||
5445a26c WS |
12 | #ifndef _WX_PALM_APPTRAIT_H_ |
13 | #define _WX_PALM_APPTRAIT_H_ | |
ffecfa5a | 14 | |
6afc1b46 VZ |
15 | #if wxUSE_TIMER |
16 | #include "wx/palmos/private/timer.h" // wxPalmOSTimerImpl | |
17 | #endif // wxUSE_TIMER | |
18 | ||
ffecfa5a JS |
19 | // ---------------------------------------------------------------------------- |
20 | // wxGUI/ConsoleAppTraits: must derive from wxAppTraits, not wxAppTraitsBase | |
21 | // ---------------------------------------------------------------------------- | |
22 | ||
23 | class WXDLLIMPEXP_BASE wxConsoleAppTraits : public wxConsoleAppTraitsBase | |
24 | { | |
25 | public: | |
e2fc40b4 VZ |
26 | #if wxUSE_CONSOLE_EVENTLOOP |
27 | virtual wxEventLoopBase *CreateEventLoop(); | |
28 | #endif // wxUSE_CONSOLE_EVENTLOOP | |
ffecfa5a | 29 | virtual void *BeforeChildWaitLoop(); |
ffecfa5a | 30 | virtual void AfterChildWaitLoop(void *data); |
c2ca375c | 31 | #if wxUSE_TIMER |
e2fc40b4 | 32 | virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer) { return new wxPalmOSTimerImpl(timer); } |
dd1af40c VZ |
33 | #endif // wxUSE_TIMER |
34 | #if wxUSE_THREADS | |
ffecfa5a | 35 | virtual bool DoMessageFromThreadWait(); |
e2fc40b4 | 36 | virtual WXDWORD WaitForThread(WXHANDLE hThread); |
dd1af40c | 37 | #endif // wxUSE_THREADS |
ffecfa5a JS |
38 | }; |
39 | ||
40 | #if wxUSE_GUI | |
41 | ||
42 | class WXDLLIMPEXP_CORE wxGUIAppTraits : public wxGUIAppTraitsBase | |
43 | { | |
44 | public: | |
e2fc40b4 | 45 | virtual wxEventLoopBase *CreateEventLoop(); |
ffecfa5a | 46 | virtual void *BeforeChildWaitLoop(); |
ffecfa5a | 47 | virtual void AfterChildWaitLoop(void *data); |
c2ca375c VZ |
48 | #if wxUSE_TIMER |
49 | // there is no wxTimer support yet | |
50 | virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer); | |
dd1af40c VZ |
51 | #endif // wxUSE_TIMER |
52 | #if wxUSE_THREADS | |
ffecfa5a | 53 | virtual bool DoMessageFromThreadWait(); |
dd1af40c | 54 | #endif // wxUSE_THREADS |
1f5c6629 | 55 | virtual wxPortId GetToolkitVersion(int *majVer = NULL, int *minVer = NULL) const; |
ffecfa5a JS |
56 | }; |
57 | ||
58 | #endif // wxUSE_GUI | |
59 | ||
5445a26c | 60 | #endif // _WX_PALM_APPTRAIT_H_ |
ffecfa5a | 61 |