From 22cf5eef6415705b5b677be1ad071ea8d9a73c47 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Fri, 4 Jul 2003 19:47:59 +0000 Subject: [PATCH] apptraits for wxMac classic and carbon git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21646 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/mac/apptbase.h | 42 +++++++++++++++++++++++++++++++++++++++ include/wx/mac/apptrait.h | 34 +++++++++++++++++++++++++++++++ 2 files changed, 76 insertions(+) create mode 100644 include/wx/mac/apptbase.h create mode 100644 include/wx/mac/apptrait.h diff --git a/include/wx/mac/apptbase.h b/include/wx/mac/apptbase.h new file mode 100644 index 0000000000..47133019df --- /dev/null +++ b/include/wx/mac/apptbase.h @@ -0,0 +1,42 @@ +/////////////////////////////////////////////////////////////////////////////// +// Name: wx/mac/apptbase.h +// Purpose: declaration of wxAppTraits for Mac systems +// Author: Vadim Zeitlin +// Modified by: Stefan Csomor +// Created: 23.06.2003 +// RCS-ID: $Id$ +// Copyright: (c) 2003 Vadim Zeitlin +// Licence: wxWindows licence +/////////////////////////////////////////////////////////////////////////////// + +#ifndef _WX_MAC_APPTBASE_H_ +#define _WX_MAC_APPTBASE_H_ + +// ---------------------------------------------------------------------------- +// wxAppTraits: the Mac version adds extra hooks needed by Mac code +// ---------------------------------------------------------------------------- + +class WXDLLEXPORT wxAppTraits : public wxAppTraitsBase +{ +public: + // wxExecute() support methods + // --------------------------- + + // TODO + + // wxThread helpers + // ---------------- + + + // TODO + + // other miscellaneous helpers + // --------------------------- + + // under Mac this function does the same thing for console and GUI + // applications so we can implement it directly in the base class + virtual int GetOSVersion(int *verMaj, int *verMin); +}; + +#endif // _WX_UNIX_APPTBASE_H_ + diff --git a/include/wx/mac/apptrait.h b/include/wx/mac/apptrait.h new file mode 100644 index 0000000000..bb133cca3a --- /dev/null +++ b/include/wx/mac/apptrait.h @@ -0,0 +1,34 @@ +/////////////////////////////////////////////////////////////////////////////// +// Name: wx/mac/apptrait.h +// Purpose: standard implementations of wxAppTraits for MacOS +// Author: Vadim Zeitlin +// Modified by: Stefan Csomor +// Created: 23.06.2003 +// RCS-ID: $Id$ +// Copyright: (c) 2003 Vadim Zeitlin +// Licence: wxWindows licence +/////////////////////////////////////////////////////////////////////////////// + +#ifndef _WX_MAC_APPTRAIT_H_ +#define _WX_MAC_APPTRAIT_H_ + +// ---------------------------------------------------------------------------- +// wxGUI/ConsoleAppTraits: must derive from wxAppTraits, not wxAppTraitsBase +// ---------------------------------------------------------------------------- + +class WXDLLEXPORT wxConsoleAppTraits : public wxConsoleAppTraitsBase +{ +public: +}; + +#if wxUSE_GUI + +class WXDLLEXPORT wxGUIAppTraits : public wxGUIAppTraitsBase +{ +public: +}; + +#endif // wxUSE_GUI + +#endif // _WX_MAC_APPTRAIT_H_ +