]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/mdi.i
- Moved the header in the .i files out of the code that gets put into
[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 void SetToolBar(wxToolBar* toolbar);
55 void Tile();
56 };
57
58 //---------------------------------------------------------------------------
59
60 class wxMDIChildFrame : public wxFrame {
61 public:
62 wxMDIChildFrame(wxMDIParentFrame* parent,
63 const wxWindowID id,
64 const wxString& title,
65 const wxPoint& pos = wxPyDefaultPosition,
66 const wxSize& size = wxPyDefaultSize,
67 long style = wxDEFAULT_FRAME_STYLE,
68 const char* name = "frame");
69
70 void Activate();
71 void Maximize();
72 void Restore();
73 };
74
75
76 //---------------------------------------------------------------------------
77
78 class wxMDIClientWindow : public wxWindow {
79 public:
80 wxMDIClientWindow(wxMDIParentFrame* parent, long style = 0);
81 };
82
83 //---------------------------------------------------------------------------
84 /////////////////////////////////////////////////////////////////////////////
85 //
86 // $Log$
87 // Revision 1.2 1998/08/15 07:36:39 RD
88 // - Moved the header in the .i files out of the code that gets put into
89 // the .cpp files. It caused CVS conflicts because of the RCS ID being
90 // different each time.
91 //
92 // - A few minor fixes.
93 //
94 // Revision 1.1 1998/08/09 08:25:51 RD
95 // Initial version
96 //
97 //