X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bfc6fde4b1dd5bfd8ae22839ff9a69cf24eb9120..6db90681cf0b58209a061561f5d3624f6eda8024:/include/wx/gtk/frame.h diff --git a/include/wx/gtk/frame.h b/include/wx/gtk/frame.h index fc73faa091..13a543e0fe 100644 --- a/include/wx/gtk/frame.h +++ b/include/wx/gtk/frame.h @@ -37,8 +37,8 @@ class wxFrame; // global data //----------------------------------------------------------------------------- -extern const char *wxFrameNameStr; -extern const char *wxToolBarNameStr; +extern const wxChar *wxFrameNameStr; +extern const wxChar *wxToolBarNameStr; //----------------------------------------------------------------------------- // wxFrame @@ -62,10 +62,8 @@ public: virtual bool Show( bool show ); virtual void Centre( int direction = wxHORIZONTAL ); - virtual void GetClientSize( int *width, int *height ) const; - virtual wxStatusBar* CreateStatusBar(int number=1, long style = wxST_SIZEGRIP, wxWindowID id = 0, - const wxString& name = "statusBar"); + const wxString& name = _T("statusBar")); virtual wxStatusBar *OnCreateStatusBar( int number, long style, wxWindowID id, const wxString& name ); virtual wxStatusBar *GetStatusBar() const; @@ -92,6 +90,8 @@ public: virtual void Maximize(bool WXUNUSED(maximize)) {} virtual void Restore() {} + virtual void Command( int id ); + void OnCloseWindow( wxCloseEvent& event ); void OnActivate( wxActivateEvent &WXUNUSED(event) ) { } // called from docview.cpp void OnSize( wxSizeEvent &event ); @@ -101,18 +101,20 @@ public: // implementation virtual void GtkOnSize( int x, int y, int width, int height ); - virtual wxPoint GetClientAreaOrigin() const; void DoMenuUpdates(); - void DoMenuUpdates(wxMenu* menu); + void DoMenuUpdates(wxMenu* menu, wxWindow* focusWin); virtual void OnInternalIdle(); wxMenuBar *m_frameMenuBar; - wxMenuBar *m_mdiMenuBar; wxStatusBar *m_frameStatusBar; wxToolBar *m_frameToolBar; wxString m_title; wxIcon m_icon; int m_miniEdge,m_miniTitle; + GtkWidget *m_mainWidget; + bool m_menuBarDetached; + bool m_toolBarDetached; + bool m_insertInClientArea; /* not from within OnCreateXXX */ protected: virtual void DoSetSize(int x, int y, @@ -120,6 +122,7 @@ protected: int sizeFlags = wxSIZE_AUTO); virtual void DoSetClientSize(int width, int height); + virtual void DoGetClientSize( int *width, int *height ) const; private: DECLARE_EVENT_TABLE()