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);
69 void SetAcceleratorTable(const wxAcceleratorTable& accel);
70 void SetIcon(const wxIcon& icon);
71 void SetMenuBar(wxMenuBar* menuBar);
72 void SetStatusBar(wxStatusBar *statusBar);
73 void SetStatusText(const wxString& text, int number = 0);
74 void SetStatusWidths(int LCOUNT, int* LIST); // uses typemap
75 void SetTitle(const wxString& title);
76 void SetToolBar(wxToolBar* toolbar);
80 //---------------------------------------------------------------------------
83 class wxMiniFrame : public wxFrame {
85 wxMiniFrame(wxWindow* parent, const wxWindowID id, const wxString& title,
86 const wxPoint& pos = wxPyDefaultPosition,
87 const wxSize& size = wxPyDefaultSize,
88 long style = wxDEFAULT_FRAME_STYLE,
89 char* name = "frame");
91 %pragma(python) addtomethod = "__init__:wxp._StdFrameCallbacks(self)"