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 void GetClientSize(int* OUTPUT, int* OUTPUT);
52 wxMDIChildFrame* GetActiveChild();
53 wxMDIClientWindow* GetClientWindow();
54 wxWindow* GetToolBar();
56 // TODO: This isn't handled by the standard event-table system...
57 //wxMDIClientWindow* OnCreateClient();
60 void SetToolBar(wxToolBar* toolbar);
65 //---------------------------------------------------------------------------
67 class wxMDIChildFrame : public wxFrame {
69 wxMDIChildFrame(wxMDIParentFrame* parent,
71 const wxString& title,
72 const wxPoint& pos = wxPyDefaultPosition,
73 const wxSize& size = wxPyDefaultSize,
74 long style = wxDEFAULT_FRAME_STYLE,
75 const char* name = "frame");
77 %pragma(python) addtomethod = "__init__:wx._StdFrameCallbacks(self)"
83 void SetMenuBar(wxMenuBar *menu_bar);
84 void SetClientSize(int width, int height);
85 void GetPosition(int* OUTPUT, int* OUTPUT) const ;
90 //---------------------------------------------------------------------------
92 class wxMDIClientWindow : public wxWindow {
94 wxMDIClientWindow(wxMDIParentFrame* parent, long style = 0);
95 %pragma(python) addtomethod = "__init__:wx._StdWindowCallbacks(self)"
96 %pragma(python) addtomethod = "__init__:wx._StdOnScrollCallbacks(self)"
99 //---------------------------------------------------------------------------
100 /////////////////////////////////////////////////////////////////////////////
103 // Revision 1.5 1998/12/15 20:41:21 RD
104 // Changed the import semantics from "from wxPython import *" to "from
105 // wxPython.wx import *" This is for people who are worried about
106 // namespace pollution, they can use "from wxPython import wx" and then
107 // prefix all the wxPython identifiers with "wx."
109 // Added wxTaskbarIcon for wxMSW.
111 // Made the events work for wxGrid.
115 // Added wxMiniFrame for wxGTK, (untested.)
117 // Changed many of the args and return values that were pointers to gdi
118 // objects to references to reflect changes in the wxWindows API.
120 // Other assorted fixes and additions.
122 // Revision 1.4 1998/10/02 06:40:41 RD
124 // Version 0.4 of wxPython for MSW.
126 // Revision 1.3 1998/08/18 19:48:18 RD
127 // more wxGTK compatibility things.
129 // It builds now but there are serious runtime problems...
131 // Revision 1.2 1998/08/15 07:36:39 RD
132 // - Moved the header in the .i files out of the code that gets put into
133 // the .cpp files. It caused CVS conflicts because of the RCS ID being
134 // different each time.
136 // - A few minor fixes.
138 // Revision 1.1 1998/08/09 08:25:51 RD