apptraits for wxMac classic and carbon
authorStefan Csomor <csomor@advancedconcepts.ch>
Fri, 4 Jul 2003 19:47:59 +0000 (19:47 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Fri, 4 Jul 2003 19:47:59 +0000 (19:47 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21646 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/mac/apptbase.h [new file with mode: 0644]
include/wx/mac/apptrait.h [new file with mode: 0644]

diff --git a/include/wx/mac/apptbase.h b/include/wx/mac/apptbase.h
new file mode 100644 (file)
index 0000000..4713301
--- /dev/null
@@ -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 <vadim@wxwindows.org>
+// 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 (file)
index 0000000..bb133cc
--- /dev/null
@@ -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 <vadim@wxwindows.org>
+// 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_
+