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 = wxPyDefaultPosition,
41 const wxSize& size = wxPyDefaultSize,
42 long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL,
43 const char* name = "frame");
45 %pragma(python) addtomethod = "__init__:#wx._StdFrameCallbacks(self)"
48 void ActivatePrevious();
51 wxMDIChildFrame* GetActiveChild();
52 wxMDIClientWindow* GetClientWindow();
53 wxWindow* GetToolBar();
55 // TODO: This isn't handled by the standard event-table system...
56 //wxMDIClientWindow* OnCreateClient();
59 void SetToolBar(wxToolBar* toolbar);
64 //---------------------------------------------------------------------------
66 class wxMDIChildFrame : public wxFrame {
68 wxMDIChildFrame(wxMDIParentFrame* parent,
70 const wxString& title,
71 const wxPoint& pos = wxPyDefaultPosition,
72 const wxSize& size = wxPyDefaultSize,
73 long style = wxDEFAULT_FRAME_STYLE,
74 const char* name = "frame");
76 %pragma(python) addtomethod = "__init__:#wx._StdFrameCallbacks(self)"
79 void Maximize(bool maximize);
85 //---------------------------------------------------------------------------
87 class wxMDIClientWindow : public wxWindow {
89 wxMDIClientWindow(wxMDIParentFrame* parent, long style = 0);
90 %pragma(python) addtomethod = "__init__:#wx._StdWindowCallbacks(self)"
91 %pragma(python) addtomethod = "__init__:#wx._StdOnScrollCallbacks(self)"
94 //---------------------------------------------------------------------------