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)"
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 //---------------------------------------------------------------------------
95 /////////////////////////////////////////////////////////////////////////////
98 // Revision 1.6 1999/02/25 07:08:34 RD
99 // wxPython version 2.0b5
101 // Revision 1.5 1998/12/15 20:41:21 RD
102 // Changed the import semantics from "from wxPython import *" to "from
103 // wxPython.wx import *" This is for people who are worried about
104 // namespace pollution, they can use "from wxPython import wx" and then
105 // prefix all the wxPython identifiers with "wx."
107 // Added wxTaskbarIcon for wxMSW.
109 // Made the events work for wxGrid.
113 // Added wxMiniFrame for wxGTK, (untested.)
115 // Changed many of the args and return values that were pointers to gdi
116 // objects to references to reflect changes in the wxWindows API.
118 // Other assorted fixes and additions.
120 // Revision 1.4 1998/10/02 06:40:41 RD
122 // Version 0.4 of wxPython for MSW.
124 // Revision 1.3 1998/08/18 19:48:18 RD
125 // more wxGTK compatibility things.
127 // It builds now but there are serious runtime problems...
129 // Revision 1.2 1998/08/15 07:36:39 RD
130 // - Moved the header in the .i files out of the code that gets put into
131 // the .cpp files. It caused CVS conflicts because of the RCS ID being
132 // different each time.
134 // - A few minor fixes.
136 // Revision 1.1 1998/08/09 08:25:51 RD