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");
55 void ActivatePrevious();
58 wxMDIChildFrame* GetActiveChild();
59 wxMDIClientWindow* GetClientWindow();
60 wxWindow* GetToolBar();
62 // TODO: This isn't handled by the standard event-table system...
63 //wxMDIClientWindow* OnCreateClient();
67 wxMenu* GetWindowMenu();
68 void SetWindowMenu(wxMenu* menu);
69 void SetToolBar(wxToolBar* toolbar);
74 //---------------------------------------------------------------------------
76 class wxMDIChildFrame : public wxFrame {
78 wxMDIChildFrame(wxMDIParentFrame* parent,
80 const wxString& title,
81 const wxPoint& pos = wxDefaultPosition,
82 const wxSize& size = wxDefaultSize,
83 long style = wxDEFAULT_FRAME_STYLE,
84 const char* name = "frame");
85 %name(wxPreMDIChildFrame)wxMDIChildFrame();
87 bool Create(wxMDIParentFrame* parent,
89 const wxString& title,
90 const wxPoint& pos = wxDefaultPosition,
91 const wxSize& size = wxDefaultSize,
92 long style = wxDEFAULT_FRAME_STYLE,
93 const char* name = "frame");
97 void Maximize(bool maximize);
103 //---------------------------------------------------------------------------
105 class wxMDIClientWindow : public wxWindow {
107 wxMDIClientWindow(wxMDIParentFrame* parent, long style = 0);
108 %name(wxPreMDIClientWindow)wxMDIClientWindow();
110 %pragma(python) addtomethod = "__init__:#wx._StdWindowCallbacks(self)"
111 %pragma(python) addtomethod = "__init__:#wx._StdOnScrollCallbacks(self)"
113 bool Create(wxMDIParentFrame* parent, long style = 0);
115 %pragma(python) addtomethod = "__init__:#wx._StdWindowCallbacks(self)"
116 %pragma(python) addtomethod = "__init__:#wx._StdOnScrollCallbacks(self)"
119 //---------------------------------------------------------------------------