]> git.saurik.com Git - wxWidgets.git/blame - include/wx/os2/apptrait.h
remove extra ';'
[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
7// RCS-ID: $Id$
8// Copyright: (c) 2003 Stefan Neis <Stefan.Neis@t-online.de>
65571936 9// Licence: wxWindows licence
a637417c
SN
10///////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_OS2_APPTRAIT_H_
13#define _WX_OS2_APPTRAIT_H_
14
15// ----------------------------------------------------------------------------
16// wxGUI/ConsoleAppTraits: must derive from wxAppTraits, not wxAppTraitsBase
17// ----------------------------------------------------------------------------
18
19class WXDLLIMPEXP_BASE wxConsoleAppTraits : public wxConsoleAppTraitsBase
20{
21public:
6fad7ae1 22 virtual wxEventLoopBase *CreateEventLoop();
c2ca375c
VZ
23#if wxUSE_TIMER
24 virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer) { return NULL; };
25#endif
a637417c
SN
26};
27
28#if wxUSE_GUI
29
30class WXDLLIMPEXP_CORE wxGUIAppTraits : public wxGUIAppTraitsBase
31{
32public:
585892aa 33 virtual wxEventLoopBase *CreateEventLoop();
c2ca375c
VZ
34#if wxUSE_TIMER
35 virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer);
36#endif
8bb6b2c0 37 virtual wxPortId GetToolkitVersion(int *majVer, int *minVer) const;
a637417c
SN
38
39 // wxThread helpers
40 // ----------------
41
42 // Initialize PM facilities to enable GUI access
43 virtual void InitializeGui(unsigned long &ulHab);
44
45 // Clean up message queue.
46 virtual void TerminateGui(unsigned long ulHab);
7b44d740
SN
47#ifdef __WXGTK__
48 virtual wxString GetDesktopEnvironment() const;
49#endif
a637417c
SN
50};
51
52#endif // wxUSE_GUI
53
54#endif // _WX_OS2_APPTRAIT_H_