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