]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/_mdi.i
Add a set for wxMac too
[wxWidgets.git] / wxPython / src / _mdi.i
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: _mdi.i
3 // Purpose: SWIG interface for MDI related class definitions
4 //
5 // Author: Robin Dunn
6 //
7 // Created: 26-May-1998
8 // RCS-ID: $Id$
9 // Copyright: (c) 2003 by Total Control Software
10 // Licence: wxWindows license
11 /////////////////////////////////////////////////////////////////////////////
12
13 // Not a %module
14
15
16 //---------------------------------------------------------------------------
17 %newgroup
18
19 %{
20 #include <wx/mdi.h>
21 %}
22
23 //---------------------------------------------------------------------------
24
25 #define IDM_WINDOWTILE 4001
26 #define IDM_WINDOWTILEHOR 4001
27 #define IDM_WINDOWCASCADE 4002
28 #define IDM_WINDOWICONS 4003
29 #define IDM_WINDOWNEXT 4004
30 #define IDM_WINDOWTILEVERT 4005
31 #define wxFIRST_MDI_CHILD 4100
32 #define wxLAST_MDI_CHILD 4600
33
34
35
36 class wxMDIParentFrame : public wxFrame {
37 public:
38 %pythonAppend wxMDIParentFrame "self._setOORInfo(self)"
39 %pythonAppend wxMDIParentFrame() ""
40
41 wxMDIParentFrame(wxWindow *parent,
42 const wxWindowID id,
43 const wxString& title,
44 const wxPoint& pos = wxDefaultPosition,
45 const wxSize& size = wxDefaultSize,
46 long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL,
47 const wxString& name = wxPyFrameNameStr);
48 %name(PreMDIParentFrame)wxMDIParentFrame();
49
50 bool Create(wxWindow *parent,
51 const wxWindowID id,
52 const wxString& title,
53 const wxPoint& pos = wxDefaultPosition,
54 const wxSize& size = wxDefaultSize,
55 long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL,
56 const wxString& name = wxPyFrameNameStr);
57
58
59 void ActivateNext();
60 void ActivatePrevious();
61 void ArrangeIcons();
62 void Cascade();
63 wxMDIChildFrame* GetActiveChild();
64 wxMDIClientWindow* GetClientWindow();
65 wxWindow* GetToolBar();
66
67 // TODO: This isn't handled by the standard event-table system...
68 //wxMDIClientWindow* OnCreateClient();
69
70
71 #ifdef __WXMSW__
72 wxMenu* GetWindowMenu();
73 void SetWindowMenu(wxMenu* menu);
74 void SetToolBar(wxToolBar* toolbar);
75 #endif
76 void Tile();
77 };
78
79 //---------------------------------------------------------------------------
80
81 class wxMDIChildFrame : public wxFrame {
82 public:
83 %pythonAppend wxMDIChildFrame "self._setOORInfo(self)"
84 %pythonAppend wxMDIChildFrame() ""
85
86 wxMDIChildFrame(wxMDIParentFrame* parent,
87 const wxWindowID id,
88 const wxString& title,
89 const wxPoint& pos = wxDefaultPosition,
90 const wxSize& size = wxDefaultSize,
91 long style = wxDEFAULT_FRAME_STYLE,
92 const wxString& name = wxPyFrameNameStr);
93 %name(PreMDIChildFrame)wxMDIChildFrame();
94
95 bool Create(wxMDIParentFrame* parent,
96 const wxWindowID id,
97 const wxString& title,
98 const wxPoint& pos = wxDefaultPosition,
99 const wxSize& size = wxDefaultSize,
100 long style = wxDEFAULT_FRAME_STYLE,
101 const wxString& name = wxPyFrameNameStr);
102
103 void Activate();
104 void Maximize(bool maximize);
105 void Restore();
106
107 };
108
109
110 //---------------------------------------------------------------------------
111
112 class wxMDIClientWindow : public wxWindow {
113 public:
114 %pythonAppend wxMDIClientWindow "self._setOORInfo(self)"
115 %pythonAppend wxMDIClientWindow() ""
116
117 wxMDIClientWindow(wxMDIParentFrame* parent, long style = 0);
118 %name(PreMDIClientWindow)wxMDIClientWindow();
119
120 bool Create(wxMDIParentFrame* parent, long style = 0);
121 };
122
123
124 //---------------------------------------------------------------------------