]>
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); |
edf2f43e | 89 | bool IsFullScreen(); |
9c039d08 RD |
90 | }; |
91 | ||
92 | //--------------------------------------------------------------------------- | |
93 | ||
9c039d08 RD |
94 | class wxMiniFrame : public wxFrame { |
95 | public: | |
96 | wxMiniFrame(wxWindow* parent, const wxWindowID id, const wxString& title, | |
b68dc582 RD |
97 | const wxPoint& pos = wxDefaultPosition, |
98 | const wxSize& size = wxDefaultSize, | |
9c039d08 RD |
99 | long style = wxDEFAULT_FRAME_STYLE, |
100 | char* name = "frame"); | |
101 | ||
f6bcfd97 | 102 | %pragma(python) addtomethod = "__init__:#wx._StdFrameCallbacks(self)" |
9c039d08 | 103 | }; |
b8b8dda7 RD |
104 | |
105 | ||
106 | //--------------------------------------------------------------------------- | |
b8b8dda7 RD |
107 | |
108 | ||
109 | ||
110 | ||
9c039d08 | 111 |