]> git.saurik.com Git - wxWidgets.git/blame - include/wx/palmos/apptrait.h
Some wxComboCtrlBase member functions were enclosed within incorrect compatibility...
[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
6afc1b46 5// Modified by: Yunhui Fu
ffecfa5a 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 14
6afc1b46
VZ
15#if wxUSE_TIMER
16#include "wx/palmos/private/timer.h" // wxPalmOSTimerImpl
17#endif // wxUSE_TIMER
18
ffecfa5a
JS
19// ----------------------------------------------------------------------------
20// wxGUI/ConsoleAppTraits: must derive from wxAppTraits, not wxAppTraitsBase
21// ----------------------------------------------------------------------------
22
23class WXDLLIMPEXP_BASE wxConsoleAppTraits : public wxConsoleAppTraitsBase
24{
25public:
e2fc40b4
VZ
26#if wxUSE_CONSOLE_EVENTLOOP
27 virtual wxEventLoopBase *CreateEventLoop();
28#endif // wxUSE_CONSOLE_EVENTLOOP
ffecfa5a 29 virtual void *BeforeChildWaitLoop();
ffecfa5a 30 virtual void AfterChildWaitLoop(void *data);
c2ca375c 31#if wxUSE_TIMER
e2fc40b4 32 virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer) { return new wxPalmOSTimerImpl(timer); }
c2ca375c 33#endif
ffecfa5a 34 virtual bool DoMessageFromThreadWait();
e2fc40b4 35 virtual WXDWORD WaitForThread(WXHANDLE hThread);
ffecfa5a
JS
36};
37
38#if wxUSE_GUI
39
40class WXDLLIMPEXP_CORE wxGUIAppTraits : public wxGUIAppTraitsBase
41{
42public:
e2fc40b4 43 virtual wxEventLoopBase *CreateEventLoop();
ffecfa5a 44 virtual void *BeforeChildWaitLoop();
ffecfa5a 45 virtual void AfterChildWaitLoop(void *data);
c2ca375c
VZ
46#if wxUSE_TIMER
47 // there is no wxTimer support yet
48 virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer);
49#endif
ffecfa5a 50 virtual bool DoMessageFromThreadWait();
1f5c6629 51 virtual wxPortId GetToolkitVersion(int *majVer = NULL, int *minVer = NULL) const;
ffecfa5a
JS
52};
53
54#endif // wxUSE_GUI
55
5445a26c 56#endif // _WX_PALM_APPTRAIT_H_
ffecfa5a 57