apptrait.h 973 B

1234567891011121314151617181920212223242526272829303132333435
  1. ///////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/msdos/apptrait.h
  3. // Author: Michael Wetherell
  4. // Copyright: (c) 2006 Michael Wetherell
  5. // Licence: wxWindows licence
  6. ///////////////////////////////////////////////////////////////////////////////
  7. #ifndef _WX_MSDOS_APPTRAIT_H_
  8. #define _WX_MSDOS_APPTRAIT_H_
  9. class wxConsoleAppTraits : public wxConsoleAppTraitsBase
  10. {
  11. public:
  12. virtual wxEventLoopBase *CreateEventLoop() { return NULL; }
  13. #if wxUSE_TIMER
  14. virtual wxTimerImpl *CreateTimerImpl(wxTimer *) { return NULL; }
  15. #endif // wxUSE_TIMER
  16. };
  17. #if wxUSE_GUI
  18. class wxGUIAppTraits : public wxGUIAppTraitsBase
  19. {
  20. public:
  21. virtual wxEventLoopBase *CreateEventLoop();
  22. virtual wxPortId GetToolkitVersion(int *majVer = NULL, int *minVer = NULL) const;
  23. #if wxUSE_TIMER
  24. virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer);
  25. #endif // wxUSE_TIMER
  26. };
  27. #endif // wxUSE_GUI
  28. #endif // _WX_MSDOS_APPTRAIT_H_