X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ad813b00d5956f35f2b1585a276095e24ce8ad5a..0cc7251efec4fb9f7e9e3f403fe9f3e6585e9497:/include/wx/motif/mdi.h diff --git a/include/wx/motif/mdi.h b/include/wx/motif/mdi.h index 37cb782543..62d6efb7d7 100644 --- a/include/wx/motif/mdi.h +++ b/include/wx/motif/mdi.h @@ -65,20 +65,15 @@ public: void OnSize(wxSizeEvent& event); void OnActivate(wxActivateEvent& event); void OnSysColourChanged(wxSysColourChangedEvent& event); + void OnMenuHighlight(wxMenuEvent& event); void SetMenuBar(wxMenuBar *menu_bar); - // Gets the size available for subwindows after menu size, toolbar size - // and status bar size have been subtracted. If you want to manage your own - // toolbar(s), don't call SetToolBar. - void GetClientSize(int *width, int *height) const; - wxSize GetClientSize() const { return wxWindow::GetClientSize(); } - // Get the active MDI child window wxMDIChildFrame *GetActiveChild() const ; // Get the client window - inline wxMDIClientWindow *GetClientWindow() const { return m_clientWindow; }; + wxMDIClientWindow *GetClientWindow() const { return m_clientWindow; }; // Create the client window class (don't Create the window, // just return a new class) @@ -104,6 +99,16 @@ public: // Redirect events to active child first virtual bool ProcessEvent(wxEvent& event); +protected: + virtual void DoSetSize(int x, int y, + int width, int height, + int sizeFlags = wxSIZE_AUTO); + virtual void DoSetClientSize(int width, int height); + + // Gets the size available for subwindows after menu size, toolbar size + // and status bar size have been subtracted. If you want to manage your own + // toolbar(s), don't call SetToolBar. + void DoGetClientSize(int *width, int *height) const; protected: @@ -145,11 +150,6 @@ public: void SetMenuBar(wxMenuBar *menu_bar); void SetTitle(const wxString& title); - void SetClientSize(int width, int height); - void GetClientSize(int *width, int *height) const; - void GetSize(int *width, int *height) const; - void GetPosition(int *x, int *y) const ; - // Set icon virtual void SetIcon(const wxIcon& icon); @@ -169,6 +169,8 @@ public: virtual void Activate(); virtual bool IsIconized() const ; + virtual bool IsTopLevel() const { return FALSE; } + // Is the frame maximized? Returns TRUE for // wxMDIChildFrame due to the tabbed implementation. virtual bool IsMaximized(void) const ; @@ -194,6 +196,10 @@ protected: int width, int height, int sizeFlags = wxSIZE_AUTO); virtual void DoSetClientSize(int width, int height); + + void DoGetClientSize(int *width, int *height) const; + void DoGetSize(int *width, int *height) const; + void DoGetPosition(int *x, int *y) const ; }; /* The client window is a child of the parent MDI frame, and itself @@ -216,10 +222,6 @@ public: ~wxMDIClientWindow(); - void GetClientSize(int *width, int *height) const; - void GetSize(int *width, int *height) const ; - void GetPosition(int *x, int *y) const ; - // Note: this is virtual, to allow overridden behaviour. virtual bool CreateClient(wxMDIParentFrame *parent, long style = wxVSCROLL | wxHSCROLL); @@ -235,6 +237,11 @@ protected: int sizeFlags = wxSIZE_AUTO); virtual void DoSetClientSize(int width, int height); + void DoGetClientSize(int *width, int *height) const; + void DoGetSize(int *width, int *height) const ; + void DoGetPosition(int *x, int *y) const ; + + private: DECLARE_EVENT_TABLE() };