2006-08-24 17:18:18 -04:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/msdos/apptrait.h
|
|
|
|
// Author: Michael Wetherell
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) 2006 Michael Wetherell
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_MSDOS_APPTRAIT_H_
|
|
|
|
#define _WX_MSDOS_APPTRAIT_H_
|
|
|
|
|
|
|
|
class wxConsoleAppTraits : public wxConsoleAppTraitsBase
|
|
|
|
{
|
|
|
|
public:
|
2007-05-21 22:30:01 -04:00
|
|
|
virtual wxEventLoopBase *CreateEventLoop() { return NULL; }
|
2007-05-14 19:43:39 -04:00
|
|
|
#if wxUSE_TIMER
|
|
|
|
virtual wxTimerImpl *CreateTimerImpl(wxTimer *) { return NULL; }
|
|
|
|
#endif // wxUSE_TIMER
|
2006-08-24 17:18:18 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#if wxUSE_GUI
|
|
|
|
|
|
|
|
class wxGUIAppTraits : public wxGUIAppTraitsBase
|
|
|
|
{
|
|
|
|
public:
|
2007-05-21 22:30:01 -04:00
|
|
|
virtual wxEventLoopBase *CreateEventLoop();
|
2008-03-21 10:21:52 -04:00
|
|
|
virtual wxPortId GetToolkitVersion(int *majVer = NULL, int *minVer = NULL) const;
|
2007-05-14 19:43:39 -04:00
|
|
|
|
|
|
|
#if wxUSE_TIMER
|
|
|
|
virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer);
|
|
|
|
#endif // wxUSE_TIMER
|
2006-08-24 17:18:18 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // wxUSE_GUI
|
|
|
|
|
|
|
|
#endif // _WX_MSDOS_APPTRAIT_H_
|