]>
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> |
4f3449b4 | 19 | #include <wx/tipwin.h> |
9c039d08 RD |
20 | %} |
21 | ||
22 | //---------------------------------------------------------------------- | |
23 | ||
24 | %include typemaps.i | |
25 | %include my_typemaps.i | |
26 | ||
27 | // Import some definitions of other classes, etc. | |
28 | %import _defs.i | |
29 | %import misc.i | |
30 | %import gdi.i | |
31 | %import windows.i | |
32 | %import stattool.i | |
33 | ||
b8b8dda7 | 34 | %pragma(python) code = "import wx" |
9c039d08 RD |
35 | |
36 | //---------------------------------------------------------------------- | |
37 | ||
f6bcfd97 BP |
38 | enum { |
39 | wxFULLSCREEN_NOMENUBAR, | |
40 | wxFULLSCREEN_NOTOOLBAR, | |
41 | wxFULLSCREEN_NOSTATUSBAR, | |
42 | wxFULLSCREEN_NOBORDER, | |
43 | wxFULLSCREEN_NOCAPTION, | |
44 | wxFULLSCREEN_ALL | |
45 | }; | |
46 | ||
47 | ||
9c039d08 RD |
48 | class wxFrame : public wxWindow { |
49 | public: | |
50 | wxFrame(wxWindow* parent, const wxWindowID id, const wxString& title, | |
b68dc582 RD |
51 | const wxPoint& pos = wxDefaultPosition, |
52 | const wxSize& size = wxDefaultSize, | |
9c039d08 RD |
53 | long style = wxDEFAULT_FRAME_STYLE, |
54 | char* name = "frame"); | |
09f3d4e6 | 55 | %name(wxPreFrame)wxFrame(); |
9c039d08 | 56 | |
09f3d4e6 RD |
57 | bool Create(wxWindow* parent, const wxWindowID id, const wxString& title, |
58 | const wxPoint& pos = wxDefaultPosition, | |
59 | const wxSize& size = wxDefaultSize, | |
60 | long style = wxDEFAULT_FRAME_STYLE, | |
61 | char* name = "frame"); | |
9c039d08 RD |
62 | |
63 | void Centre(int direction = wxBOTH); | |
9c039d08 RD |
64 | wxStatusBar* CreateStatusBar(int number = 1, |
65 | long style = wxST_SIZEGRIP, | |
66 | wxWindowID id = -1, | |
67 | char* name = "statusBar"); | |
b8b8dda7 | 68 | wxToolBar* CreateToolBar(long style = wxNO_BORDER|wxTB_HORIZONTAL|wxTB_FLAT, |
9c039d08 RD |
69 | wxWindowID id = -1, |
70 | char* name = "toolBar"); | |
71 | ||
f6bcfd97 | 72 | const wxIcon& GetIcon(); |
9c039d08 RD |
73 | wxMenuBar* GetMenuBar(); |
74 | wxStatusBar* GetStatusBar(); | |
75 | wxString GetTitle(); | |
76 | wxToolBar* GetToolBar(); | |
77 | void Iconize(bool iconize); | |
78 | bool IsIconized(); | |
79 | void Maximize(bool maximize); | |
f6bcfd97 BP |
80 | bool IsMaximized(); |
81 | void Restore(); | |
9c039d08 | 82 | void SetAcceleratorTable(const wxAcceleratorTable& accel); |
9c039d08 RD |
83 | void SetIcon(const wxIcon& icon); |
84 | void SetMenuBar(wxMenuBar* menuBar); | |
85 | void SetStatusBar(wxStatusBar *statusBar); | |
86 | void SetStatusText(const wxString& text, int number = 0); | |
eec92d76 | 87 | void SetStatusWidths(int LCOUNT, int* choices); // uses typemap |
9c039d08 RD |
88 | void SetTitle(const wxString& title); |
89 | void SetToolBar(wxToolBar* toolbar); | |
f6bcfd97 BP |
90 | void MakeModal(bool modal = TRUE); |
91 | wxPoint GetClientAreaOrigin() const; | |
92 | bool Command(int id); | |
93 | bool ProcessCommand(int id); | |
f6bcfd97 | 94 | bool ShowFullScreen(bool show, long style = wxFULLSCREEN_ALL); |
edf2f43e | 95 | bool IsFullScreen(); |
9c039d08 RD |
96 | }; |
97 | ||
98 | //--------------------------------------------------------------------------- | |
99 | ||
9c039d08 RD |
100 | class wxMiniFrame : public wxFrame { |
101 | public: | |
102 | wxMiniFrame(wxWindow* parent, const wxWindowID id, const wxString& title, | |
b68dc582 RD |
103 | const wxPoint& pos = wxDefaultPosition, |
104 | const wxSize& size = wxDefaultSize, | |
9c039d08 RD |
105 | long style = wxDEFAULT_FRAME_STYLE, |
106 | char* name = "frame"); | |
09f3d4e6 | 107 | %name(wxPreMiniFrame)wxMiniFrame(); |
9c039d08 | 108 | |
09f3d4e6 RD |
109 | bool Create(wxWindow* parent, const wxWindowID id, const wxString& title, |
110 | const wxPoint& pos = wxDefaultPosition, | |
111 | const wxSize& size = wxDefaultSize, | |
112 | long style = wxDEFAULT_FRAME_STYLE, | |
113 | char* name = "frame"); | |
9c039d08 | 114 | }; |
b8b8dda7 RD |
115 | |
116 | ||
117 | //--------------------------------------------------------------------------- | |
b8b8dda7 | 118 | |
4f3449b4 RD |
119 | class wxTipWindow : public wxFrame |
120 | { | |
121 | public: | |
122 | wxTipWindow(wxWindow *parent, | |
123 | const wxString& text, | |
124 | wxCoord maxLength = 100); | |
125 | }; | |
126 | ||
127 | ||
128 | //--------------------------------------------------------------------------- | |
129 | ||
b8b8dda7 RD |
130 | |
131 | ||
132 | ||
9c039d08 | 133 |