]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/frame.h
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
7 // Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
20 #include "wx/object.h"
21 #include "wx/window.h"
23 #include "wx/statusbr.h"
25 //-----------------------------------------------------------------------------
27 //-----------------------------------------------------------------------------
33 //-----------------------------------------------------------------------------
35 //-----------------------------------------------------------------------------
37 extern const char *wxFrameNameStr
;
39 //-----------------------------------------------------------------------------
41 //-----------------------------------------------------------------------------
43 class wxFrame
: public wxWindow
45 DECLARE_DYNAMIC_CLASS(wxFrame
)
50 wxFrame( wxWindow
*parent
, wxWindowID id
, const wxString
&title
,
51 const wxPoint
&pos
= wxDefaultPosition
, const wxSize
&size
= wxDefaultSize
,
52 long style
= wxDEFAULT_FRAME_STYLE
, const wxString
&name
= wxFrameNameStr
);
53 bool Create( wxWindow
*parent
, wxWindowID id
, const wxString
&title
,
54 const wxPoint
&pos
= wxDefaultPosition
, const wxSize
&size
= wxDefaultSize
,
55 long style
= wxDEFAULT_FRAME_STYLE
, const wxString
&name
= wxFrameNameStr
);
58 void OnCloseWindow( wxCloseEvent
& event
);
59 virtual bool Show( bool show
);
60 virtual void Enable( bool enable
);
61 virtual void GetClientSize( int *width
, int *height
) const;
62 void OnSize( wxSizeEvent
&event
);
63 void SetMenuBar( wxMenuBar
*menuBar
);
64 virtual bool CreateStatusBar( int number
= 1 );
65 virtual void SetStatusText( const wxString
&text
, int number
= 0 );
66 virtual void SetStatusWidths( int n
, int *width
);
67 wxStatusBar
*GetStatusBar(void);
68 wxMenuBar
*GetMenuBar(void);
69 void SetTitle( const wxString
&title
);
70 wxString
GetTitle(void) const;
71 void OnActivate( wxActivateEvent
&WXUNUSED(event
) ) {};
72 void OnIdle( wxIdleEvent
&event
);
76 void GtkOnSize( int x
, int y
, int width
, int height
);
77 void DoMenuUpdates(void);
78 void DoMenuUpdates(wxMenu
* menu
);
84 GtkWidget
*m_mainWindow
;
85 wxMenuBar
*m_frameMenuBar
;
86 wxStatusBar
*m_frameStatusBar
;
95 #endif // __GTKFRAMEH__