]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mdi.i
cleaned a bit of mess in wxX11
[wxWidgets.git] / wxPython / src / mdi.i
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 wx"
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 = wxDefaultPosition,
41 const wxSize& size = wxDefaultSize,
42 long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL,
43 const char* name = "frame");
44 %name(wxPreMDIParentFrame)wxMDIParentFrame();
45
46 bool Create(wxWindow *parent,
47 const wxWindowID id,
48 const wxString& title,
49 const wxPoint& pos = wxDefaultPosition,
50 const wxSize& size = wxDefaultSize,
51 long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL,
52 const char* name = "frame");
53
54 %pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
55 %pragma(python) addtomethod = "wxPreMDIParentFrame:val._setOORInfo(val)"
56
57 void ActivateNext();
58 void ActivatePrevious();
59 void ArrangeIcons();
60 void Cascade();
61 wxMDIChildFrame* GetActiveChild();
62 wxMDIClientWindow* GetClientWindow();
63 wxWindow* GetToolBar();
64
65 // TODO: This isn't handled by the standard event-table system...
66 //wxMDIClientWindow* OnCreateClient();
67
68
69 #ifdef __WXMSW__
70 wxMenu* GetWindowMenu();
71 void SetWindowMenu(wxMenu* menu);
72 void SetToolBar(wxToolBar* toolbar);
73 #endif
74 void Tile();
75 };
76
77 //---------------------------------------------------------------------------
78
79 class wxMDIChildFrame : public wxFrame {
80 public:
81 wxMDIChildFrame(wxMDIParentFrame* parent,
82 const wxWindowID id,
83 const wxString& title,
84 const wxPoint& pos = wxDefaultPosition,
85 const wxSize& size = wxDefaultSize,
86 long style = wxDEFAULT_FRAME_STYLE,
87 const char* name = "frame");
88 %name(wxPreMDIChildFrame)wxMDIChildFrame();
89
90 bool Create(wxMDIParentFrame* parent,
91 const wxWindowID id,
92 const wxString& title,
93 const wxPoint& pos = wxDefaultPosition,
94 const wxSize& size = wxDefaultSize,
95 long style = wxDEFAULT_FRAME_STYLE,
96 const char* name = "frame");
97
98 %pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
99 %pragma(python) addtomethod = "wxPreMDIChildFrame:val._setOORInfo(val)"
100
101 void Activate();
102 void Maximize(bool maximize);
103 void Restore();
104
105 };
106
107
108 //---------------------------------------------------------------------------
109
110 class wxMDIClientWindow : public wxWindow {
111 public:
112 wxMDIClientWindow(wxMDIParentFrame* parent, long style = 0);
113 %name(wxPreMDIClientWindow)wxMDIClientWindow();
114
115 bool Create(wxMDIParentFrame* parent, long style = 0);
116
117 %pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
118 %pragma(python) addtomethod = "wxPreMDIClientWindow:val._setOORInfo(val)"
119 };
120
121 //---------------------------------------------------------------------------