]>
Commit | Line | Data |
---|---|---|
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 | 13 | //----------------------------------------------------------------------------- |
0d53fc34 | 14 | // wxFrame |
c801d85f KB |
15 | //----------------------------------------------------------------------------- |
16 | ||
20123d49 | 17 | class WXDLLIMPEXP_CORE wxFrame : public wxFrameBase |
c801d85f | 18 | { |
bfc6fde4 | 19 | public: |
7c0ea335 | 20 | // construction |
0d53fc34 VS |
21 | wxFrame() { Init(); } |
22 | wxFrame(wxWindow *parent, | |
1e6feb95 VZ |
23 | wxWindowID id, |
24 | const wxString& title, | |
25 | const wxPoint& pos = wxDefaultPosition, | |
26 | const wxSize& size = wxDefaultSize, | |
27 | long style = wxDEFAULT_FRAME_STYLE, | |
28 | const wxString& name = wxFrameNameStr) | |
7c0ea335 VZ |
29 | { |
30 | Init(); | |
31 | ||
32 | Create(parent, id, title, pos, size, style, name); | |
33 | } | |
34 | ||
35 | bool Create(wxWindow *parent, | |
36 | wxWindowID id, | |
37 | const wxString& title, | |
38 | const wxPoint& pos = wxDefaultPosition, | |
39 | const wxSize& size = wxDefaultSize, | |
40 | long style = wxDEFAULT_FRAME_STYLE, | |
41 | const wxString& name = wxFrameNameStr); | |
42 | ||
0d53fc34 | 43 | virtual ~wxFrame(); |
7c0ea335 | 44 | |
88ac883a | 45 | #if wxUSE_STATUSBAR |
3851e479 | 46 | void SetStatusBar(wxStatusBar *statbar); |
88ac883a | 47 | #endif // wxUSE_STATUSBAR |
bfc6fde4 | 48 | |
88ac883a | 49 | #if wxUSE_TOOLBAR |
307f16e8 | 50 | void SetToolBar(wxToolBar *toolbar); |
88ac883a | 51 | #endif // wxUSE_TOOLBAR |
1d66b099 | 52 | |
1529bc41 | 53 | virtual bool ShowFullScreen(bool show, long style = wxFULLSCREEN_ALL); |
b9f29261 | 54 | wxPoint GetClientAreaOrigin() const { return wxPoint(0, 0); } |
bfc6fde4 | 55 | |
7c0ea335 VZ |
56 | // implementation from now on |
57 | // -------------------------- | |
bfc6fde4 | 58 | |
7c0ea335 | 59 | // GTK callbacks |
bfc6fde4 VZ |
60 | virtual void OnInternalIdle(); |
61 | ||
bfc6fde4 | 62 | protected: |
ddb6bc71 RR |
63 | // common part of all ctors |
64 | void Init(); | |
7c0ea335 | 65 | |
1c4f8f8d | 66 | // override wxWindow methods to take into account tool/menu/statusbars |
f9241296 | 67 | virtual void DoGetClientSize( int *width, int *height ) const; |
bfc6fde4 | 68 | |
6522713c VZ |
69 | #if wxUSE_MENUS_NATIVE |
70 | virtual void DetachMenuBar(); | |
71 | virtual void AttachMenuBar(wxMenuBar *menubar); | |
72 | #endif // wxUSE_MENUS_NATIVE | |
0d53fc34 | 73 | |
1529bc41 PC |
74 | private: |
75 | long m_fsSaveFlag; | |
76 | ||
0d53fc34 | 77 | DECLARE_DYNAMIC_CLASS(wxFrame) |
c801d85f KB |
78 | }; |
79 | ||
b5e31cc8 | 80 | #endif // _WX_GTK_FRAME_H_ |