]> git.saurik.com Git - wxWidgets.git/blame - include/wx/os2/apptrait.h
Fix wxPropertyGrid::GetPropertyRect when the last item is collapsed.
[wxWidgets.git] / include / wx / os2 / apptrait.h
CommitLineData
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
a637417c 7// Copyright: (c) 2003 Stefan Neis <Stefan.Neis@t-online.de>
65571936 8// Licence: wxWindows licence
a637417c
SN
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
18class WXDLLIMPEXP_BASE wxConsoleAppTraits : public wxConsoleAppTraitsBase
19{
20public:
5c80fea8 21#if wxUSE_CONSOLE_EVENTLOOP
6fad7ae1 22 virtual wxEventLoopBase *CreateEventLoop();
5c80fea8 23#endif // wxUSE_CONSOLE_EVENTLOOP
c2ca375c 24#if wxUSE_TIMER
5c80fea8 25 virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer);
c2ca375c 26#endif
a637417c
SN
27};
28
29#if wxUSE_GUI
30
31class WXDLLIMPEXP_CORE wxGUIAppTraits : public wxGUIAppTraitsBase
32{
33public:
585892aa 34 virtual wxEventLoopBase *CreateEventLoop();
c2ca375c
VZ
35#if wxUSE_TIMER
36 virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer);
37#endif
1f5c6629 38 virtual wxPortId GetToolkitVersion(int *majVer = NULL, int *minVer = NULL) const;
a637417c
SN
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);
7b44d740
SN
48#ifdef __WXGTK__
49 virtual wxString GetDesktopEnvironment() const;
50#endif
f90913e2 51#if wxUSE_SOCKETS
6bcc1145 52 virtual wxFDIOManager *GetFDIOManager();
f90913e2 53#endif
a637417c
SN
54};
55
eccec0f8
SN
56#ifndef __WXPM__
57inline void wxGUIAppTraits::InitializeGui(unsigned long &WXUNUSED(ulHab))
58{
59}
60
61inline void wxGUIAppTraits::TerminateGui(unsigned long WXUNUSED(ulHab))
62{
63}
64#endif
65
a637417c
SN
66#endif // wxUSE_GUI
67
68#endif // _WX_OS2_APPTRAIT_H_