Remove all lines containing cvs/svn "$Id$" keyword.
[wxWidgets.git] / include / wx / osx / toplevel.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/osx/toplevel.h
3 // Purpose: wxTopLevelWindowMac is the Mac implementation of wxTLW
4 // Author: Stefan Csomor
5 // Modified by:
6 // Created: 20.09.01
7 // Copyright: (c) 2001 Stefan Csomor
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_MSW_TOPLEVEL_H_
12 #define _WX_MSW_TOPLEVEL_H_
13
14 // ----------------------------------------------------------------------------
15 // wxTopLevelWindowMac
16 // ----------------------------------------------------------------------------
17
18 class WXDLLIMPEXP_CORE wxTopLevelWindowMac : public wxTopLevelWindowBase
19 {
20 public:
21 // constructors and such
22 wxTopLevelWindowMac() { Init(); }
23
24 wxTopLevelWindowMac(wxWindow *parent,
25 wxWindowID id,
26 const wxString& title,
27 const wxPoint& pos = wxDefaultPosition,
28 const wxSize& size = wxDefaultSize,
29 long style = wxDEFAULT_FRAME_STYLE,
30 const wxString& name = wxFrameNameStr)
31 {
32 Init();
33
34 (void)Create(parent, id, title, pos, size, style, name);
35 }
36
37 virtual ~wxTopLevelWindowMac();
38
39 bool Create(wxWindow *parent,
40 wxWindowID id,
41 const wxString& title,
42 const wxPoint& pos = wxDefaultPosition,
43 const wxSize& size = wxDefaultSize,
44 long style = wxDEFAULT_FRAME_STYLE,
45 const wxString& name = wxFrameNameStr);
46
47 bool Create(wxWindow *parent, WXWindow nativeWindow);
48
49 virtual bool Destroy();
50
51 virtual wxPoint GetClientAreaOrigin() const;
52
53 // Attracts the users attention to this window if the application is
54 // inactive (should be called when a background event occurs)
55 virtual void RequestUserAttention(int flags = wxUSER_ATTENTION_INFO);
56
57 // implement base class pure virtuals
58 virtual void Maximize(bool maximize = true);
59 virtual bool IsMaximized() const;
60 virtual void Iconize(bool iconize = true);
61 virtual bool IsIconized() const;
62 virtual void Restore();
63
64 virtual bool IsActive();
65
66 virtual void ShowWithoutActivating();
67 virtual bool ShowFullScreen(bool show, long style = wxFULLSCREEN_ALL) ;
68 virtual bool IsFullScreen() const ;
69
70 // implementation from now on
71 // --------------------------
72
73 virtual void SetTitle( const wxString& title);
74 virtual wxString GetTitle() const;
75
76 virtual void SetLabel(const wxString& label) { SetTitle( label ); }
77 virtual wxString GetLabel() const { return GetTitle(); }
78
79 virtual void OSXSetModified(bool modified);
80 virtual bool OSXIsModified() const;
81
82 virtual void SetRepresentedFilename(const wxString& filename);
83
84 protected:
85 // common part of all ctors
86 void Init();
87
88 // is the frame currently iconized?
89 bool m_iconized;
90
91 // should the frame be maximized when it will be shown? set by Maximize()
92 // when it is called while the frame is hidden
93 bool m_maximizeOnShow;
94 private :
95 DECLARE_EVENT_TABLE()
96 };
97
98 #endif // _WX_MSW_TOPLEVEL_H_