]>
Commit | Line | Data |
---|---|---|
9c039d08 RD |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: frames.i | |
3 | // Purpose: SWIG definitions of various window classes | |
4 | // | |
5 | // Author: Robin Dunn | |
6 | // | |
7 | // Created: 8/27/98 | |
8 | // RCS-ID: $Id$ | |
9 | // Copyright: (c) 1998 by Total Control Software | |
10 | // Licence: wxWindows license | |
11 | ///////////////////////////////////////////////////////////////////////////// | |
12 | ||
13 | ||
14 | %module frames | |
15 | ||
16 | %{ | |
17 | #include "helpers.h" | |
9c039d08 | 18 | #include <wx/minifram.h> |
9c039d08 RD |
19 | %} |
20 | ||
21 | //---------------------------------------------------------------------- | |
22 | ||
23 | %include typemaps.i | |
24 | %include my_typemaps.i | |
25 | ||
26 | // Import some definitions of other classes, etc. | |
27 | %import _defs.i | |
28 | %import misc.i | |
29 | %import gdi.i | |
30 | %import windows.i | |
31 | %import stattool.i | |
32 | ||
b8b8dda7 | 33 | %pragma(python) code = "import wx" |
9c039d08 RD |
34 | |
35 | //---------------------------------------------------------------------- | |
36 | ||
37 | class wxFrame : public wxWindow { | |
38 | public: | |
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"); | |
44 | ||
b8b8dda7 | 45 | %pragma(python) addtomethod = "__init__:wx._StdFrameCallbacks(self)" |
9c039d08 RD |
46 | |
47 | void Centre(int direction = wxBOTH); | |
48 | #ifdef __WXMSW__ | |
49 | void Command(int id); | |
50 | #endif | |
51 | wxStatusBar* CreateStatusBar(int number = 1, | |
52 | long style = wxST_SIZEGRIP, | |
53 | wxWindowID id = -1, | |
54 | char* name = "statusBar"); | |
b8b8dda7 | 55 | wxToolBar* CreateToolBar(long style = wxNO_BORDER|wxTB_HORIZONTAL|wxTB_FLAT, |
9c039d08 RD |
56 | wxWindowID id = -1, |
57 | char* name = "toolBar"); | |
58 | ||
59 | wxMenuBar* GetMenuBar(); | |
60 | wxStatusBar* GetStatusBar(); | |
61 | wxString GetTitle(); | |
62 | wxToolBar* GetToolBar(); | |
63 | void Iconize(bool iconize); | |
64 | bool IsIconized(); | |
65 | void Maximize(bool maximize); | |
9c039d08 | 66 | void SetAcceleratorTable(const wxAcceleratorTable& accel); |
9c039d08 RD |
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); | |
74 | ||
75 | }; | |
76 | ||
77 | //--------------------------------------------------------------------------- | |
78 | ||
9c039d08 RD |
79 | class wxMiniFrame : public wxFrame { |
80 | public: | |
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"); | |
86 | ||
b8b8dda7 | 87 | %pragma(python) addtomethod = "__init__:wx._StdFrameCallbacks(self)" |
9c039d08 | 88 | }; |
b8b8dda7 RD |
89 | |
90 | ||
91 | //--------------------------------------------------------------------------- | |
b8b8dda7 RD |
92 | |
93 | ||
94 | ||
95 | ||
9c039d08 | 96 |