]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/_mdi.i
ShouldInheritColours
[wxWidgets.git] / wxPython / src / _mdi.i
CommitLineData
7bf85405 1/////////////////////////////////////////////////////////////////////////////
d14a1e28
RD
2// Name: _mdi.i
3// Purpose: SWIG interface for MDI related class definitions
7bf85405
RD
4//
5// Author: Robin Dunn
6//
d14a1e28 7// Created: 26-May-1998
7bf85405 8// RCS-ID: $Id$
d14a1e28 9// Copyright: (c) 2003 by Total Control Software
7bf85405
RD
10// Licence: wxWindows license
11/////////////////////////////////////////////////////////////////////////////
12
d14a1e28 13// Not a %module
7bf85405 14
03e9bead 15
d14a1e28
RD
16//---------------------------------------------------------------------------
17%newgroup
7bf85405 18
137b5242 19%{
d14a1e28 20#include <wx/mdi.h>
137b5242
RD
21%}
22
d14a1e28 23//---------------------------------------------------------------------------
137b5242 24
d14a1e28
RD
25#define IDM_WINDOWTILE 4001
26#define IDM_WINDOWTILEHOR 4001
27#define IDM_WINDOWCASCADE 4002
28#define IDM_WINDOWICONS 4003
29#define IDM_WINDOWNEXT 4004
30#define IDM_WINDOWTILEVERT 4005
31#define wxFIRST_MDI_CHILD 4100
32#define wxLAST_MDI_CHILD 4600
26e335b8
RD
33
34
35
7bf85405
RD
36class wxMDIParentFrame : public wxFrame {
37public:
2b9048c5
RD
38 %pythonAppend wxMDIParentFrame "self._setOORInfo(self)"
39 %pythonAppend wxMDIParentFrame() ""
d14a1e28 40
7bf85405
RD
41 wxMDIParentFrame(wxWindow *parent,
42 const wxWindowID id,
43 const wxString& title,
b68dc582
RD
44 const wxPoint& pos = wxDefaultPosition,
45 const wxSize& size = wxDefaultSize,
7bf85405 46 long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL,
137b5242 47 const wxString& name = wxPyFrameNameStr);
d14a1e28 48 %name(PreMDIParentFrame)wxMDIParentFrame();
7bf85405 49
09f3d4e6
RD
50 bool Create(wxWindow *parent,
51 const wxWindowID id,
52 const wxString& title,
53 const wxPoint& pos = wxDefaultPosition,
54 const wxSize& size = wxDefaultSize,
55 long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL,
137b5242 56 const wxString& name = wxPyFrameNameStr);
9c039d08 57
0122b7e3 58
7bf85405
RD
59 void ActivateNext();
60 void ActivatePrevious();
61 void ArrangeIcons();
62 void Cascade();
7bf85405
RD
63 wxMDIChildFrame* GetActiveChild();
64 wxMDIClientWindow* GetClientWindow();
65 wxWindow* GetToolBar();
66
67 // TODO: This isn't handled by the standard event-table system...
68 //wxMDIClientWindow* OnCreateClient();
69
3ca6a5f0 70
fb5e0af0 71#ifdef __WXMSW__
3ca6a5f0
BP
72 wxMenu* GetWindowMenu();
73 void SetWindowMenu(wxMenu* menu);
7bf85405 74 void SetToolBar(wxToolBar* toolbar);
fb5e0af0 75#endif
7bf85405
RD
76 void Tile();
77};
78
79//---------------------------------------------------------------------------
80
81class wxMDIChildFrame : public wxFrame {
82public:
2b9048c5
RD
83 %pythonAppend wxMDIChildFrame "self._setOORInfo(self)"
84 %pythonAppend wxMDIChildFrame() ""
d14a1e28 85
7bf85405
RD
86 wxMDIChildFrame(wxMDIParentFrame* parent,
87 const wxWindowID id,
88 const wxString& title,
b68dc582
RD
89 const wxPoint& pos = wxDefaultPosition,
90 const wxSize& size = wxDefaultSize,
7bf85405 91 long style = wxDEFAULT_FRAME_STYLE,
137b5242 92 const wxString& name = wxPyFrameNameStr);
d14a1e28 93 %name(PreMDIChildFrame)wxMDIChildFrame();
09f3d4e6
RD
94
95 bool Create(wxMDIParentFrame* parent,
96 const wxWindowID id,
97 const wxString& title,
98 const wxPoint& pos = wxDefaultPosition,
99 const wxSize& size = wxDefaultSize,
100 long style = wxDEFAULT_FRAME_STYLE,
137b5242 101 const wxString& name = wxPyFrameNameStr);
7bf85405
RD
102
103 void Activate();
ab9bc19b 104 void Maximize(bool maximize);
7bf85405 105 void Restore();
fb5e0af0 106
7bf85405
RD
107};
108
109
110//---------------------------------------------------------------------------
111
112class wxMDIClientWindow : public wxWindow {
113public:
2b9048c5
RD
114 %pythonAppend wxMDIClientWindow "self._setOORInfo(self)"
115 %pythonAppend wxMDIClientWindow() ""
d14a1e28 116
7bf85405 117 wxMDIClientWindow(wxMDIParentFrame* parent, long style = 0);
d14a1e28 118 %name(PreMDIClientWindow)wxMDIClientWindow();
09f3d4e6 119
09f3d4e6 120 bool Create(wxMDIParentFrame* parent, long style = 0);
7bf85405
RD
121};
122
d14a1e28 123
7bf85405 124//---------------------------------------------------------------------------