]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/frame.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/frame.h
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling, Julian Smart
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
15 #pragma interface "frame.h"
18 //-----------------------------------------------------------------------------
20 //-----------------------------------------------------------------------------
22 class wxMDIChildFrame
;
23 class wxMDIClientWindow
;
29 //-----------------------------------------------------------------------------
31 //-----------------------------------------------------------------------------
33 class wxFrame
: public wxFrameBase
38 wxFrame(wxWindow
*parent
,
40 const wxString
& title
,
41 const wxPoint
& pos
= wxDefaultPosition
,
42 const wxSize
& size
= wxDefaultSize
,
43 long style
= wxDEFAULT_FRAME_STYLE
,
44 const wxString
& name
= wxFrameNameStr
)
48 Create(parent
, id
, title
, pos
, size
, style
, name
);
51 bool Create(wxWindow
*parent
,
53 const wxString
& title
,
54 const wxPoint
& pos
= wxDefaultPosition
,
55 const wxSize
& size
= wxDefaultSize
,
56 long style
= wxDEFAULT_FRAME_STYLE
,
57 const wxString
& name
= wxFrameNameStr
);
62 virtual void PositionStatusBar();
64 virtual wxStatusBar
* CreateStatusBar(int number
= 1,
65 long style
= wxST_SIZEGRIP
,
67 const wxString
& name
= wxStatusLineNameStr
);
68 #endif // wxUSE_STATUSBAR
71 virtual wxToolBar
* CreateToolBar(long style
= wxNO_BORDER
| wxTB_HORIZONTAL
| wxTB_FLAT
,
73 const wxString
& name
= wxToolBarNameStr
);
74 void SetToolBar(wxToolBar
*toolbar
);
75 #endif // wxUSE_TOOLBAR
77 wxPoint
GetClientAreaOrigin() const { return wxPoint(0, 0); }
79 // implementation from now on
80 // --------------------------
83 virtual void GtkOnSize( int x
, int y
, int width
, int height
);
84 virtual void OnInternalIdle();
86 bool m_menuBarDetached
;
87 bool m_toolBarDetached
;
90 // common part of all ctors
93 // override wxWindow methods to take into account tool/menu/statusbars
94 virtual void DoSetClientSize(int width
, int height
);
95 virtual void DoGetClientSize( int *width
, int *height
) const;
97 #if wxUSE_MENUS_NATIVE
98 virtual void DetachMenuBar();
99 virtual void AttachMenuBar(wxMenuBar
*menubar
);
100 #endif // wxUSE_MENUS_NATIVE
102 DECLARE_DYNAMIC_CLASS(wxFrame
)
105 #endif // __GTKFRAMEH__