]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/frame.h
stream compile fixes
[wxWidgets.git] / include / wx / gtk1 / frame.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: frame.h
3 // Purpose:
4 // Author: Robert Roebling
5 // Created: 01/02/97
6 // Id:
7 // Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11
12 #ifndef __GTKFRAMEH__
13 #define __GTKFRAMEH__
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "wx/defs.h"
20 #include "wx/object.h"
21 #include "wx/window.h"
22 #include "wx/menu.h"
23 #include "wx/statusbr.h"
24
25 //-----------------------------------------------------------------------------
26 // classes
27 //-----------------------------------------------------------------------------
28
29 class wxRadioBox;
30
31 class wxFrame;
32
33 //-----------------------------------------------------------------------------
34 // global data
35 //-----------------------------------------------------------------------------
36
37 extern const char *wxFrameNameStr;
38
39 //-----------------------------------------------------------------------------
40 // wxFrame
41 //-----------------------------------------------------------------------------
42
43 class wxFrame: public wxWindow
44 {
45 DECLARE_DYNAMIC_CLASS(wxFrame)
46
47 public:
48
49 wxFrame(void);
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 );
56 ~wxFrame(void);
57 bool Destroy(void);
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
73 //private:
74
75 void GtkOnSize( int x, int y, int width, int height );
76
77 private:
78
79 friend wxWindow;
80
81 GtkWidget *m_mainWindow;
82 wxMenuBar *m_frameMenuBar;
83 wxStatusBar *m_frameStatusBar;
84 bool m_doingOnSize;
85 wxString m_title;
86
87
88 DECLARE_EVENT_TABLE()
89
90 };
91
92 #endif // __GTKFRAMEH__