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* LIST); // 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 //---------------------------------------------------------------------------
92 /////////////////////////////////////////////////////////////////////////////
95 // Revision 1.4 1998/12/16 22:10:53 RD
96 // Tweaks needed to be able to build wxPython with wxGTK.
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.