]> git.saurik.com Git - wxWidgets.git/blame - utils/wxPython/src/mdi.i
it is now possible to add custom buttons into wxHtmlHelpFrame's toolbar
[wxWidgets.git] / utils / 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,
40 const wxPoint& pos = wxPyDefaultPosition,
41 const wxSize& size = wxPyDefaultSize,
42 long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL,
43 const char* name = "frame");
44
b8b8dda7 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
fb5e0af0 58#ifdef __WXMSW__
7bf85405 59 void SetToolBar(wxToolBar* toolbar);
fb5e0af0 60#endif
7bf85405
RD
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
b8b8dda7 76 %pragma(python) addtomethod = "__init__:wx._StdFrameCallbacks(self)"
9c039d08 77
7bf85405 78 void Activate();
ab9bc19b 79 void Maximize(bool maximize);
7bf85405 80 void Restore();
fb5e0af0 81
7bf85405
RD
82};
83
84
85//---------------------------------------------------------------------------
86
87class wxMDIClientWindow : public wxWindow {
88public:
89 wxMDIClientWindow(wxMDIParentFrame* parent, long style = 0);
b8b8dda7
RD
90 %pragma(python) addtomethod = "__init__:wx._StdWindowCallbacks(self)"
91 %pragma(python) addtomethod = "__init__:wx._StdOnScrollCallbacks(self)"
7bf85405
RD
92};
93
94//---------------------------------------------------------------------------