]>
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" | |
18 | ||
19 | #ifdef __WXMSW__ | |
20 | #include <wx/minifram.h> | |
21 | #endif | |
22 | %} | |
23 | ||
24 | //---------------------------------------------------------------------- | |
25 | ||
26 | %include typemaps.i | |
27 | %include my_typemaps.i | |
28 | ||
29 | // Import some definitions of other classes, etc. | |
30 | %import _defs.i | |
31 | %import misc.i | |
32 | %import gdi.i | |
33 | %import windows.i | |
34 | %import stattool.i | |
35 | ||
36 | %pragma(python) code = "import wxp" | |
37 | ||
38 | //---------------------------------------------------------------------- | |
39 | ||
40 | class wxFrame : public wxWindow { | |
41 | public: | |
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"); | |
47 | ||
48 | %pragma(python) addtomethod = "__init__:wxp._StdFrameCallbacks(self)" | |
49 | ||
50 | void Centre(int direction = wxBOTH); | |
51 | #ifdef __WXMSW__ | |
52 | void Command(int id); | |
53 | #endif | |
54 | wxStatusBar* CreateStatusBar(int number = 1, | |
55 | long style = wxST_SIZEGRIP, | |
56 | wxWindowID id = -1, | |
57 | char* name = "statusBar"); | |
58 | wxToolBar* CreateToolBar(long style = wxNO_BORDER|wxTB_HORIZONTAL, | |
59 | wxWindowID id = -1, | |
60 | char* name = "toolBar"); | |
61 | ||
62 | wxMenuBar* GetMenuBar(); | |
63 | wxStatusBar* GetStatusBar(); | |
64 | wxString GetTitle(); | |
65 | wxToolBar* GetToolBar(); | |
66 | void Iconize(bool iconize); | |
67 | bool IsIconized(); | |
68 | void Maximize(bool maximize); | |
69 | #ifdef __WXMSW__ | |
70 | void SetAcceleratorTable(const wxAcceleratorTable& accel); | |
71 | #endif | |
72 | void SetIcon(const wxIcon& icon); | |
73 | void SetMenuBar(wxMenuBar* menuBar); | |
74 | void SetStatusBar(wxStatusBar *statusBar); | |
75 | void SetStatusText(const wxString& text, int number = 0); | |
76 | void SetStatusWidths(int LCOUNT, int* LIST); // uses typemap | |
77 | void SetTitle(const wxString& title); | |
78 | void SetToolBar(wxToolBar* toolbar); | |
79 | ||
80 | }; | |
81 | ||
82 | //--------------------------------------------------------------------------- | |
83 | ||
84 | #ifdef __WXMSW__ | |
85 | class wxMiniFrame : public wxFrame { | |
86 | public: | |
87 | wxMiniFrame(wxWindow* parent, const wxWindowID id, const wxString& title, | |
88 | const wxPoint& pos = wxPyDefaultPosition, | |
89 | const wxSize& size = wxPyDefaultSize, | |
90 | long style = wxDEFAULT_FRAME_STYLE, | |
91 | char* name = "frame"); | |
92 | ||
93 | %pragma(python) addtomethod = "__init__:wxp._StdFrameCallbacks(self)" | |
94 | }; | |
95 | #endif | |
96 |