From 77497ea37eab244d74bf5d80ce19aeb2fde0a5d4 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 31 Jul 2009 12:17:12 +0000 Subject: [PATCH] Don't test whether wxTopLevelWindowNative is defined. It seems to be defined for all ports now so there is no need to check whether it is. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61569 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/frame.h | 11 ----------- include/wx/toplevel.h | 39 ++++++++++++++++++--------------------- 2 files changed, 18 insertions(+), 32 deletions(-) diff --git a/include/wx/frame.h b/include/wx/frame.h index 1693a256ef..8b0d2184a8 100644 --- a/include/wx/frame.h +++ b/include/wx/frame.h @@ -169,17 +169,6 @@ public: // Implement internal behaviour (menu updating on some platforms) virtual void OnInternalIdle(); - // if there is no real wxTopLevelWindow on this platform we have to define - // some wxTopLevelWindowBase pure virtual functions here to avoid breaking - // old ports (wxMotif) which don't define them in wxFrame -#ifndef wxTopLevelWindowNative - virtual bool ShowFullScreen(bool WXUNUSED(show), - long WXUNUSED(style) = wxFULLSCREEN_ALL) - { return false; } - virtual bool IsFullScreen() const - { return false; } -#endif // no wxTopLevelWindowNative - #if wxUSE_MENUS || wxUSE_TOOLBAR // show help text for the currently selected menu or toolbar item // (typically in the status bar) or hide it and restore the status bar text diff --git a/include/wx/toplevel.h b/include/wx/toplevel.h index c5cbf1e220..8d6b5eef26 100644 --- a/include/wx/toplevel.h +++ b/include/wx/toplevel.h @@ -344,28 +344,25 @@ protected: #ifdef __WXUNIVERSAL__ #include "wx/univ/toplevel.h" #else // !__WXUNIVERSAL__ - #ifdef wxTopLevelWindowNative - class WXDLLIMPEXP_CORE wxTopLevelWindow : public wxTopLevelWindowNative + class WXDLLIMPEXP_CORE wxTopLevelWindow : public wxTopLevelWindowNative + { + public: + // construction + wxTopLevelWindow() { } + wxTopLevelWindow(wxWindow *parent, + wxWindowID winid, + const wxString& title, + const wxPoint& pos = wxDefaultPosition, + const wxSize& size = wxDefaultSize, + long style = wxDEFAULT_FRAME_STYLE, + const wxString& name = wxFrameNameStr) + : wxTopLevelWindowNative(parent, winid, title, + pos, size, style, name) { - public: - // construction - wxTopLevelWindow() { } - wxTopLevelWindow(wxWindow *parent, - wxWindowID winid, - const wxString& title, - const wxPoint& pos = wxDefaultPosition, - const wxSize& size = wxDefaultSize, - long style = wxDEFAULT_FRAME_STYLE, - const wxString& name = wxFrameNameStr) - : wxTopLevelWindowNative(parent, winid, title, - pos, size, style, name) - { - } - - DECLARE_DYNAMIC_CLASS_NO_COPY(wxTopLevelWindow) - }; - #endif // wxTopLevelWindowNative -#endif // __WXUNIVERSAL__/!__WXUNIVERSAL__ + } + DECLARE_DYNAMIC_CLASS_NO_COPY(wxTopLevelWindow) + }; +#endif // __WXUNIVERSAL__/!__WXUNIVERSAL__ #endif // _WX_TOPLEVEL_BASE_H_ -- 2.47.2