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");
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();
60 wxMenu* GetWindowMenu();
61 void SetWindowMenu(wxMenu* menu);
62 void SetToolBar(wxToolBar* toolbar);
67 //---------------------------------------------------------------------------
69 class wxMDIChildFrame : public wxFrame {
71 wxMDIChildFrame(wxMDIParentFrame* parent,
73 const wxString& title,
74 const wxPoint& pos = wxDefaultPosition,
75 const wxSize& size = wxDefaultSize,
76 long style = wxDEFAULT_FRAME_STYLE,
77 const char* name = "frame");
79 %pragma(python) addtomethod = "__init__:#wx._StdFrameCallbacks(self)"
82 void Maximize(bool maximize);
88 //---------------------------------------------------------------------------
90 class wxMDIClientWindow : public wxWindow {
92 wxMDIClientWindow(wxMDIParentFrame* parent, long style = 0);
93 %pragma(python) addtomethod = "__init__:#wx._StdWindowCallbacks(self)"
94 %pragma(python) addtomethod = "__init__:#wx._StdOnScrollCallbacks(self)"
97 //---------------------------------------------------------------------------