1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: SWIG definitions of various window classes
9 // Copyright: (c) 1998 by Total Control Software
10 // Licence: wxWindows license
11 /////////////////////////////////////////////////////////////////////////////
20 #include <wx/minifram.h>
24 //----------------------------------------------------------------------
27 %include my_typemaps.i
29 // Import some definitions of other classes, etc.
36 %pragma(python) code = "import wxp"
38 //----------------------------------------------------------------------
40 class wxFrame : public wxWindow {
42 wxFrame(wxWindow* parent, const wxWindowID id, const wxString& title,
43 const wxPoint& pos = wxPyDefaultPosition,
44 const wxSize& size = wxPyDefaultSize,
45 long style = wxDEFAULT_FRAME_STYLE,
46 char* name = "frame");
48 %pragma(python) addtomethod = "__init__:wxp._StdFrameCallbacks(self)"
50 void Centre(int direction = wxBOTH);
54 wxStatusBar* CreateStatusBar(int number = 1,
55 long style = wxST_SIZEGRIP,
57 char* name = "statusBar");
58 wxToolBar* CreateToolBar(long style = wxNO_BORDER|wxTB_HORIZONTAL,
60 char* name = "toolBar");
62 wxMenuBar* GetMenuBar();
63 wxStatusBar* GetStatusBar();
65 wxToolBar* GetToolBar();
66 void Iconize(bool iconize);
68 void Maximize(bool maximize);
70 void SetAcceleratorTable(const wxAcceleratorTable& accel);
72 void SetIcon(const wxIcon& icon);
73 void SetMenuBar(wxMenuBar* menuBar);
74 void SetStatusBar(wxStatusBar *statusBar);
75 void SetStatusText(const wxString& text, int number = 0);
76 void SetStatusWidths(int LCOUNT, int* LIST); // uses typemap
77 void SetTitle(const wxString& title);
78 void SetToolBar(wxToolBar* toolbar);
82 //---------------------------------------------------------------------------
85 class wxMiniFrame : public wxFrame {
87 wxMiniFrame(wxWindow* parent, const wxWindowID id, const wxString& title,
88 const wxPoint& pos = wxPyDefaultPosition,
89 const wxSize& size = wxPyDefaultSize,
90 long style = wxDEFAULT_FRAME_STYLE,
91 char* name = "frame");
93 %pragma(python) addtomethod = "__init__:wxp._StdFrameCallbacks(self)"