]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/frame.h
Replace wxComboBox::IsEmpty() with Is{List,Text}Empty().
[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
426d19f1 56#if wxUSE_LIBHILDON || wxUSE_LIBHILDON2
1b12ec12
VZ
57 // in Hildon environment all frames are always shown maximized
58 virtual bool IsMaximized() const { return true; }
426d19f1 59#endif // wxUSE_LIBHILDON || wxUSE_LIBHILDON2
1b12ec12 60
7c0ea335
VZ
61 // implementation from now on
62 // --------------------------
bfc6fde4 63
0c3e2a5b 64 virtual bool SendIdleEvents(wxIdleEvent& event);
bfc6fde4 65
bfc6fde4 66protected:
ddb6bc71
RR
67 // common part of all ctors
68 void Init();
7c0ea335 69
1c4f8f8d 70 // override wxWindow methods to take into account tool/menu/statusbars
f9241296 71 virtual void DoGetClientSize( int *width, int *height ) const;
bfc6fde4 72
6522713c
VZ
73#if wxUSE_MENUS_NATIVE
74 virtual void DetachMenuBar();
75 virtual void AttachMenuBar(wxMenuBar *menubar);
76#endif // wxUSE_MENUS_NATIVE
0d53fc34 77
1529bc41
PC
78private:
79 long m_fsSaveFlag;
80
0d53fc34 81 DECLARE_DYNAMIC_CLASS(wxFrame)
c801d85f
KB
82};
83
b5e31cc8 84#endif // _WX_GTK_FRAME_H_