1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: SWIG definitions of various window classes
9 // Copyright: (c) 1998 by Total Control Software
10 // Licence: wxWindows license
11 /////////////////////////////////////////////////////////////////////////////
18 #include <wx/minifram.h>
21 //----------------------------------------------------------------------
24 %include my_typemaps.i
26 // Import some definitions of other classes, etc.
33 %pragma(python) code = "import wx"
35 //----------------------------------------------------------------------
37 class wxFrame : public wxWindow {
39 wxFrame(wxWindow* parent, const wxWindowID id, const wxString& title,
40 const wxPoint& pos = wxPyDefaultPosition,
41 const wxSize& size = wxPyDefaultSize,
42 long style = wxDEFAULT_FRAME_STYLE,
43 char* name = "frame");
45 %pragma(python) addtomethod = "__init__:wx._StdFrameCallbacks(self)"
47 void Centre(int direction = wxBOTH);
51 wxStatusBar* CreateStatusBar(int number = 1,
52 long style = wxST_SIZEGRIP,
54 char* name = "statusBar");
55 wxToolBar* CreateToolBar(long style = wxNO_BORDER|wxTB_HORIZONTAL|wxTB_FLAT,
57 char* name = "toolBar");
59 wxMenuBar* GetMenuBar();
60 wxStatusBar* GetStatusBar();
62 wxToolBar* GetToolBar();
63 void Iconize(bool iconize);
65 void Maximize(bool maximize);
66 void SetAcceleratorTable(const wxAcceleratorTable& accel);
67 void SetIcon(const wxIcon& icon);
68 void SetMenuBar(wxMenuBar* menuBar);
69 void SetStatusBar(wxStatusBar *statusBar);
70 void SetStatusText(const wxString& text, int number = 0);
71 void SetStatusWidths(int LCOUNT, int* choices); // uses typemap
72 void SetTitle(const wxString& title);
73 void SetToolBar(wxToolBar* toolbar);
77 //---------------------------------------------------------------------------
79 class wxMiniFrame : public wxFrame {
81 wxMiniFrame(wxWindow* parent, const wxWindowID id, const wxString& title,
82 const wxPoint& pos = wxPyDefaultPosition,
83 const wxSize& size = wxPyDefaultSize,
84 long style = wxDEFAULT_FRAME_STYLE,
85 char* name = "frame");
87 %pragma(python) addtomethod = "__init__:wx._StdFrameCallbacks(self)"
91 //---------------------------------------------------------------------------