]>
Commit | Line | Data |
---|---|---|
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 | ||
14 | %module mdi | |
15 | ||
16 | %{ | |
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 | |
29 | %import frames.i | |
30 | ||
31 | %pragma(python) code = "import wxp" | |
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 | ||
45 | %pragma(python) addtomethod = "__init__:wxp._StdFrameCallbacks(self)" | |
46 | ||
47 | void ActivateNext(); | |
48 | void ActivatePrevious(); | |
49 | void ArrangeIcons(); | |
50 | void Cascade(); | |
51 | void GetClientSize(int* OUTPUT, int* OUTPUT); | |
52 | wxMDIChildFrame* GetActiveChild(); | |
53 | wxMDIClientWindow* GetClientWindow(); | |
54 | wxWindow* GetToolBar(); | |
55 | ||
56 | // TODO: This isn't handled by the standard event-table system... | |
57 | //wxMDIClientWindow* OnCreateClient(); | |
58 | ||
59 | #ifdef __WXMSW__ | |
60 | void SetToolBar(wxToolBar* toolbar); | |
61 | #endif | |
62 | void Tile(); | |
63 | }; | |
64 | ||
65 | //--------------------------------------------------------------------------- | |
66 | ||
67 | class wxMDIChildFrame : public wxFrame { | |
68 | public: | |
69 | wxMDIChildFrame(wxMDIParentFrame* parent, | |
70 | const wxWindowID id, | |
71 | const wxString& title, | |
72 | const wxPoint& pos = wxPyDefaultPosition, | |
73 | const wxSize& size = wxPyDefaultSize, | |
74 | long style = wxDEFAULT_FRAME_STYLE, | |
75 | const char* name = "frame"); | |
76 | ||
77 | %pragma(python) addtomethod = "__init__:wxp._StdFrameCallbacks(self)" | |
78 | ||
79 | void Activate(); | |
80 | void Maximize(); | |
81 | void Restore(); | |
82 | ||
83 | void SetMenuBar(wxMenuBar *menu_bar); | |
84 | void SetClientSize(int width, int height); | |
85 | void GetPosition(int* OUTPUT, int* OUTPUT) const ; | |
86 | ||
87 | }; | |
88 | ||
89 | ||
90 | //--------------------------------------------------------------------------- | |
91 | ||
92 | class wxMDIClientWindow : public wxWindow { | |
93 | public: | |
94 | wxMDIClientWindow(wxMDIParentFrame* parent, long style = 0); | |
95 | %pragma(python) addtomethod = "__init__:wxp._StdWindowCallbacks(self)" | |
96 | %pragma(python) addtomethod = "__init__:wxp._StdOnScrollCallbacks(self)" | |
97 | }; | |
98 | ||
99 | //--------------------------------------------------------------------------- | |
100 | ///////////////////////////////////////////////////////////////////////////// | |
101 | // | |
102 | // $Log$ | |
103 | // Revision 1.4 1998/10/02 06:40:41 RD | |
104 | // Version 0.4 of wxPython for MSW. | |
105 | // | |
106 | // Revision 1.3 1998/08/18 19:48:18 RD | |
107 | // more wxGTK compatibility things. | |
108 | // | |
109 | // It builds now but there are serious runtime problems... | |
110 | // | |
111 | // Revision 1.2 1998/08/15 07:36:39 RD | |
112 | // - Moved the header in the .i files out of the code that gets put into | |
113 | // the .cpp files. It caused CVS conflicts because of the RCS ID being | |
114 | // different each time. | |
115 | // | |
116 | // - A few minor fixes. | |
117 | // | |
118 | // Revision 1.1 1998/08/09 08:25:51 RD | |
119 | // Initial version | |
120 | // | |
121 | // |