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 wxp"
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__:wxp._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__:wxp._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__:wxp._StdWindowCallbacks(self)"
96 %pragma(python) addtomethod = "__init__:wxp._StdOnScrollCallbacks(self)"
99 //---------------------------------------------------------------------------
100 /////////////////////////////////////////////////////////////////////////////
103 // Revision 1.4 1998/10/02 06:40:41 RD
104 // Version 0.4 of wxPython for MSW.
106 // Revision 1.3 1998/08/18 19:48:18 RD
107 // more wxGTK compatibility things.
109 // It builds now but there are serious runtime problems...
111 // Revision 1.2 1998/08/15 07:36:39 RD
112 // - Moved the header in the .i files out of the code that gets put into
113 // the .cpp files. It caused CVS conflicts because of the RCS ID being
114 // different each time.
116 // - A few minor fixes.
118 // Revision 1.1 1998/08/09 08:25:51 RD