]> git.saurik.com Git - wxWidgets.git/blob - include/wx/os2/apptrait.h
Fix wxPropertyGrid::GetPropertyRect when the last item is collapsed.
[wxWidgets.git] / include / wx / os2 / apptrait.h
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 // Copyright: (c) 2003 Stefan Neis <Stefan.Neis@t-online.de>
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_OS2_APPTRAIT_H_
12 #define _WX_OS2_APPTRAIT_H_
13
14 // ----------------------------------------------------------------------------
15 // wxGUI/ConsoleAppTraits: must derive from wxAppTraits, not wxAppTraitsBase
16 // ----------------------------------------------------------------------------
17
18 class WXDLLIMPEXP_BASE wxConsoleAppTraits : public wxConsoleAppTraitsBase
19 {
20 public:
21 #if wxUSE_CONSOLE_EVENTLOOP
22 virtual wxEventLoopBase *CreateEventLoop();
23 #endif // wxUSE_CONSOLE_EVENTLOOP
24 #if wxUSE_TIMER
25 virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer);
26 #endif
27 };
28
29 #if wxUSE_GUI
30
31 class WXDLLIMPEXP_CORE wxGUIAppTraits : public wxGUIAppTraitsBase
32 {
33 public:
34 virtual wxEventLoopBase *CreateEventLoop();
35 #if wxUSE_TIMER
36 virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer);
37 #endif
38 virtual wxPortId GetToolkitVersion(int *majVer = NULL, int *minVer = NULL) const;
39
40 // wxThread helpers
41 // ----------------
42
43 // Initialize PM facilities to enable GUI access
44 virtual void InitializeGui(unsigned long &ulHab);
45
46 // Clean up message queue.
47 virtual void TerminateGui(unsigned long ulHab);
48 #ifdef __WXGTK__
49 virtual wxString GetDesktopEnvironment() const;
50 #endif
51 #if wxUSE_SOCKETS
52 virtual wxFDIOManager *GetFDIOManager();
53 #endif
54 };
55
56 #ifndef __WXPM__
57 inline void wxGUIAppTraits::InitializeGui(unsigned long &WXUNUSED(ulHab))
58 {
59 }
60
61 inline void wxGUIAppTraits::TerminateGui(unsigned long WXUNUSED(ulHab))
62 {
63 }
64 #endif
65
66 #endif // wxUSE_GUI
67
68 #endif // _WX_OS2_APPTRAIT_H_