]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/mdi.i
more wxGTK compatibility things.
[wxWidgets.git] / utils / wxPython / src / mdi.i
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: mdi.i
3 // Purpose: MDI related class definitions for wxPython
4 //
5 // Author: Robin Dunn
6 //
7 // Created: 5/26/98
8 // RCS-ID: $Id$
9 // Copyright: (c) 1998 by Total Control Software
10 // Licence: wxWindows license
11 /////////////////////////////////////////////////////////////////////////////
12
13
14 %module mdi
15
16 %{
17 #include "helpers.h"
18 %}
19
20 //----------------------------------------------------------------------
21
22 %include typemaps.i
23 %include my_typemaps.i
24
25 // Import some definitions of other classes, etc.
26 %import _defs.i
27 %import misc.i
28 %import windows.i
29
30 //----------------------------------------------------------------------
31
32 class wxMDIParentFrame : public wxFrame {
33 public:
34 wxMDIParentFrame(wxWindow *parent,
35 const wxWindowID id,
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");
41
42 void ActivateNext();
43 void ActivatePrevious();
44 void ArrangeIcons();
45 void Cascade();
46 void GetClientSize(int* OUTPUT, int* OUTPUT);
47 wxMDIChildFrame* GetActiveChild();
48 wxMDIClientWindow* GetClientWindow();
49 wxWindow* GetToolBar();
50
51 // TODO: This isn't handled by the standard event-table system...
52 //wxMDIClientWindow* OnCreateClient();
53
54 #ifdef __WXMSW__
55 void SetToolBar(wxToolBar* toolbar);
56 #endif
57 void Tile();
58 };
59
60 //---------------------------------------------------------------------------
61
62 class wxMDIChildFrame : public wxFrame {
63 public:
64 wxMDIChildFrame(wxMDIParentFrame* parent,
65 const wxWindowID id,
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");
71
72 void Activate();
73 void Maximize();
74 void Restore();
75
76 void SetMenuBar(wxMenuBar *menu_bar);
77 void SetClientSize(int width, int height);
78 void GetPosition(int* OUTPUT, int* OUTPUT) const ;
79
80 };
81
82
83 //---------------------------------------------------------------------------
84
85 class wxMDIClientWindow : public wxWindow {
86 public:
87 wxMDIClientWindow(wxMDIParentFrame* parent, long style = 0);
88 };
89
90 //---------------------------------------------------------------------------
91 /////////////////////////////////////////////////////////////////////////////
92 //
93 // $Log$
94 // Revision 1.3 1998/08/18 19:48:18 RD
95 // more wxGTK compatibility things.
96 //
97 // It builds now but there are serious runtime problems...
98 //
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.
103 //
104 // - A few minor fixes.
105 //
106 // Revision 1.1 1998/08/09 08:25:51 RD
107 // Initial version
108 //
109 //