2004-10-19 09:40:30 -04:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/palmos/apptrait.h
|
|
|
|
// Purpose: class implementing wxAppTraits for Palm OS
|
2005-01-18 16:14:27 -05:00
|
|
|
// Author: William Osborne - minimal working wxPalmOS port
|
2008-03-01 19:53:32 -05:00
|
|
|
// Modified by: Yunhui Fu
|
2004-10-19 09:40:30 -04:00
|
|
|
// Created: 10/13/04
|
2005-01-18 16:14:27 -05:00
|
|
|
// RCS-ID: $Id$
|
2004-10-19 09:40:30 -04:00
|
|
|
// Copyright: (c) William Osborne
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2004-12-27 03:36:21 -05:00
|
|
|
#ifndef _WX_PALM_APPTRAIT_H_
|
|
|
|
#define _WX_PALM_APPTRAIT_H_
|
2004-10-19 09:40:30 -04:00
|
|
|
|
2008-03-01 19:53:32 -05:00
|
|
|
#if wxUSE_TIMER
|
|
|
|
#include "wx/palmos/private/timer.h" // wxPalmOSTimerImpl
|
|
|
|
#endif // wxUSE_TIMER
|
|
|
|
|
2004-10-19 09:40:30 -04:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// wxGUI/ConsoleAppTraits: must derive from wxAppTraits, not wxAppTraitsBase
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
class WXDLLIMPEXP_BASE wxConsoleAppTraits : public wxConsoleAppTraitsBase
|
|
|
|
{
|
|
|
|
public:
|
2007-12-14 20:25:56 -05:00
|
|
|
#if wxUSE_CONSOLE_EVENTLOOP
|
|
|
|
virtual wxEventLoopBase *CreateEventLoop();
|
|
|
|
#endif // wxUSE_CONSOLE_EVENTLOOP
|
2004-10-19 09:40:30 -04:00
|
|
|
virtual void *BeforeChildWaitLoop();
|
|
|
|
virtual void AfterChildWaitLoop(void *data);
|
2007-04-19 21:29:16 -04:00
|
|
|
#if wxUSE_TIMER
|
2007-12-14 20:25:56 -05:00
|
|
|
virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer) { return new wxPalmOSTimerImpl(timer); }
|
2007-04-19 21:29:16 -04:00
|
|
|
#endif
|
2004-10-19 09:40:30 -04:00
|
|
|
virtual bool DoMessageFromThreadWait();
|
2007-12-14 20:25:56 -05:00
|
|
|
virtual WXDWORD WaitForThread(WXHANDLE hThread);
|
2004-10-19 09:40:30 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#if wxUSE_GUI
|
|
|
|
|
|
|
|
class WXDLLIMPEXP_CORE wxGUIAppTraits : public wxGUIAppTraitsBase
|
|
|
|
{
|
|
|
|
public:
|
2007-12-14 20:25:56 -05:00
|
|
|
virtual wxEventLoopBase *CreateEventLoop();
|
2004-10-19 09:40:30 -04:00
|
|
|
virtual void *BeforeChildWaitLoop();
|
|
|
|
virtual void AfterChildWaitLoop(void *data);
|
2007-04-19 21:29:16 -04:00
|
|
|
#if wxUSE_TIMER
|
|
|
|
// there is no wxTimer support yet
|
|
|
|
virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer);
|
|
|
|
#endif
|
2004-10-19 09:40:30 -04:00
|
|
|
virtual bool DoMessageFromThreadWait();
|
2008-03-21 10:21:52 -04:00
|
|
|
virtual wxPortId GetToolkitVersion(int *majVer = NULL, int *minVer = NULL) const;
|
2004-10-19 09:40:30 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // wxUSE_GUI
|
|
|
|
|
2004-12-27 03:36:21 -05:00
|
|
|
#endif // _WX_PALM_APPTRAIT_H_
|
2004-10-19 09:40:30 -04:00
|
|
|
|