src/gtk/mdi.cpp
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8007 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
9c0571f341
commit
885df446a3
@ -66,7 +66,6 @@ public:
|
|||||||
long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL,
|
long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL,
|
||||||
const wxString& name = wxFrameNameStr );
|
const wxString& name = wxFrameNameStr );
|
||||||
|
|
||||||
void GetClientSize(int *width, int *height) const;
|
|
||||||
wxMDIChildFrame *GetActiveChild() const;
|
wxMDIChildFrame *GetActiveChild() const;
|
||||||
|
|
||||||
wxMDIClientWindow *GetClientWindow() const;
|
wxMDIClientWindow *GetClientWindow() const;
|
||||||
@ -89,6 +88,8 @@ public:
|
|||||||
protected:
|
protected:
|
||||||
void Init();
|
void Init();
|
||||||
|
|
||||||
|
virtual void DoGetClientSize(int *width, int *height) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
friend class wxMDIChildFrame;
|
friend class wxMDIChildFrame;
|
||||||
|
|
||||||
@ -104,19 +105,25 @@ class wxMDIChildFrame: public wxFrame
|
|||||||
public:
|
public:
|
||||||
wxMDIChildFrame();
|
wxMDIChildFrame();
|
||||||
wxMDIChildFrame( wxMDIParentFrame *parent,
|
wxMDIChildFrame( wxMDIParentFrame *parent,
|
||||||
wxWindowID id, const wxString& title,
|
wxWindowID id,
|
||||||
const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
|
const wxString& title,
|
||||||
long style = wxDEFAULT_FRAME_STYLE, const wxString& name = wxFrameNameStr );
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
~wxMDIChildFrame();
|
const wxSize& size = wxDefaultSize,
|
||||||
|
long style = wxDEFAULT_FRAME_STYLE,
|
||||||
|
const wxString& name = wxFrameNameStr );
|
||||||
|
|
||||||
|
virtual ~wxMDIChildFrame();
|
||||||
bool Create( wxMDIParentFrame *parent,
|
bool Create( wxMDIParentFrame *parent,
|
||||||
wxWindowID id, const wxString& title,
|
wxWindowID id,
|
||||||
const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
|
const wxString& title,
|
||||||
long style = wxDEFAULT_FRAME_STYLE, const wxString& name = wxFrameNameStr );
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
|
const wxSize& size = wxDefaultSize,
|
||||||
|
long style = wxDEFAULT_FRAME_STYLE,
|
||||||
|
const wxString& name = wxFrameNameStr );
|
||||||
|
|
||||||
virtual void SetMenuBar( wxMenuBar *menu_bar );
|
virtual void SetMenuBar( wxMenuBar *menu_bar );
|
||||||
virtual wxMenuBar *GetMenuBar() const;
|
virtual wxMenuBar *GetMenuBar() const;
|
||||||
|
|
||||||
virtual void GetClientSize( int *width, int *height ) const;
|
|
||||||
virtual void AddChild( wxWindowBase *child );
|
virtual void AddChild( wxWindowBase *child );
|
||||||
|
|
||||||
virtual void Activate();
|
virtual void Activate();
|
||||||
@ -141,8 +148,10 @@ public:
|
|||||||
|
|
||||||
#if wxUSE_TOOLBAR
|
#if wxUSE_TOOLBAR
|
||||||
// no toolbar bars
|
// no toolbar bars
|
||||||
virtual wxToolBar* CreateToolBar( long WXUNUSED(style), wxWindowID WXUNUSED(id),
|
virtual wxToolBar* CreateToolBar( long WXUNUSED(style),
|
||||||
const wxString& WXUNUSED(name) ) { return (wxToolBar*)NULL; }
|
wxWindowID WXUNUSED(id),
|
||||||
|
const wxString& WXUNUSED(name) )
|
||||||
|
{ return (wxToolBar*)NULL; }
|
||||||
virtual wxToolBar *GetToolBar() const { return (wxToolBar*)NULL; }
|
virtual wxToolBar *GetToolBar() const { return (wxToolBar*)NULL; }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -168,6 +177,9 @@ public:
|
|||||||
GtkNotebookPage *m_page;
|
GtkNotebookPage *m_page;
|
||||||
bool m_justInserted;
|
bool m_justInserted;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
virtual void DoGetClientSize( int *width, int *height ) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_EVENT_TABLE()
|
DECLARE_EVENT_TABLE()
|
||||||
DECLARE_DYNAMIC_CLASS(wxMDIChildFrame)
|
DECLARE_DYNAMIC_CLASS(wxMDIChildFrame)
|
||||||
|
@ -66,7 +66,6 @@ public:
|
|||||||
long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL,
|
long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL,
|
||||||
const wxString& name = wxFrameNameStr );
|
const wxString& name = wxFrameNameStr );
|
||||||
|
|
||||||
void GetClientSize(int *width, int *height) const;
|
|
||||||
wxMDIChildFrame *GetActiveChild() const;
|
wxMDIChildFrame *GetActiveChild() const;
|
||||||
|
|
||||||
wxMDIClientWindow *GetClientWindow() const;
|
wxMDIClientWindow *GetClientWindow() const;
|
||||||
@ -89,6 +88,8 @@ public:
|
|||||||
protected:
|
protected:
|
||||||
void Init();
|
void Init();
|
||||||
|
|
||||||
|
virtual void DoGetClientSize(int *width, int *height) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
friend class wxMDIChildFrame;
|
friend class wxMDIChildFrame;
|
||||||
|
|
||||||
@ -104,19 +105,25 @@ class wxMDIChildFrame: public wxFrame
|
|||||||
public:
|
public:
|
||||||
wxMDIChildFrame();
|
wxMDIChildFrame();
|
||||||
wxMDIChildFrame( wxMDIParentFrame *parent,
|
wxMDIChildFrame( wxMDIParentFrame *parent,
|
||||||
wxWindowID id, const wxString& title,
|
wxWindowID id,
|
||||||
const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
|
const wxString& title,
|
||||||
long style = wxDEFAULT_FRAME_STYLE, const wxString& name = wxFrameNameStr );
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
~wxMDIChildFrame();
|
const wxSize& size = wxDefaultSize,
|
||||||
|
long style = wxDEFAULT_FRAME_STYLE,
|
||||||
|
const wxString& name = wxFrameNameStr );
|
||||||
|
|
||||||
|
virtual ~wxMDIChildFrame();
|
||||||
bool Create( wxMDIParentFrame *parent,
|
bool Create( wxMDIParentFrame *parent,
|
||||||
wxWindowID id, const wxString& title,
|
wxWindowID id,
|
||||||
const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
|
const wxString& title,
|
||||||
long style = wxDEFAULT_FRAME_STYLE, const wxString& name = wxFrameNameStr );
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
|
const wxSize& size = wxDefaultSize,
|
||||||
|
long style = wxDEFAULT_FRAME_STYLE,
|
||||||
|
const wxString& name = wxFrameNameStr );
|
||||||
|
|
||||||
virtual void SetMenuBar( wxMenuBar *menu_bar );
|
virtual void SetMenuBar( wxMenuBar *menu_bar );
|
||||||
virtual wxMenuBar *GetMenuBar() const;
|
virtual wxMenuBar *GetMenuBar() const;
|
||||||
|
|
||||||
virtual void GetClientSize( int *width, int *height ) const;
|
|
||||||
virtual void AddChild( wxWindowBase *child );
|
virtual void AddChild( wxWindowBase *child );
|
||||||
|
|
||||||
virtual void Activate();
|
virtual void Activate();
|
||||||
@ -141,8 +148,10 @@ public:
|
|||||||
|
|
||||||
#if wxUSE_TOOLBAR
|
#if wxUSE_TOOLBAR
|
||||||
// no toolbar bars
|
// no toolbar bars
|
||||||
virtual wxToolBar* CreateToolBar( long WXUNUSED(style), wxWindowID WXUNUSED(id),
|
virtual wxToolBar* CreateToolBar( long WXUNUSED(style),
|
||||||
const wxString& WXUNUSED(name) ) { return (wxToolBar*)NULL; }
|
wxWindowID WXUNUSED(id),
|
||||||
|
const wxString& WXUNUSED(name) )
|
||||||
|
{ return (wxToolBar*)NULL; }
|
||||||
virtual wxToolBar *GetToolBar() const { return (wxToolBar*)NULL; }
|
virtual wxToolBar *GetToolBar() const { return (wxToolBar*)NULL; }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -168,6 +177,9 @@ public:
|
|||||||
GtkNotebookPage *m_page;
|
GtkNotebookPage *m_page;
|
||||||
bool m_justInserted;
|
bool m_justInserted;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
virtual void DoGetClientSize( int *width, int *height ) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_EVENT_TABLE()
|
DECLARE_EVENT_TABLE()
|
||||||
DECLARE_DYNAMIC_CLASS(wxMDIChildFrame)
|
DECLARE_DYNAMIC_CLASS(wxMDIChildFrame)
|
||||||
|
Loading…
Reference in New Issue
Block a user