]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mgl/toplevel.cpp
Document wxSL_MIN_MAX_LABELS and wxSL_VALUE_LABEL
[wxWidgets.git] / src / mgl / toplevel.cpp
index 1ec5da6c11091d9cc1804f17d1fc26b2f85a6dfc..d2ede3f43c4bc713b211c3704156d2294276712a 100644 (file)
@@ -22,8 +22,9 @@
 // headers
 // ----------------------------------------------------------------------------
 
+#include "wx/toplevel.h"
+
 #ifndef WX_PRECOMP
-    #include "wx/toplevel.h"
     #include "wx/app.h"
 #endif // WX_PRECOMP
 
@@ -108,22 +109,6 @@ bool wxTopLevelWindowMGL::Create(wxWindow *parent,
     return true;
 }
 
-wxTopLevelWindowMGL::~wxTopLevelWindowMGL()
-{
-    m_isBeingDeleted = true;
-
-    wxTopLevelWindows.DeleteObject(this);
-
-    if (wxTheApp->GetTopWindow() == this)
-        wxTheApp->SetTopWindow(NULL);
-
-    if (wxTopLevelWindows.IsEmpty() &&
-        wxTheApp->GetExitOnFrameDelete())
-    {
-        wxTheApp->ExitMainLoop();
-    }
-}
-
 bool wxTopLevelWindowMGL::ShowFullScreen(bool show, long style)
 {
     if (show == m_fsIsShowing) return false; // return what?
@@ -167,10 +152,10 @@ bool wxTopLevelWindowMGL::Show(bool show)
         m_sizeSet = true;
         wxSizeEvent event(GetSize(), GetId());
         event.SetEventObject(this);
-        GetEventHandler()->ProcessEvent(event);
+        HandleWindowEvent(event);
     }
 
-    if ( ret && show && AcceptsFocus() )
+    if ( ret && show && CanAcceptFocus() )
         SetFocus();
         // FIXME_MGL -- don't do this for popup windows?
     return ret;