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