]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/palmos/frame.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/palmos/frame.h
3 // Purpose: wxFrame class
4 // Author: William Osborne - minimal working wxPalmOS port
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
15 class WXDLLIMPEXP_CORE wxFrame
: public wxFrameBase
20 wxFrame(wxWindow
*parent
,
22 const wxString
& title
,
23 const wxPoint
& pos
= wxDefaultPosition
,
24 const wxSize
& size
= wxDefaultSize
,
25 long style
= wxDEFAULT_FRAME_STYLE
,
26 const wxString
& name
= wxFrameNameStr
)
30 Create(parent
, id
, title
, pos
, size
, style
, name
);
33 bool Create(wxWindow
*parent
,
35 const wxString
& title
,
36 const wxPoint
& pos
= wxDefaultPosition
,
37 const wxSize
& size
= wxDefaultSize
,
38 long style
= wxDEFAULT_FRAME_STYLE
,
39 const wxString
& name
= wxFrameNameStr
);
43 // implement base class pure virtuals
44 virtual bool ShowFullScreen(bool show
, long style
= wxFULLSCREEN_ALL
);
47 // implementation only from now on
48 // -------------------------------
51 void OnPaint(wxPaintEvent
& event
);
55 virtual wxToolBar
* CreateToolBar(long style
= -1,
56 wxWindowID id
= wxID_ANY
,
57 const wxString
& name
= wxToolBarNameStr
);
59 virtual void PositionToolBar();
60 #endif // wxUSE_TOOLBAR
63 bool HandleMenuLoop(const wxEventType
& evtType
, WXWORD isPopup
);
65 virtual wxPoint
GetClientAreaOrigin() const;
67 #if wxUSE_MENUS_NATIVE
68 bool HandleMenuOpen();
69 bool HandleMenuSelect(WXEVENTPTR event
);
70 #endif // wxUSE_MENUS_NATIVE
73 // common part of all ctors
76 // override base class virtuals
77 virtual void DoGetClientSize(int *width
, int *height
) const;
78 virtual void DoSetClientSize(int width
, int height
);
80 #if wxUSE_MENUS_NATIVE
81 // a plug in for MDI frame classes which need to do something special when
83 virtual void InternalSetMenuBar();
84 #endif // wxUSE_MENUS_NATIVE
86 // propagate our state change to all child frames
87 void IconizeChildFrames(bool bIconize
);
89 virtual bool IsMDIChild() const { return false; }
91 // Data to save/restore when calling ShowFullScreen
92 int m_fsStatusBarFields
; // 0 for no status bar
93 int m_fsStatusBarHeight
;
94 int m_fsToolBarHeight
;
97 // used by IconizeChildFrames(), see comments there
100 DECLARE_EVENT_TABLE()
101 DECLARE_DYNAMIC_CLASS_NO_COPY(wxFrame
)