]> git.saurik.com Git - wxWidgets.git/blame - include/wx/palmos/apptrait.h
add check for wxUSE_AUTOID_MANAGEMENT being defined
[wxWidgets.git] / include / wx / palmos / apptrait.h
CommitLineData
ffecfa5a
JS
1///////////////////////////////////////////////////////////////////////////////
2// Name: wx/palmos/apptrait.h
3// Purpose: class implementing wxAppTraits for Palm OS
e1d63b79 4// Author: William Osborne - minimal working wxPalmOS port
ffecfa5a
JS
5// Modified by:
6// Created: 10/13/04
e1d63b79 7// RCS-ID: $Id$
ffecfa5a
JS
8// Copyright: (c) William Osborne
9// Licence: wxWindows licence
10///////////////////////////////////////////////////////////////////////////////
11
5445a26c
WS
12#ifndef _WX_PALM_APPTRAIT_H_
13#define _WX_PALM_APPTRAIT_H_
ffecfa5a
JS
14
15// ----------------------------------------------------------------------------
16// wxGUI/ConsoleAppTraits: must derive from wxAppTraits, not wxAppTraitsBase
17// ----------------------------------------------------------------------------
18
19class WXDLLIMPEXP_BASE wxConsoleAppTraits : public wxConsoleAppTraitsBase
20{
21public:
e2fc40b4
VZ
22#if wxUSE_CONSOLE_EVENTLOOP
23 virtual wxEventLoopBase *CreateEventLoop();
24#endif // wxUSE_CONSOLE_EVENTLOOP
ffecfa5a
JS
25 virtual void *BeforeChildWaitLoop();
26 virtual void AlwaysYield();
27 virtual void AfterChildWaitLoop(void *data);
c2ca375c 28#if wxUSE_TIMER
e2fc40b4 29 virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer) { return new wxPalmOSTimerImpl(timer); }
c2ca375c 30#endif
ffecfa5a 31 virtual bool DoMessageFromThreadWait();
e2fc40b4 32 virtual WXDWORD WaitForThread(WXHANDLE hThread);
ffecfa5a
JS
33};
34
35#if wxUSE_GUI
36
37class WXDLLIMPEXP_CORE wxGUIAppTraits : public wxGUIAppTraitsBase
38{
39public:
e2fc40b4 40 virtual wxEventLoopBase *CreateEventLoop();
ffecfa5a
JS
41 virtual void *BeforeChildWaitLoop();
42 virtual void AlwaysYield();
43 virtual void AfterChildWaitLoop(void *data);
c2ca375c
VZ
44#if wxUSE_TIMER
45 // there is no wxTimer support yet
46 virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer);
47#endif
ffecfa5a 48 virtual bool DoMessageFromThreadWait();
8bb6b2c0 49 virtual wxPortId GetToolkitVersion(int *majVer, int *minVer) const;
ffecfa5a
JS
50};
51
52#endif // wxUSE_GUI
53
5445a26c 54#endif // _WX_PALM_APPTRAIT_H_
ffecfa5a 55