]>
Commit | Line | Data |
---|---|---|
8cf73271 SC |
1 | /////////////////////////////////////////////////////////////////////////////// |
2 | // Name: wx/mac/apptrait.h | |
3 | // Purpose: standard implementations of wxAppTraits for MacOS | |
4 | // Author: Vadim Zeitlin | |
5 | // Modified by: Stefan Csomor | |
6 | // Created: 23.06.2003 | |
7 | // RCS-ID: $Id$ | |
77ffb593 | 8 | // Copyright: (c) 2003 Vadim Zeitlin <vadim@wxwidgets.org> |
65571936 | 9 | // Licence: wxWindows licence |
8cf73271 SC |
10 | /////////////////////////////////////////////////////////////////////////////// |
11 | ||
12 | #ifndef _WX_MAC_APPTRAIT_H_ | |
13 | #define _WX_MAC_APPTRAIT_H_ | |
14 | ||
15 | // ---------------------------------------------------------------------------- | |
16 | // wxGUI/ConsoleAppTraits: must derive from wxAppTraits, not wxAppTraitsBase | |
17 | // ---------------------------------------------------------------------------- | |
18 | ||
19 | class WXDLLEXPORT wxConsoleAppTraits : public wxConsoleAppTraitsBase | |
20 | { | |
21 | public: | |
c2ca375c VZ |
22 | // no timer support in wxBase yet |
23 | #if wxUSE_TIMER | |
24 | virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer) { return NULL; }; | |
25 | #endif | |
8cf73271 SC |
26 | // other miscellaneous helpers |
27 | // --------------------------- | |
28 | ||
29 | virtual wxToolkitInfo& GetToolkitInfo(); | |
30 | }; | |
31 | ||
32 | #if wxUSE_GUI | |
33 | ||
34 | class WXDLLEXPORT wxGUIAppTraits : public wxGUIAppTraitsBase | |
35 | { | |
36 | public: | |
c2ca375c VZ |
37 | #if wxUSE_TIMER |
38 | virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer); | |
39 | #endif | |
8cf73271 SC |
40 | // other miscellaneous helpers |
41 | // --------------------------- | |
42 | ||
43 | virtual wxToolkitInfo& GetToolkitInfo(); | |
44 | }; | |
45 | ||
46 | #endif // wxUSE_GUI | |
47 | ||
48 | #endif // _WX_MAC_APPTRAIT_H_ | |
49 |