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 const int IDM_WINDOWTILE = 4001;
36 const int IDM_WINDOWTILEHOR = 4001;
37 const int IDM_WINDOWCASCADE = 4002;
38 const int IDM_WINDOWICONS = 4003;
39 const int IDM_WINDOWNEXT = 4004;
40 const int IDM_WINDOWTILEVERT = 4005;
41 const int wxFIRST_MDI_CHILD = 4100;
42 const int wxLAST_MDI_CHILD = 4600;
46 class wxMDIParentFrame : public wxFrame {
48 wxMDIParentFrame(wxWindow *parent,
50 const wxString& title,
51 const wxPoint& pos = wxDefaultPosition,
52 const wxSize& size = wxDefaultSize,
53 long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL,
54 const char* name = "frame");
55 %name(wxPreMDIParentFrame)wxMDIParentFrame();
57 bool Create(wxWindow *parent,
59 const wxString& title,
60 const wxPoint& pos = wxDefaultPosition,
61 const wxSize& size = wxDefaultSize,
62 long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL,
63 const char* name = "frame");
65 %pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
66 %pragma(python) addtomethod = "wxPreMDIParentFrame:val._setOORInfo(val)"
69 void ActivatePrevious();
72 wxMDIChildFrame* GetActiveChild();
73 wxMDIClientWindow* GetClientWindow();
74 wxWindow* GetToolBar();
76 // TODO: This isn't handled by the standard event-table system...
77 //wxMDIClientWindow* OnCreateClient();
81 wxMenu* GetWindowMenu();
82 void SetWindowMenu(wxMenu* menu);
83 void SetToolBar(wxToolBar* toolbar);
88 //---------------------------------------------------------------------------
90 class wxMDIChildFrame : public wxFrame {
92 wxMDIChildFrame(wxMDIParentFrame* parent,
94 const wxString& title,
95 const wxPoint& pos = wxDefaultPosition,
96 const wxSize& size = wxDefaultSize,
97 long style = wxDEFAULT_FRAME_STYLE,
98 const char* name = "frame");
99 %name(wxPreMDIChildFrame)wxMDIChildFrame();
101 bool Create(wxMDIParentFrame* parent,
103 const wxString& title,
104 const wxPoint& pos = wxDefaultPosition,
105 const wxSize& size = wxDefaultSize,
106 long style = wxDEFAULT_FRAME_STYLE,
107 const char* name = "frame");
109 %pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
110 %pragma(python) addtomethod = "wxPreMDIChildFrame:val._setOORInfo(val)"
113 void Maximize(bool maximize);
119 //---------------------------------------------------------------------------
121 class wxMDIClientWindow : public wxWindow {
123 wxMDIClientWindow(wxMDIParentFrame* parent, long style = 0);
124 %name(wxPreMDIClientWindow)wxMDIClientWindow();
126 bool Create(wxMDIParentFrame* parent, long style = 0);
128 %pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
129 %pragma(python) addtomethod = "wxPreMDIClientWindow:val._setOORInfo(val)"
132 //---------------------------------------------------------------------------