]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/mdi.i
Removed unneeded assert
[wxWidgets.git] / wxPython / src / mdi.i
CommitLineData
7bf85405
RD
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
03e9bead
RD
14%module mdi
15
16%{
7bf85405
RD
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
9c039d08
RD
29%import frames.i
30
b8b8dda7 31%pragma(python) code = "import wx"
7bf85405
RD
32
33//----------------------------------------------------------------------
34
35class wxMDIParentFrame : public wxFrame {
36public:
37 wxMDIParentFrame(wxWindow *parent,
38 const wxWindowID id,
39 const wxString& title,
b68dc582
RD
40 const wxPoint& pos = wxDefaultPosition,
41 const wxSize& size = wxDefaultSize,
7bf85405
RD
42 long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL,
43 const char* name = "frame");
09f3d4e6 44 %name(wxPreMDIParentFrame)wxMDIParentFrame();
7bf85405 45
09f3d4e6
RD
46 bool Create(wxWindow *parent,
47 const wxWindowID id,
48 const wxString& title,
49 const wxPoint& pos = wxDefaultPosition,
50 const wxSize& size = wxDefaultSize,
51 long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL,
52 const char* name = "frame");
9c039d08 53
0122b7e3 54 %pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
17c0e08c 55 %pragma(python) addtomethod = "wxPreMDIParentFrame:val._setOORInfo(val)"
0122b7e3 56
7bf85405
RD
57 void ActivateNext();
58 void ActivatePrevious();
59 void ArrangeIcons();
60 void Cascade();
7bf85405
RD
61 wxMDIChildFrame* GetActiveChild();
62 wxMDIClientWindow* GetClientWindow();
63 wxWindow* GetToolBar();
64
65 // TODO: This isn't handled by the standard event-table system...
66 //wxMDIClientWindow* OnCreateClient();
67
3ca6a5f0 68
fb5e0af0 69#ifdef __WXMSW__
3ca6a5f0
BP
70 wxMenu* GetWindowMenu();
71 void SetWindowMenu(wxMenu* menu);
7bf85405 72 void SetToolBar(wxToolBar* toolbar);
fb5e0af0 73#endif
7bf85405
RD
74 void Tile();
75};
76
77//---------------------------------------------------------------------------
78
79class wxMDIChildFrame : public wxFrame {
80public:
81 wxMDIChildFrame(wxMDIParentFrame* parent,
82 const wxWindowID id,
83 const wxString& title,
b68dc582
RD
84 const wxPoint& pos = wxDefaultPosition,
85 const wxSize& size = wxDefaultSize,
7bf85405
RD
86 long style = wxDEFAULT_FRAME_STYLE,
87 const char* name = "frame");
09f3d4e6
RD
88 %name(wxPreMDIChildFrame)wxMDIChildFrame();
89
90 bool Create(wxMDIParentFrame* parent,
91 const wxWindowID id,
92 const wxString& title,
93 const wxPoint& pos = wxDefaultPosition,
94 const wxSize& size = wxDefaultSize,
95 long style = wxDEFAULT_FRAME_STYLE,
96 const char* name = "frame");
7bf85405 97
0122b7e3 98 %pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
17c0e08c 99 %pragma(python) addtomethod = "wxPreMDIChildFrame:val._setOORInfo(val)"
9c039d08 100
7bf85405 101 void Activate();
ab9bc19b 102 void Maximize(bool maximize);
7bf85405 103 void Restore();
fb5e0af0 104
7bf85405
RD
105};
106
107
108//---------------------------------------------------------------------------
109
110class wxMDIClientWindow : public wxWindow {
111public:
112 wxMDIClientWindow(wxMDIParentFrame* parent, long style = 0);
09f3d4e6
RD
113 %name(wxPreMDIClientWindow)wxMDIClientWindow();
114
09f3d4e6
RD
115 bool Create(wxMDIParentFrame* parent, long style = 0);
116
0122b7e3 117 %pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
17c0e08c 118 %pragma(python) addtomethod = "wxPreMDIClientWindow:val._setOORInfo(val)"
7bf85405
RD
119};
120
121//---------------------------------------------------------------------------