X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/da78f3b10cfe9447053f32ea4baddf50058eafef..d8fd7acb8b877599b410e07a4c26dde92a676a82:/include/wx/window.h diff --git a/include/wx/window.h b/include/wx/window.h index b9a8332d5c..7f516e51e4 100644 --- a/include/wx/window.h +++ b/include/wx/window.h @@ -12,10 +12,6 @@ #ifndef _WX_WINDOW_H_BASE_ #define _WX_WINDOW_H_BASE_ -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma interface "windowbase.h" -#endif - // ---------------------------------------------------------------------------- // headers which we must include here // ---------------------------------------------------------------------------- @@ -73,8 +69,6 @@ class WXDLLEXPORT wxWindow; class WXDLLEXPORT wxAccessible; #endif -class WXDLLEXPORT wxWindowExtraData; - // ---------------------------------------------------------------------------- // helper stuff used by wxWindow // ---------------------------------------------------------------------------- @@ -922,6 +916,10 @@ public: void SetHelpTextForId(const wxString& text); // get the help string associated with this window (may be empty) wxString GetHelpText() const; +#else + // silently ignore SetHelpText() calls + void SetHelpText(const wxString& WXUNUSED(text)) { } + void SetHelpTextForId(const wxString& WXUNUSED(text)) { } #endif // wxUSE_HELP // tooltips @@ -1281,6 +1279,14 @@ protected: // same size as it would have after a call to Fit() virtual wxSize DoGetBestSize() const; + // called from DoGetBestSize() to convert best virtual size (returned by + // the window sizer) to the best size for the window itself; this is + // overridden at wxScrolledWindow level to clump down virtual size to real + virtual wxSize GetWindowSizeForVirtualSize(const wxSize& size) const + { + return size; + } + // this is the virtual function to be overriden in any derived class which // wants to change how SetSize() or Move() works - it is called by all // versions of these functions in the base class @@ -1314,9 +1320,8 @@ protected: // implements the window variants virtual void DoSetWindowVariant( wxWindowVariant variant ) ; - // Was a reserved pointer in 2.6.0, now used to hold extra data members - // without breaking compatibility. - wxWindowExtraData* m_extraData; + // Reserved for future use + void* m_windowReserved; private: // contains the last id generated by NewControlId