]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/frame.h
fix some warnings from GCC -Wextra
[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 13//-----------------------------------------------------------------------------
0d53fc34 14// wxFrame
c801d85f
KB
15//-----------------------------------------------------------------------------
16
20123d49 17class WXDLLIMPEXP_CORE wxFrame : public wxFrameBase
c801d85f 18{
bfc6fde4 19public:
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
1b12ec12
VZ
56#if wxUSE_LIBHILDON
57 // in Hildon environment all frames are always shown maximized
58 virtual bool IsMaximized() const { return true; }
59#endif // wxUSE_LIBHILDON
60
7c0ea335
VZ
61 // implementation from now on
62 // --------------------------
bfc6fde4 63
7c0ea335 64 // GTK callbacks
bfc6fde4
VZ
65 virtual void OnInternalIdle();
66
bfc6fde4 67protected:
ddb6bc71
RR
68 // common part of all ctors
69 void Init();
7c0ea335 70
1c4f8f8d 71 // override wxWindow methods to take into account tool/menu/statusbars
f9241296 72 virtual void DoGetClientSize( int *width, int *height ) const;
bfc6fde4 73
6522713c
VZ
74#if wxUSE_MENUS_NATIVE
75 virtual void DetachMenuBar();
76 virtual void AttachMenuBar(wxMenuBar *menubar);
77#endif // wxUSE_MENUS_NATIVE
0d53fc34 78
1529bc41
PC
79private:
80 long m_fsSaveFlag;
81
0d53fc34 82 DECLARE_DYNAMIC_CLASS(wxFrame)
c801d85f
KB
83};
84
b5e31cc8 85#endif // _WX_GTK_FRAME_H_