]> git.saurik.com Git - wxWidgets.git/blob - include/wx/mgl/toplevel.h
removed wxUSE_TOOLBAR_SIMPLE leftovers from the main sources, it's not used anywhere...
[wxWidgets.git] / include / wx / mgl / toplevel.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/mgl/toplevel.h
3 // Purpose: Top level window, abstraction of wxFrame and wxDialog
4 // Author: Vaclav Slavik
5 // Id: $Id$
6 // Copyright: (c) 2001-2002 SciTech Software, Inc. (www.scitechsoft.com)
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10 #ifndef __WX_TOPLEVEL_H__
11 #define __WX_TOPLEVEL_H__
12
13 //-----------------------------------------------------------------------------
14 // wxTopLevelWindowMGL
15 //-----------------------------------------------------------------------------
16
17 class wxTopLevelWindowMGL : public wxTopLevelWindowBase
18 {
19 public:
20 // construction
21 wxTopLevelWindowMGL() { Init(); }
22 wxTopLevelWindowMGL(wxWindow *parent,
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)
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
43 virtual ~wxTopLevelWindowMGL();
44
45 // implement base class pure virtuals
46 virtual void Maximize(bool maximize = true);
47 virtual bool IsMaximized() const;
48 virtual void Iconize(bool iconize = true);
49 virtual bool IsIconized() const;
50 virtual void Restore();
51
52 virtual bool ShowFullScreen(bool show, long style = wxFULLSCREEN_ALL);
53 virtual bool IsFullScreen() const { return m_fsIsShowing; }
54
55 virtual bool Show(bool show = true);
56
57 virtual void SetTitle(const wxString &title) { m_title = title; }
58 virtual wxString GetTitle() const { return m_title; }
59
60 // implementation from now on
61 // --------------------------
62
63 protected:
64 // common part of all ctors
65 void Init();
66
67 wxString m_title;
68 bool m_fsIsShowing:1; /* full screen */
69 long m_fsSaveStyle;
70 long m_fsSaveFlag;
71 wxRect m_fsSaveFrame;
72
73 // is the frame currently iconized?
74 bool m_isIconized:1;
75 // and maximized?
76 bool m_isMaximized:1;
77 wxRect m_savedFrame;
78
79 // did we sent wxSizeEvent at least once?
80 bool m_sizeSet:1;
81 };
82
83 #endif // __WX_TOPLEVEL_H__