]> git.saurik.com Git - wxWidgets.git/blame - include/wx/palmos/apptrait.h
Changed wxHTML default font size for printing to be 12pt regardless
[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
JS
29 virtual void *BeforeChildWaitLoop();
30 virtual void AlwaysYield();
31 virtual void AfterChildWaitLoop(void *data);
c2ca375c 32#if wxUSE_TIMER
e2fc40b4 33 virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer) { return new wxPalmOSTimerImpl(timer); }
c2ca375c 34#endif
ffecfa5a 35 virtual bool DoMessageFromThreadWait();
e2fc40b4 36 virtual WXDWORD WaitForThread(WXHANDLE hThread);
ffecfa5a
JS
37};
38
39#if wxUSE_GUI
40
41class WXDLLIMPEXP_CORE wxGUIAppTraits : public wxGUIAppTraitsBase
42{
43public:
e2fc40b4 44 virtual wxEventLoopBase *CreateEventLoop();
ffecfa5a
JS
45 virtual void *BeforeChildWaitLoop();
46 virtual void AlwaysYield();
47 virtual void AfterChildWaitLoop(void *data);
c2ca375c
VZ
48#if wxUSE_TIMER
49 // there is no wxTimer support yet
50 virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer);
51#endif
ffecfa5a 52 virtual bool DoMessageFromThreadWait();
1f5c6629 53 virtual wxPortId GetToolkitVersion(int *majVer = NULL, int *minVer = NULL) const;
ffecfa5a
JS
54};
55
56#endif // wxUSE_GUI
57
5445a26c 58#endif // _WX_PALM_APPTRAIT_H_
ffecfa5a 59