]>
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 | ||
f6bcfd97 BP |
37 | enum { |
38 | wxFULLSCREEN_NOMENUBAR, | |
39 | wxFULLSCREEN_NOTOOLBAR, | |
40 | wxFULLSCREEN_NOSTATUSBAR, | |
41 | wxFULLSCREEN_NOBORDER, | |
42 | wxFULLSCREEN_NOCAPTION, | |
43 | wxFULLSCREEN_ALL | |
44 | }; | |
45 | ||
46 | ||
9c039d08 RD |
47 | class wxFrame : public wxWindow { |
48 | public: | |
49 | wxFrame(wxWindow* parent, const wxWindowID id, const wxString& title, | |
b68dc582 RD |
50 | const wxPoint& pos = wxDefaultPosition, |
51 | const wxSize& size = wxDefaultSize, | |
9c039d08 RD |
52 | long style = wxDEFAULT_FRAME_STYLE, |
53 | char* name = "frame"); | |
54 | ||
f6bcfd97 | 55 | %pragma(python) addtomethod = "__init__:#wx._StdFrameCallbacks(self)" |
9c039d08 RD |
56 | |
57 | void Centre(int direction = wxBOTH); | |
9c039d08 RD |
58 | wxStatusBar* CreateStatusBar(int number = 1, |
59 | long style = wxST_SIZEGRIP, | |
60 | wxWindowID id = -1, | |
61 | char* name = "statusBar"); | |
b8b8dda7 | 62 | wxToolBar* CreateToolBar(long style = wxNO_BORDER|wxTB_HORIZONTAL|wxTB_FLAT, |
9c039d08 RD |
63 | wxWindowID id = -1, |
64 | char* name = "toolBar"); | |
65 | ||
f6bcfd97 | 66 | const wxIcon& GetIcon(); |
9c039d08 RD |
67 | wxMenuBar* GetMenuBar(); |
68 | wxStatusBar* GetStatusBar(); | |
69 | wxString GetTitle(); | |
70 | wxToolBar* GetToolBar(); | |
71 | void Iconize(bool iconize); | |
72 | bool IsIconized(); | |
73 | void Maximize(bool maximize); | |
f6bcfd97 BP |
74 | bool IsMaximized(); |
75 | void Restore(); | |
9c039d08 | 76 | void SetAcceleratorTable(const wxAcceleratorTable& accel); |
9c039d08 RD |
77 | void SetIcon(const wxIcon& icon); |
78 | void SetMenuBar(wxMenuBar* menuBar); | |
79 | void SetStatusBar(wxStatusBar *statusBar); | |
80 | void SetStatusText(const wxString& text, int number = 0); | |
eec92d76 | 81 | void SetStatusWidths(int LCOUNT, int* choices); // uses typemap |
9c039d08 RD |
82 | void SetTitle(const wxString& title); |
83 | void SetToolBar(wxToolBar* toolbar); | |
f6bcfd97 BP |
84 | void MakeModal(bool modal = TRUE); |
85 | wxPoint GetClientAreaOrigin() const; | |
86 | bool Command(int id); | |
87 | bool ProcessCommand(int id); | |
f6bcfd97 | 88 | bool ShowFullScreen(bool show, long style = wxFULLSCREEN_ALL); |
9c039d08 RD |
89 | }; |
90 | ||
91 | //--------------------------------------------------------------------------- | |
92 | ||
9c039d08 RD |
93 | class wxMiniFrame : public wxFrame { |
94 | public: | |
95 | wxMiniFrame(wxWindow* parent, const wxWindowID id, const wxString& title, | |
b68dc582 RD |
96 | const wxPoint& pos = wxDefaultPosition, |
97 | const wxSize& size = wxDefaultSize, | |
9c039d08 RD |
98 | long style = wxDEFAULT_FRAME_STYLE, |
99 | char* name = "frame"); | |
100 | ||
f6bcfd97 | 101 | %pragma(python) addtomethod = "__init__:#wx._StdFrameCallbacks(self)" |
9c039d08 | 102 | }; |
b8b8dda7 RD |
103 | |
104 | ||
105 | //--------------------------------------------------------------------------- | |
b8b8dda7 RD |
106 | |
107 | ||
108 | ||
109 | ||
9c039d08 | 110 |