1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: SWIG interface for MDI related class definitions
7 // Created: 26-May-1998
9 // Copyright: (c) 2003 by Total Control Software
10 // Licence: wxWindows license
11 /////////////////////////////////////////////////////////////////////////////
16 //---------------------------------------------------------------------------
23 //---------------------------------------------------------------------------
25 #define IDM_WINDOWTILE 4001
26 #define IDM_WINDOWTILEHOR 4001
27 #define IDM_WINDOWCASCADE 4002
28 #define IDM_WINDOWICONS 4003
29 #define IDM_WINDOWNEXT 4004
30 #define IDM_WINDOWTILEVERT 4005
31 #define wxFIRST_MDI_CHILD 4100
32 #define wxLAST_MDI_CHILD 4600
36 MustHaveApp(wxMDIParentFrame);
38 class wxMDIParentFrame : public wxFrame {
40 %pythonAppend wxMDIParentFrame "self._setOORInfo(self)"
41 %pythonAppend wxMDIParentFrame() ""
43 wxMDIParentFrame(wxWindow *parent,
44 const wxWindowID id=-1,
45 const wxString& title = wxPyEmptyString,
46 const wxPoint& pos = wxDefaultPosition,
47 const wxSize& size = wxDefaultSize,
48 long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL,
49 const wxString& name = wxPyFrameNameStr);
50 %name(PreMDIParentFrame)wxMDIParentFrame();
52 bool Create(wxWindow *parent,
53 const wxWindowID id=-1,
54 const wxString& title = wxPyEmptyString,
55 const wxPoint& pos = wxDefaultPosition,
56 const wxSize& size = wxDefaultSize,
57 long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL,
58 const wxString& name = wxPyFrameNameStr);
62 void ActivatePrevious();
65 wxMDIChildFrame* GetActiveChild();
66 wxMDIClientWindow* GetClientWindow();
67 wxWindow* GetToolBar();
69 // TODO: This isn't handled by the standard event-table system...
70 //wxMDIClientWindow* OnCreateClient();
74 wxMenu* GetWindowMenu();
75 void SetWindowMenu(wxMenu* menu);
76 void SetToolBar(wxToolBar* toolbar);
81 //---------------------------------------------------------------------------
83 MustHaveApp(wxMDIChildFrame);
85 class wxMDIChildFrame : public wxFrame {
87 %pythonAppend wxMDIChildFrame "self._setOORInfo(self)"
88 %pythonAppend wxMDIChildFrame() ""
90 wxMDIChildFrame(wxMDIParentFrame* parent,
91 const wxWindowID id=-1,
92 const wxString& title = wxPyEmptyString,
93 const wxPoint& pos = wxDefaultPosition,
94 const wxSize& size = wxDefaultSize,
95 long style = wxDEFAULT_FRAME_STYLE,
96 const wxString& name = wxPyFrameNameStr);
97 %name(PreMDIChildFrame)wxMDIChildFrame();
99 bool Create(wxMDIParentFrame* parent,
100 const wxWindowID id=-1,
101 const wxString& title = wxPyEmptyString,
102 const wxPoint& pos = wxDefaultPosition,
103 const wxSize& size = wxDefaultSize,
104 long style = wxDEFAULT_FRAME_STYLE,
105 const wxString& name = wxPyFrameNameStr);
108 void Maximize(bool maximize);
114 //---------------------------------------------------------------------------
116 MustHaveApp(wxMDIClientWindow);
118 class wxMDIClientWindow : public wxWindow {
120 %pythonAppend wxMDIClientWindow "self._setOORInfo(self)"
121 %pythonAppend wxMDIClientWindow() ""
123 wxMDIClientWindow(wxMDIParentFrame* parent, long style = 0);
124 %name(PreMDIClientWindow)wxMDIClientWindow();
126 bool Create(wxMDIParentFrame* parent, long style = 0);
130 //---------------------------------------------------------------------------