]> git.saurik.com Git - wxWidgets.git/commitdiff
Added GUI part of AppTraits for OS/2.
authorStefan Neis <Stefan.Neis@t-online.de>
Mon, 22 Sep 2003 00:39:22 +0000 (00:39 +0000)
committerStefan Neis <Stefan.Neis@t-online.de>
Mon, 22 Sep 2003 00:39:22 +0000 (00:39 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23793 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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

index 45b1aff24f1f629659ea6e2d749380eee2d05178..5b136f473cfe55fde7273bca352d03415b5858bd 100644 (file)
@@ -221,6 +221,8 @@ public:
     #include "wx/unix/apptrait.h"
 #elif defined(__WXMAC__)
     #include "wx/mac/apptrait.h"
+#elif defined(__OS2__)
+    #include "wx/os2/apptrait.h"
 #else 
     // at least, we need an implementation of GetToolkitInfo !
     #if wxUSE_GUI
index 26cca0d69a4d84090ce23b606be3a5661a94129c..934ef281e5c52c5005d84381290ae2b05d73c899 100644 (file)
@@ -1,6 +1,6 @@
 ///////////////////////////////////////////////////////////////////////////////
 // Name:        wx/os2/apptbase.h
-// Purpose:     declaration of wxAppTraits for MSW
+// Purpose:     declaration of wxAppTraits for OS2
 // Author:      Stefan Neis
 // Modified by:
 // Created:     22.09.2003
diff --git a/include/wx/os2/apptrait.h b/include/wx/os2/apptrait.h
new file mode 100644 (file)
index 0000000..2ac1f4a
--- /dev/null
@@ -0,0 +1,44 @@
+///////////////////////////////////////////////////////////////////////////////
+// Name:        wx/os2/apptrait.h
+// Purpose:     class implementing wxAppTraits for OS/2
+// Author:      Stefan Neis
+// Modified by:
+// Created:     22.09.2003
+// RCS-ID:      $Id$
+// Copyright:   (c) 2003 Stefan Neis <Stefan.Neis@t-online.de>
+// Licence:     wxWindows licence
+///////////////////////////////////////////////////////////////////////////////
+
+#ifndef _WX_OS2_APPTRAIT_H_
+#define _WX_OS2_APPTRAIT_H_
+
+// ----------------------------------------------------------------------------
+// wxGUI/ConsoleAppTraits: must derive from wxAppTraits, not wxAppTraitsBase
+// ----------------------------------------------------------------------------
+
+class WXDLLIMPEXP_BASE wxConsoleAppTraits : public wxConsoleAppTraitsBase
+{
+public:
+    virtual wxToolkitInfo& GetToolkitInfo();
+};
+
+#if wxUSE_GUI
+
+class WXDLLIMPEXP_CORE wxGUIAppTraits : public wxGUIAppTraitsBase
+{
+public:
+    virtual wxToolkitInfo& GetToolkitInfo();
+
+    // wxThread helpers
+    // ----------------
+
+    // Initialize PM facilities to enable GUI access
+    virtual void InitializeGui(unsigned long &ulHab);
+
+    // Clean up message queue.
+    virtual void TerminateGui(unsigned long ulHab);
+};
+
+#endif // wxUSE_GUI
+
+#endif // _WX_OS2_APPTRAIT_H_