]> git.saurik.com Git - wxWidgets.git/blobdiff - interface/wx/apptrait.h
disable UI updating during GetPopupMenuSelectionFromUser() execution to avoid unexpec...
[wxWidgets.git] / interface / wx / apptrait.h
index 7da10c02b965e21095364a4cc2de40a6515063d0..5e8fd7ae665e0c2265324ab4085805d25fd9c643 100644 (file)
@@ -8,7 +8,6 @@
 
 /**
     @class wxAppTraits
-    @wxheader{apptrait.h}
 
     The wxAppTraits class defines various configurable aspects of a wxApp.
     You can access it using wxApp::GetTraits() function and you can create your
@@ -41,6 +40,17 @@ public:
     */
     virtual wxConfigBase* CreateConfig();
 
+    /**
+        Used by wxWidgets to create the main event loop used by wxApp::OnRun().
+
+        The default implementation of this method in wxGUIAppTraits returns the
+        usual platform-specific GUI event loop. The version in wxConsoleAppTraits
+        returns a console-specific event loop which can be used to handle timer
+        and socket events in console programs under Unix and MSW or @NULL under
+        the other platforms where console event loops are not supported yet.
+     */
+    virtual wxEventLoopBase *CreateEventLoop() = 0;
+
     /**
         Creates the global font mapper object used for encodings/charset mapping.
     */