]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/frame.h
missing header file
[wxWidgets.git] / include / wx / gtk / frame.h
CommitLineData
c801d85f 1/////////////////////////////////////////////////////////////////////////////
7c0ea335 2// Name: wx/gtk/frame.h
c801d85f
KB
3// Purpose:
4// Author: Robert Roebling
58614078
RR
5// Id: $Id$
6// Copyright: (c) 1998 Robert Roebling, Julian Smart
65571936 7// Licence: wxWindows licence
c801d85f
KB
8/////////////////////////////////////////////////////////////////////////////
9
b5e31cc8
PC
10#ifndef _WX_GTK_FRAME_H_
11#define _WX_GTK_FRAME_H_
c801d85f 12
c801d85f
KB
13//-----------------------------------------------------------------------------
14// classes
15//-----------------------------------------------------------------------------
16
20123d49
MW
17class WXDLLIMPEXP_CORE wxMDIChildFrame;
18class WXDLLIMPEXP_CORE wxMDIClientWindow;
19class WXDLLIMPEXP_CORE wxMenu;
20class WXDLLIMPEXP_CORE wxMenuBar;
21class WXDLLIMPEXP_CORE wxToolBar;
22class WXDLLIMPEXP_CORE wxStatusBar;
c801d85f 23
c801d85f 24//-----------------------------------------------------------------------------
0d53fc34 25// wxFrame
c801d85f
KB
26//-----------------------------------------------------------------------------
27
20123d49 28class WXDLLIMPEXP_CORE wxFrame : public wxFrameBase
c801d85f 29{
bfc6fde4 30public:
7c0ea335 31 // construction
0d53fc34
VS
32 wxFrame() { Init(); }
33 wxFrame(wxWindow *parent,
1e6feb95
VZ
34 wxWindowID id,
35 const wxString& title,
36 const wxPoint& pos = wxDefaultPosition,
37 const wxSize& size = wxDefaultSize,
38 long style = wxDEFAULT_FRAME_STYLE,
39 const wxString& name = wxFrameNameStr)
7c0ea335
VZ
40 {
41 Init();
42
43 Create(parent, id, title, pos, size, style, name);
44 }
45
46 bool Create(wxWindow *parent,
47 wxWindowID id,
48 const wxString& title,
49 const wxPoint& pos = wxDefaultPosition,
50 const wxSize& size = wxDefaultSize,
51 long style = wxDEFAULT_FRAME_STYLE,
52 const wxString& name = wxFrameNameStr);
53
0d53fc34 54 virtual ~wxFrame();
7c0ea335 55
88ac883a 56#if wxUSE_STATUSBAR
7c0ea335 57 virtual wxStatusBar* CreateStatusBar(int number = 1,
73bb6776 58 long style = wxST_SIZEGRIP|wxFULL_REPAINT_ON_RESIZE,
7c0ea335
VZ
59 wxWindowID id = 0,
60 const wxString& name = wxStatusLineNameStr);
3851e479
RR
61
62 void SetStatusBar(wxStatusBar *statbar);
88ac883a 63#endif // wxUSE_STATUSBAR
bfc6fde4 64
88ac883a 65#if wxUSE_TOOLBAR
f9dae779 66 virtual wxToolBar* CreateToolBar(long style = -1,
7c0ea335
VZ
67 wxWindowID id = -1,
68 const wxString& name = wxToolBarNameStr);
307f16e8 69 void SetToolBar(wxToolBar *toolbar);
88ac883a 70#endif // wxUSE_TOOLBAR
b9f29261
VS
71
72 wxPoint GetClientAreaOrigin() const { return wxPoint(0, 0); }
bfc6fde4 73
7c0ea335
VZ
74 // implementation from now on
75 // --------------------------
bfc6fde4 76
7c0ea335 77 // GTK callbacks
b5e31cc8 78 virtual void GtkOnSize();
bfc6fde4
VZ
79 virtual void OnInternalIdle();
80
16bcc879 81 bool m_menuBarDetached;
2b5f62a0 82 int m_menuBarHeight;
16bcc879 83 bool m_toolBarDetached;
3d0c4d2e 84
bfc6fde4 85protected:
ddb6bc71
RR
86 // common part of all ctors
87 void Init();
7c0ea335 88
6f02a879
VZ
89#if wxUSE_STATUSBAR
90 virtual void PositionStatusBar();
91#endif // wxUSE_STATUSBAR
92
1c4f8f8d 93 // override wxWindow methods to take into account tool/menu/statusbars
bfc6fde4 94 virtual void DoSetClientSize(int width, int height);
f9241296 95 virtual void DoGetClientSize( int *width, int *height ) const;
bfc6fde4 96
6522713c 97#if wxUSE_MENUS_NATIVE
2b5f62a0 98
6522713c
VZ
99 virtual void DetachMenuBar();
100 virtual void AttachMenuBar(wxMenuBar *menubar);
2b5f62a0
VZ
101
102public:
103 // Menu size is dynamic now, call this whenever it might change.
104 void UpdateMenuBarSize();
105
6522713c 106#endif // wxUSE_MENUS_NATIVE
0d53fc34
VS
107
108 DECLARE_DYNAMIC_CLASS(wxFrame)
c801d85f
KB
109};
110
b5e31cc8 111#endif // _WX_GTK_FRAME_H_