1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: MDI related class definitions for wxPython
9 // Copyright: (c) 1998 by Total Control Software
10 // Licence: wxWindows license
11 /////////////////////////////////////////////////////////////////////////////
20 //----------------------------------------------------------------------
23 %include my_typemaps.i
25 // Import some definitions of other classes, etc.
31 %pragma(python) code = "import wx"
33 //----------------------------------------------------------------------
35 class wxMDIParentFrame : public wxFrame {
37 wxMDIParentFrame(wxWindow *parent,
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();
46 bool Create(wxWindow *parent,
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");
54 %pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
55 %pragma(python) addtomethod = "wxPreMDIParentFrame:val._setOORInfo(val)"
58 void ActivatePrevious();
61 wxMDIChildFrame* GetActiveChild();
62 wxMDIClientWindow* GetClientWindow();
63 wxWindow* GetToolBar();
65 // TODO: This isn't handled by the standard event-table system...
66 //wxMDIClientWindow* OnCreateClient();
70 wxMenu* GetWindowMenu();
71 void SetWindowMenu(wxMenu* menu);
72 void SetToolBar(wxToolBar* toolbar);
77 //---------------------------------------------------------------------------
79 class wxMDIChildFrame : public wxFrame {
81 wxMDIChildFrame(wxMDIParentFrame* parent,
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();
90 bool Create(wxMDIParentFrame* parent,
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");
98 %pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
99 %pragma(python) addtomethod = "wxPreMDIChildFrame:val._setOORInfo(val)"
102 void Maximize(bool maximize);
108 //---------------------------------------------------------------------------
110 class wxMDIClientWindow : public wxWindow {
112 wxMDIClientWindow(wxMDIParentFrame* parent, long style = 0);
113 %name(wxPreMDIClientWindow)wxMDIClientWindow();
115 bool Create(wxMDIParentFrame* parent, long style = 0);
117 %pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
118 %pragma(python) addtomethod = "wxPreMDIClientWindow:val._setOORInfo(val)"
121 //---------------------------------------------------------------------------