]>
Commit | Line | Data |
---|---|---|
7bf85405 RD |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: mdi.i | |
3 | // Purpose: MDI related class definitions for wxPython | |
4 | // | |
5 | // Author: Robin Dunn | |
6 | // | |
7 | // Created: 5/26/98 | |
8 | // RCS-ID: $Id$ | |
9 | // Copyright: (c) 1998 by Total Control Software | |
10 | // Licence: wxWindows license | |
11 | ///////////////////////////////////////////////////////////////////////////// | |
12 | ||
13 | ||
03e9bead RD |
14 | %module mdi |
15 | ||
16 | %{ | |
7bf85405 RD |
17 | #include "helpers.h" |
18 | %} | |
19 | ||
20 | //---------------------------------------------------------------------- | |
21 | ||
22 | %include typemaps.i | |
23 | %include my_typemaps.i | |
24 | ||
25 | // Import some definitions of other classes, etc. | |
26 | %import _defs.i | |
27 | %import misc.i | |
28 | %import windows.i | |
9c039d08 RD |
29 | %import frames.i |
30 | ||
b8b8dda7 | 31 | %pragma(python) code = "import wx" |
7bf85405 RD |
32 | |
33 | //---------------------------------------------------------------------- | |
34 | ||
35 | class wxMDIParentFrame : public wxFrame { | |
36 | public: | |
37 | wxMDIParentFrame(wxWindow *parent, | |
38 | const wxWindowID id, | |
39 | const wxString& title, | |
40 | const wxPoint& pos = wxPyDefaultPosition, | |
41 | const wxSize& size = wxPyDefaultSize, | |
42 | long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL, | |
43 | const char* name = "frame"); | |
44 | ||
b8b8dda7 | 45 | %pragma(python) addtomethod = "__init__:wx._StdFrameCallbacks(self)" |
9c039d08 | 46 | |
7bf85405 RD |
47 | void ActivateNext(); |
48 | void ActivatePrevious(); | |
49 | void ArrangeIcons(); | |
50 | void Cascade(); | |
7bf85405 RD |
51 | wxMDIChildFrame* GetActiveChild(); |
52 | wxMDIClientWindow* GetClientWindow(); | |
53 | wxWindow* GetToolBar(); | |
54 | ||
55 | // TODO: This isn't handled by the standard event-table system... | |
56 | //wxMDIClientWindow* OnCreateClient(); | |
57 | ||
fb5e0af0 | 58 | #ifdef __WXMSW__ |
7bf85405 | 59 | void SetToolBar(wxToolBar* toolbar); |
fb5e0af0 | 60 | #endif |
7bf85405 RD |
61 | void Tile(); |
62 | }; | |
63 | ||
64 | //--------------------------------------------------------------------------- | |
65 | ||
66 | class wxMDIChildFrame : public wxFrame { | |
67 | public: | |
68 | wxMDIChildFrame(wxMDIParentFrame* parent, | |
69 | const wxWindowID id, | |
70 | const wxString& title, | |
71 | const wxPoint& pos = wxPyDefaultPosition, | |
72 | const wxSize& size = wxPyDefaultSize, | |
73 | long style = wxDEFAULT_FRAME_STYLE, | |
74 | const char* name = "frame"); | |
75 | ||
b8b8dda7 | 76 | %pragma(python) addtomethod = "__init__:wx._StdFrameCallbacks(self)" |
9c039d08 | 77 | |
7bf85405 RD |
78 | void Activate(); |
79 | void Maximize(); | |
80 | void Restore(); | |
fb5e0af0 | 81 | |
7bf85405 RD |
82 | }; |
83 | ||
84 | ||
85 | //--------------------------------------------------------------------------- | |
86 | ||
87 | class wxMDIClientWindow : public wxWindow { | |
88 | public: | |
89 | wxMDIClientWindow(wxMDIParentFrame* parent, long style = 0); | |
b8b8dda7 RD |
90 | %pragma(python) addtomethod = "__init__:wx._StdWindowCallbacks(self)" |
91 | %pragma(python) addtomethod = "__init__:wx._StdOnScrollCallbacks(self)" | |
7bf85405 RD |
92 | }; |
93 | ||
94 | //--------------------------------------------------------------------------- | |
95 | ///////////////////////////////////////////////////////////////////////////// | |
96 | // | |
97 | // $Log$ | |
0699c864 RD |
98 | // Revision 1.6 1999/02/25 07:08:34 RD |
99 | // wxPython version 2.0b5 | |
100 | // | |
b8b8dda7 RD |
101 | // Revision 1.5 1998/12/15 20:41:21 RD |
102 | // Changed the import semantics from "from wxPython import *" to "from | |
103 | // wxPython.wx import *" This is for people who are worried about | |
104 | // namespace pollution, they can use "from wxPython import wx" and then | |
105 | // prefix all the wxPython identifiers with "wx." | |
106 | // | |
107 | // Added wxTaskbarIcon for wxMSW. | |
108 | // | |
109 | // Made the events work for wxGrid. | |
110 | // | |
111 | // Added wxConfig. | |
112 | // | |
113 | // Added wxMiniFrame for wxGTK, (untested.) | |
114 | // | |
115 | // Changed many of the args and return values that were pointers to gdi | |
116 | // objects to references to reflect changes in the wxWindows API. | |
117 | // | |
118 | // Other assorted fixes and additions. | |
119 | // | |
9c039d08 | 120 | // Revision 1.4 1998/10/02 06:40:41 RD |
b8b8dda7 | 121 | // |
9c039d08 RD |
122 | // Version 0.4 of wxPython for MSW. |
123 | // | |
fb5e0af0 RD |
124 | // Revision 1.3 1998/08/18 19:48:18 RD |
125 | // more wxGTK compatibility things. | |
126 | // | |
127 | // It builds now but there are serious runtime problems... | |
128 | // | |
03e9bead RD |
129 | // Revision 1.2 1998/08/15 07:36:39 RD |
130 | // - Moved the header in the .i files out of the code that gets put into | |
131 | // the .cpp files. It caused CVS conflicts because of the RCS ID being | |
132 | // different each time. | |
133 | // | |
134 | // - A few minor fixes. | |
135 | // | |
7bf85405 RD |
136 | // Revision 1.1 1998/08/09 08:25:51 RD |
137 | // Initial version | |
138 | // | |
139 | // |