]>
Commit | Line | Data |
---|---|---|
7bf85405 RD |
1 | %module mdi |
2 | %{ | |
3 | ///////////////////////////////////////////////////////////////////////////// | |
4 | // Name: mdi.i | |
5 | // Purpose: MDI related class definitions for wxPython | |
6 | // | |
7 | // Author: Robin Dunn | |
8 | // | |
9 | // Created: 5/26/98 | |
10 | // RCS-ID: $Id$ | |
11 | // Copyright: (c) 1998 by Total Control Software | |
12 | // Licence: wxWindows license | |
13 | ///////////////////////////////////////////////////////////////////////////// | |
14 | ||
15 | ||
16 | #include "helpers.h" | |
17 | %} | |
18 | ||
19 | //---------------------------------------------------------------------- | |
20 | ||
21 | %include typemaps.i | |
22 | %include my_typemaps.i | |
23 | ||
24 | // Import some definitions of other classes, etc. | |
25 | %import _defs.i | |
26 | %import misc.i | |
27 | %import windows.i | |
28 | ||
29 | //---------------------------------------------------------------------- | |
30 | ||
31 | class wxMDIParentFrame : public wxFrame { | |
32 | public: | |
33 | wxMDIParentFrame(wxWindow *parent, | |
34 | const wxWindowID id, | |
35 | const wxString& title, | |
36 | const wxPoint& pos = wxPyDefaultPosition, | |
37 | const wxSize& size = wxPyDefaultSize, | |
38 | long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL, | |
39 | const char* name = "frame"); | |
40 | ||
41 | void ActivateNext(); | |
42 | void ActivatePrevious(); | |
43 | void ArrangeIcons(); | |
44 | void Cascade(); | |
45 | void GetClientSize(int* OUTPUT, int* OUTPUT); | |
46 | wxMDIChildFrame* GetActiveChild(); | |
47 | wxMDIClientWindow* GetClientWindow(); | |
48 | wxWindow* GetToolBar(); | |
49 | ||
50 | // TODO: This isn't handled by the standard event-table system... | |
51 | //wxMDIClientWindow* OnCreateClient(); | |
52 | ||
53 | void SetToolBar(wxToolBar* toolbar); | |
54 | void Tile(); | |
55 | }; | |
56 | ||
57 | //--------------------------------------------------------------------------- | |
58 | ||
59 | class wxMDIChildFrame : public wxFrame { | |
60 | public: | |
61 | wxMDIChildFrame(wxMDIParentFrame* parent, | |
62 | const wxWindowID id, | |
63 | const wxString& title, | |
64 | const wxPoint& pos = wxPyDefaultPosition, | |
65 | const wxSize& size = wxPyDefaultSize, | |
66 | long style = wxDEFAULT_FRAME_STYLE, | |
67 | const char* name = "frame"); | |
68 | ||
69 | void Activate(); | |
70 | void Maximize(); | |
71 | void Restore(); | |
72 | }; | |
73 | ||
74 | ||
75 | //--------------------------------------------------------------------------- | |
76 | ||
77 | class wxMDIClientWindow : public wxWindow { | |
78 | public: | |
79 | wxMDIClientWindow(wxMDIParentFrame* parent, long style = 0); | |
80 | }; | |
81 | ||
82 | //--------------------------------------------------------------------------- | |
83 | ///////////////////////////////////////////////////////////////////////////// | |
84 | // | |
85 | // $Log$ | |
86 | // Revision 1.1 1998/08/09 08:25:51 RD | |
87 | // Initial version | |
88 | // | |
89 | // |