]> git.saurik.com Git - wxWidgets.git/blame_incremental - wxPython/src/mdi.i
Added first stab at GetBoundingRect for generic tree control
[wxWidgets.git] / wxPython / src / mdi.i
... / ...
CommitLineData
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%import frames.i
30
31%pragma(python) code = "import wx"
32
33//----------------------------------------------------------------------
34
35class wxMDIParentFrame : public wxFrame {
36public:
37 wxMDIParentFrame(wxWindow *parent,
38 const wxWindowID id,
39 const wxString& title,
40 const wxPoint& pos = wxPyDefaultPosition,
41 const wxSize& size = wxPyDefaultSize,
42 long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL,
43 const char* name = "frame");
44
45 %pragma(python) addtomethod = "__init__:#wx._StdFrameCallbacks(self)"
46
47 void ActivateNext();
48 void ActivatePrevious();
49 void ArrangeIcons();
50 void Cascade();
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
58#ifdef __WXMSW__
59 void SetToolBar(wxToolBar* toolbar);
60#endif
61 void Tile();
62};
63
64//---------------------------------------------------------------------------
65
66class wxMDIChildFrame : public wxFrame {
67public:
68 wxMDIChildFrame(wxMDIParentFrame* parent,
69 const wxWindowID id,
70 const wxString& title,
71 const wxPoint& pos = wxPyDefaultPosition,
72 const wxSize& size = wxPyDefaultSize,
73 long style = wxDEFAULT_FRAME_STYLE,
74 const char* name = "frame");
75
76 %pragma(python) addtomethod = "__init__:#wx._StdFrameCallbacks(self)"
77
78 void Activate();
79 void Maximize(bool maximize);
80 void Restore();
81
82};
83
84
85//---------------------------------------------------------------------------
86
87class wxMDIClientWindow : public wxWindow {
88public:
89 wxMDIClientWindow(wxMDIParentFrame* parent, long style = 0);
90 %pragma(python) addtomethod = "__init__:#wx._StdWindowCallbacks(self)"
91 %pragma(python) addtomethod = "__init__:#wx._StdOnScrollCallbacks(self)"
92};
93
94//---------------------------------------------------------------------------