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 wx"
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__:wx._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|wxTB_FLAT,
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 //---------------------------------------------------------------------------
82 class wxMiniFrame : public wxFrame {
84 wxMiniFrame(wxWindow* parent, const wxWindowID id, const wxString& title,
85 const wxPoint& pos = wxPyDefaultPosition,
86 const wxSize& size = wxPyDefaultSize,
87 long style = wxDEFAULT_FRAME_STYLE,
88 char* name = "frame");
90 %pragma(python) addtomethod = "__init__:wx._StdFrameCallbacks(self)"
94 //---------------------------------------------------------------------------
95 /////////////////////////////////////////////////////////////////////////////
98 // Revision 1.3 1998/12/15 20:41:18 RD
99 // Changed the import semantics from "from wxPython import *" to "from
100 // wxPython.wx import *" This is for people who are worried about
101 // namespace pollution, they can use "from wxPython import wx" and then
102 // prefix all the wxPython identifiers with "wx."
104 // Added wxTaskbarIcon for wxMSW.
106 // Made the events work for wxGrid.
110 // Added wxMiniFrame for wxGTK, (untested.)
112 // Changed many of the args and return values that were pointers to gdi
113 // objects to references to reflect changes in the wxWindows API.
115 // Other assorted fixes and additions.