]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/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 wxFrameGTK
: public wxFrameBase
37 wxFrameGTK() { Init(); }
38 wxFrameGTK(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
);
59 virtual ~wxFrameGTK();
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 // implementation from now on
78 // --------------------------
81 virtual void GtkOnSize( int x
, int y
, int width
, int height
);
82 virtual void OnInternalIdle();
84 bool m_menuBarDetached
;
85 bool m_toolBarDetached
;
88 // common part of all ctors
91 // override wxWindow methods to take into account tool/menu/statusbars
92 virtual void DoSetClientSize(int width
, int height
);
93 virtual void DoGetClientSize( int *width
, int *height
) const;
95 #if wxUSE_MENUS_NATIVE
96 virtual void DetachMenuBar();
97 virtual void AttachMenuBar(wxMenuBar
*menubar
);
98 #endif // wxUSE_MENUS_NATIVE
101 #endif // __GTKFRAMEH__