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.
30 //----------------------------------------------------------------------
32 class wxMDIParentFrame : public wxFrame {
34 wxMDIParentFrame(wxWindow *parent,
36 const wxString& title,
37 const wxPoint& pos = wxPyDefaultPosition,
38 const wxSize& size = wxPyDefaultSize,
39 long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL,
40 const char* name = "frame");
43 void ActivatePrevious();
46 void GetClientSize(int* OUTPUT, int* OUTPUT);
47 wxMDIChildFrame* GetActiveChild();
48 wxMDIClientWindow* GetClientWindow();
49 wxWindow* GetToolBar();
51 // TODO: This isn't handled by the standard event-table system...
52 //wxMDIClientWindow* OnCreateClient();
55 void SetToolBar(wxToolBar* toolbar);
60 //---------------------------------------------------------------------------
62 class wxMDIChildFrame : public wxFrame {
64 wxMDIChildFrame(wxMDIParentFrame* parent,
66 const wxString& title,
67 const wxPoint& pos = wxPyDefaultPosition,
68 const wxSize& size = wxPyDefaultSize,
69 long style = wxDEFAULT_FRAME_STYLE,
70 const char* name = "frame");
76 void SetMenuBar(wxMenuBar *menu_bar);
77 void SetClientSize(int width, int height);
78 void GetPosition(int* OUTPUT, int* OUTPUT) const ;
83 //---------------------------------------------------------------------------
85 class wxMDIClientWindow : public wxWindow {
87 wxMDIClientWindow(wxMDIParentFrame* parent, long style = 0);
90 //---------------------------------------------------------------------------
91 /////////////////////////////////////////////////////////////////////////////
94 // Revision 1.3 1998/08/18 19:48:18 RD
95 // more wxGTK compatibility things.
97 // It builds now but there are serious runtime problems...
99 // Revision 1.2 1998/08/15 07:36:39 RD
100 // - Moved the header in the .i files out of the code that gets put into
101 // the .cpp files. It caused CVS conflicts because of the RCS ID being
102 // different each time.
104 // - A few minor fixes.
106 // Revision 1.1 1998/08/09 08:25:51 RD