]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/mdi.i
wxPython 2.0b9, second phase (gtk)
[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 %import frames.i
30
31 %pragma(python) code = "import wx"
32
33 //----------------------------------------------------------------------
34
35 class wxMDIParentFrame : public wxFrame {
36 public:
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
66 class wxMDIChildFrame : public wxFrame {
67 public:
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 #ifdef __WXMSW__
80 void Maximize();
81 #else
82 void Maximize(bool maximize);
83 #endif
84 void Restore();
85
86 };
87
88
89 //---------------------------------------------------------------------------
90
91 class wxMDIClientWindow : public wxWindow {
92 public:
93 wxMDIClientWindow(wxMDIParentFrame* parent, long style = 0);
94 %pragma(python) addtomethod = "__init__:wx._StdWindowCallbacks(self)"
95 %pragma(python) addtomethod = "__init__:wx._StdOnScrollCallbacks(self)"
96 };
97
98 //---------------------------------------------------------------------------