]> git.saurik.com Git - wxWidgets.git/commitdiff
Applied patch [ 588734 ] Makes ProcessIdle() virtual
authorJulian Smart <julian@anthemion.co.uk>
Thu, 1 Aug 2002 19:54:55 +0000 (19:54 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Thu, 1 Aug 2002 19:54:55 +0000 (19:54 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16341 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/changes.txt
docs/latex/wx/tapp.tex
include/wx/app.h
include/wx/gtk/app.h
include/wx/gtk1/app.h
include/wx/mac/app.h
include/wx/mgl/app.h
include/wx/motif/app.h
include/wx/msw/app.h
include/wx/os2/app.h
include/wx/x11/app.h

index 9bbb2f2f5c5d83b982fafd926451fcfe09accc54..983a6c890141f8499acaaa686ae3a762830cfb4b 100644 (file)
@@ -255,6 +255,9 @@ wxMSW:
 - fixed a condition where a thread can hang during
   message/event processing
 - increased space between wxRadioBox label and first radio button
+- don't fail to register remaining window classes if one fails to register
+- set window proc for non-control windows to avoid problems
+  with multiple wxWindows apps running simultaneously
 
 wxGTK:
 
index 8bef4289fa8688ec9d42f4c7ccf0d24003e09b72..563b3d085bc3ca3a4ab609b0996692da79ac6df4 100644 (file)
@@ -11,8 +11,8 @@ returns a boolean value which indicates whether processing should continue (TRUE
 You call \helpref{wxApp::SetTopWindow}{wxappsettopwindow} to let wxWindows know
 about the top window.
 
-Note that the program's command line arguments, represented by {\it
-argc} and {\it argv}, are available from within wxApp member functions.
+Note that the program's command line arguments, represented by {\it argc} 
+and {\it argv}, are available from within wxApp member functions.
 
 An application closes by destroying all windows. Because all frames must
 be destroyed for the application to exit, it is advisable to use parent
@@ -37,8 +37,9 @@ IMPLEMENT_APP(DerivedApp)
 
 bool DerivedApp::OnInit()
 {
-  wxFrame *the_frame = new wxFrame(NULL, argv[0]);
+  wxFrame *the_frame = new wxFrame(NULL, ID_MYFRAME, argv[0]);
   ...
+  the_frame->Show(TRUE);
   SetTopWindow(the_frame);
 
   return TRUE;
index 68eeec84efc90a26784e1ed22a68727a55e0eb70..8324651d6017f190a53491ed532e98b24ee68950 100644 (file)
@@ -151,6 +151,8 @@ public:
         // Override: rarely.
     virtual void OnFatalException() { }
 
+    virtual bool ProcessIdle() = 0;
+
     // the worker functions - usually not used directly by the user code
     // -----------------------------------------------------------------
 
index cdb4c4cb73ed8e229ccdfc52a1f9ae833c16a6b4..3beaf8806b37a9cf5181b87381f98d2e8a07a608 100644 (file)
@@ -47,6 +47,7 @@ public:
     virtual bool Pending();
     virtual void Dispatch();
     virtual bool Yield(bool onlyIfNeeded = FALSE);
+    virtual bool ProcessIdle();
 
     // implementation only from now on
     void OnIdle( wxIdleEvent &event );
@@ -57,7 +58,6 @@ public:
     static bool InitialzeVisual();
     static void CleanUp();
 
-    bool ProcessIdle();
     void DeletePendingObjects();
 
 #ifdef __WXDEBUG__
index cdb4c4cb73ed8e229ccdfc52a1f9ae833c16a6b4..3beaf8806b37a9cf5181b87381f98d2e8a07a608 100644 (file)
@@ -47,6 +47,7 @@ public:
     virtual bool Pending();
     virtual void Dispatch();
     virtual bool Yield(bool onlyIfNeeded = FALSE);
+    virtual bool ProcessIdle();
 
     // implementation only from now on
     void OnIdle( wxIdleEvent &event );
@@ -57,7 +58,6 @@ public:
     static bool InitialzeVisual();
     static void CleanUp();
 
-    bool ProcessIdle();
     void DeletePendingObjects();
 
 #ifdef __WXDEBUG__
index 5f269ffc052567003c87459ed7ec5ee62f8e4769..6cac7e556d40a4fdc628d462d7c31bc26f482c9b 100644 (file)
@@ -53,6 +53,7 @@ class WXDLLEXPORT wxApp: public wxAppBase
     virtual bool Pending() ;
     virtual void Dispatch() ;
     virtual bool Yield(bool onlyIfNeeded = FALSE);
+    virtual bool ProcessIdle();
     
     virtual void SetPrintMode(int mode) { m_printMode = mode; }
     virtual int GetPrintMode() const { return m_printMode; }
@@ -87,7 +88,6 @@ public:
     
     virtual bool OnInit();
     void DeletePendingObjects();
-    bool ProcessIdle();
     bool IsExiting() { return !m_keepGoing ; }
     
 public:
index ec6c5a703f64d6623d7d4bf7ec5b207068d86413..ea6fa45bccac2d0cd07b91112cd078a4b5a89860 100644 (file)
@@ -47,6 +47,7 @@ public:
     virtual bool Initialized();
     virtual bool Pending();
     virtual void Dispatch();
+    virtual bool ProcessIdle();
 
     // implementation only from now on
     void OnIdle(wxIdleEvent &event);
@@ -56,7 +57,7 @@ public:
     static bool Initialize();
     static void CleanUp();
 
-    bool ProcessIdle();
+    virtual bool ProcessIdle();
     void DeletePendingObjects();
 
     virtual bool Yield(bool onlyIfNeeded = FALSE);
index f80b97c121a07ab74f5308fdf3f3cd3e940e0eb3..650736e9c3ce7e6d9664650f441f58aae54b3d6e 100644 (file)
@@ -54,6 +54,7 @@ public:
     virtual bool Pending();
     virtual void Dispatch();
     virtual bool Yield(bool onlyIfNeeded = FALSE);
+    virtual bool ProcessIdle();
     
     virtual bool OnInitGui();
     
@@ -93,7 +94,6 @@ public:
     static void CleanUp();
     
     void DeletePendingObjects();
-    bool ProcessIdle();
     
     // Motif-specific
     WXAppContext   GetAppContext() const { return m_appContext; }
index 852a5b50e7fedc71f0bdd74383e4065b25d1847e..c85dcc4b834f7a2a252ea242093aa32c8a5536ec 100644 (file)
@@ -42,6 +42,7 @@ public:
     virtual bool Pending();
     virtual void Dispatch();
     virtual bool Yield(bool onlyIfNeeded = FALSE);
+    virtual bool ProcessIdle();
 
     virtual void SetPrintMode(int mode) { m_printMode = mode; }
     virtual int GetPrintMode() const { return m_printMode; }
@@ -97,7 +98,6 @@ public:
     // ---------------
 
     void DeletePendingObjects();
-    bool ProcessIdle();
 
 #if wxUSE_RICHEDIT
     // initialize the richedit DLL of (at least) given version, return TRUE if
index b1981405099c4ef3da0d15633489841b9349bd22..fe2486b853ab69901a27c381f1a772842fa9658d 100644 (file)
@@ -77,6 +77,7 @@ public:
     virtual bool Pending(void) ;
     virtual void Dispatch(void);
     virtual bool Yield(bool onlyIfNeeded = FALSE);
+    virtual bool         ProcessIdle(void);
 
     virtual void SetPrintMode(int mode) { m_nPrintMode = mode; }
     virtual int  GetPrintMode(void) const { return m_nPrintMode; }
@@ -129,7 +130,6 @@ public:
     virtual bool DoMessage(void);
     virtual bool ProcessMessage(WXMSG* pMsg);
     void         DeletePendingObjects(void);
-    bool         ProcessIdle(void);
 
 public:
     int                             m_nCmdShow;
index 77927b4f49e4c4cfcc6988d12eb80a1f76f4409b..c1e44dad6eb044022777d41ee9c099d18b264edc 100644 (file)
@@ -55,6 +55,7 @@ public:
     virtual bool Pending();
     virtual void Dispatch();
     virtual bool Yield(bool onlyIfNeeded = FALSE);
+    virtual bool ProcessIdle();
     
     virtual bool OnInitGui();
     
@@ -87,7 +88,6 @@ public:
     static void CleanUp();
     
     void DeletePendingObjects();
-    bool ProcessIdle();
     
     WXWindow       GetTopLevelWidget() const { return m_topLevelWidget; }
     WXColormap     GetMainColormap(WXDisplay* display);