]>
Commit | Line | Data |
---|---|---|
c801d85f | 1 | ///////////////////////////////////////////////////////////////////////////// |
7c0ea335 | 2 | // Name: wx/gtk/frame.h |
c801d85f KB |
3 | // Purpose: |
4 | // Author: Robert Roebling | |
58614078 | 5 | // Copyright: (c) 1998 Robert Roebling, Julian Smart |
65571936 | 6 | // Licence: wxWindows licence |
c801d85f KB |
7 | ///////////////////////////////////////////////////////////////////////////// |
8 | ||
b5e31cc8 PC |
9 | #ifndef _WX_GTK_FRAME_H_ |
10 | #define _WX_GTK_FRAME_H_ | |
c801d85f | 11 | |
c801d85f | 12 | //----------------------------------------------------------------------------- |
0d53fc34 | 13 | // wxFrame |
c801d85f KB |
14 | //----------------------------------------------------------------------------- |
15 | ||
20123d49 | 16 | class WXDLLIMPEXP_CORE wxFrame : public wxFrameBase |
c801d85f | 17 | { |
bfc6fde4 | 18 | public: |
7c0ea335 | 19 | // construction |
0d53fc34 VS |
20 | wxFrame() { Init(); } |
21 | wxFrame(wxWindow *parent, | |
1e6feb95 VZ |
22 | wxWindowID id, |
23 | const wxString& title, | |
24 | const wxPoint& pos = wxDefaultPosition, | |
25 | const wxSize& size = wxDefaultSize, | |
26 | long style = wxDEFAULT_FRAME_STYLE, | |
27 | const wxString& name = wxFrameNameStr) | |
7c0ea335 VZ |
28 | { |
29 | Init(); | |
30 | ||
31 | Create(parent, id, title, pos, size, style, name); | |
32 | } | |
33 | ||
34 | bool Create(wxWindow *parent, | |
35 | wxWindowID id, | |
36 | const wxString& title, | |
37 | const wxPoint& pos = wxDefaultPosition, | |
38 | const wxSize& size = wxDefaultSize, | |
39 | long style = wxDEFAULT_FRAME_STYLE, | |
40 | const wxString& name = wxFrameNameStr); | |
41 | ||
0d53fc34 | 42 | virtual ~wxFrame(); |
7c0ea335 | 43 | |
88ac883a | 44 | #if wxUSE_STATUSBAR |
3851e479 | 45 | void SetStatusBar(wxStatusBar *statbar); |
88ac883a | 46 | #endif // wxUSE_STATUSBAR |
bfc6fde4 | 47 | |
88ac883a | 48 | #if wxUSE_TOOLBAR |
307f16e8 | 49 | void SetToolBar(wxToolBar *toolbar); |
88ac883a | 50 | #endif // wxUSE_TOOLBAR |
1d66b099 | 51 | |
1529bc41 | 52 | virtual bool ShowFullScreen(bool show, long style = wxFULLSCREEN_ALL); |
b9f29261 | 53 | wxPoint GetClientAreaOrigin() const { return wxPoint(0, 0); } |
bfc6fde4 | 54 | |
426d19f1 | 55 | #if wxUSE_LIBHILDON || wxUSE_LIBHILDON2 |
1b12ec12 VZ |
56 | // in Hildon environment all frames are always shown maximized |
57 | virtual bool IsMaximized() const { return true; } | |
426d19f1 | 58 | #endif // wxUSE_LIBHILDON || wxUSE_LIBHILDON2 |
1b12ec12 | 59 | |
7c0ea335 VZ |
60 | // implementation from now on |
61 | // -------------------------- | |
bfc6fde4 | 62 | |
0c3e2a5b | 63 | virtual bool SendIdleEvents(wxIdleEvent& event); |
bfc6fde4 | 64 | |
bfc6fde4 | 65 | protected: |
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 | 74 | private: |
95dc31e0 PC |
75 | void Init(); |
76 | ||
1529bc41 PC |
77 | long m_fsSaveFlag; |
78 | ||
0d53fc34 | 79 | DECLARE_DYNAMIC_CLASS(wxFrame) |
c801d85f KB |
80 | }; |
81 | ||
b5e31cc8 | 82 | #endif // _WX_GTK_FRAME_H_ |