1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/os2/apptrait.h
3 // Purpose: class implementing wxAppTraits for OS/2
7 // Copyright: (c) 2003 Stefan Neis <Stefan.Neis@t-online.de>
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_OS2_APPTRAIT_H_
12 #define _WX_OS2_APPTRAIT_H_
14 // ----------------------------------------------------------------------------
15 // wxGUI/ConsoleAppTraits: must derive from wxAppTraits, not wxAppTraitsBase
16 // ----------------------------------------------------------------------------
18 class WXDLLIMPEXP_BASE wxConsoleAppTraits
: public wxConsoleAppTraitsBase
21 #if wxUSE_CONSOLE_EVENTLOOP
22 virtual wxEventLoopBase
*CreateEventLoop();
23 #endif // wxUSE_CONSOLE_EVENTLOOP
25 virtual wxTimerImpl
*CreateTimerImpl(wxTimer
*timer
);
31 class WXDLLIMPEXP_CORE wxGUIAppTraits
: public wxGUIAppTraitsBase
34 virtual wxEventLoopBase
*CreateEventLoop();
36 virtual wxTimerImpl
*CreateTimerImpl(wxTimer
*timer
);
38 virtual wxPortId
GetToolkitVersion(int *majVer
= NULL
, int *minVer
= NULL
) const;
43 // Initialize PM facilities to enable GUI access
44 virtual void InitializeGui(unsigned long &ulHab
);
46 // Clean up message queue.
47 virtual void TerminateGui(unsigned long ulHab
);
49 virtual wxString
GetDesktopEnvironment() const;
52 virtual wxFDIOManager
*GetFDIOManager();
57 inline void wxGUIAppTraits::InitializeGui(unsigned long &WXUNUSED(ulHab
))
61 inline void wxGUIAppTraits::TerminateGui(unsigned long WXUNUSED(ulHab
))
68 #endif // _WX_OS2_APPTRAIT_H_