]> git.saurik.com Git - wxWidgets.git/blob - include/wx/dfb/toplevel.h
Fix wxPropertyGrid::GetPropertyRect when the last item is collapsed.
[wxWidgets.git] / include / wx / dfb / toplevel.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/dfb/toplevel.h
3 // Purpose: Top level window, abstraction of wxFrame and wxDialog
4 // Author: Vaclav Slavik
5 // Created: 2006-08-10
6 // Copyright: (c) 2006 REA Elektronik GmbH
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10 #ifndef _WX_DFB_TOPLEVEL_H_
11 #define _WX_DFB_TOPLEVEL_H_
12
13 //-----------------------------------------------------------------------------
14 // wxTopLevelWindowDFB
15 //-----------------------------------------------------------------------------
16
17 class WXDLLIMPEXP_CORE wxTopLevelWindowDFB : public wxTopLevelWindowBase
18 {
19 public:
20 // construction
21 wxTopLevelWindowDFB() { Init(); }
22 wxTopLevelWindowDFB(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 // implement base class pure virtuals
44 virtual void Maximize(bool maximize = true);
45 virtual bool IsMaximized() const;
46 virtual void Iconize(bool iconize = true);
47 virtual bool IsIconized() const;
48 virtual void Restore();
49
50 virtual bool ShowFullScreen(bool show, long style = wxFULLSCREEN_ALL);
51 virtual bool IsFullScreen() const { return m_fsIsShowing; }
52
53 virtual bool CanSetTransparent() { return true; }
54 virtual bool SetTransparent(wxByte alpha);
55
56 virtual void SetTitle(const wxString &title) { m_title = title; }
57 virtual wxString GetTitle() const { return m_title; }
58
59 protected:
60 // common part of all ctors
61 void Init();
62
63 virtual void HandleFocusEvent(const wxDFBWindowEvent& event_);
64
65 protected:
66 wxString m_title;
67
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 maximized?
74 bool m_isMaximized:1;
75 wxRect m_savedFrame;
76 };
77
78 #endif // _WX_DFB_TOPLEVEL_H_