]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/mdi.i
Added ability to use xml resource files. Still need to add ability to
[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");
44
f6bcfd97 45 %pragma(python) addtomethod = "__init__:#wx._StdFrameCallbacks(self)"
9c039d08 46
7bf85405
RD
47 void ActivateNext();
48 void ActivatePrevious();
49 void ArrangeIcons();
50 void Cascade();
7bf85405
RD
51 wxMDIChildFrame* GetActiveChild();
52 wxMDIClientWindow* GetClientWindow();
53 wxWindow* GetToolBar();
54
55 // TODO: This isn't handled by the standard event-table system...
56 //wxMDIClientWindow* OnCreateClient();
57
3ca6a5f0 58
fb5e0af0 59#ifdef __WXMSW__
3ca6a5f0
BP
60 wxMenu* GetWindowMenu();
61 void SetWindowMenu(wxMenu* menu);
7bf85405 62 void SetToolBar(wxToolBar* toolbar);
fb5e0af0 63#endif
7bf85405
RD
64 void Tile();
65};
66
67//---------------------------------------------------------------------------
68
69class wxMDIChildFrame : public wxFrame {
70public:
71 wxMDIChildFrame(wxMDIParentFrame* parent,
72 const wxWindowID id,
73 const wxString& title,
b68dc582
RD
74 const wxPoint& pos = wxDefaultPosition,
75 const wxSize& size = wxDefaultSize,
7bf85405
RD
76 long style = wxDEFAULT_FRAME_STYLE,
77 const char* name = "frame");
78
f6bcfd97 79 %pragma(python) addtomethod = "__init__:#wx._StdFrameCallbacks(self)"
9c039d08 80
7bf85405 81 void Activate();
ab9bc19b 82 void Maximize(bool maximize);
7bf85405 83 void Restore();
fb5e0af0 84
7bf85405
RD
85};
86
87
88//---------------------------------------------------------------------------
89
90class wxMDIClientWindow : public wxWindow {
91public:
92 wxMDIClientWindow(wxMDIParentFrame* parent, long style = 0);
f6bcfd97
BP
93 %pragma(python) addtomethod = "__init__:#wx._StdWindowCallbacks(self)"
94 %pragma(python) addtomethod = "__init__:#wx._StdOnScrollCallbacks(self)"
7bf85405
RD
95};
96
97//---------------------------------------------------------------------------