]> git.saurik.com Git - wxWidgets.git/blame - utils/wxPython/src/mdi.i
New build directory structure
[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
29
30//----------------------------------------------------------------------
31
32class wxMDIParentFrame : public wxFrame {
33public:
34 wxMDIParentFrame(wxWindow *parent,
35 const wxWindowID id,
36 const wxString& title,
37 const wxPoint& pos = wxPyDefaultPosition,
38 const wxSize& size = wxPyDefaultSize,
39 long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL,
40 const char* name = "frame");
41
42 void ActivateNext();
43 void ActivatePrevious();
44 void ArrangeIcons();
45 void Cascade();
46 void GetClientSize(int* OUTPUT, int* OUTPUT);
47 wxMDIChildFrame* GetActiveChild();
48 wxMDIClientWindow* GetClientWindow();
49 wxWindow* GetToolBar();
50
51 // TODO: This isn't handled by the standard event-table system...
52 //wxMDIClientWindow* OnCreateClient();
53
fb5e0af0 54#ifdef __WXMSW__
7bf85405 55 void SetToolBar(wxToolBar* toolbar);
fb5e0af0 56#endif
7bf85405
RD
57 void Tile();
58};
59
60//---------------------------------------------------------------------------
61
62class wxMDIChildFrame : public wxFrame {
63public:
64 wxMDIChildFrame(wxMDIParentFrame* parent,
65 const wxWindowID id,
66 const wxString& title,
67 const wxPoint& pos = wxPyDefaultPosition,
68 const wxSize& size = wxPyDefaultSize,
69 long style = wxDEFAULT_FRAME_STYLE,
70 const char* name = "frame");
71
72 void Activate();
73 void Maximize();
74 void Restore();
fb5e0af0
RD
75
76 void SetMenuBar(wxMenuBar *menu_bar);
77 void SetClientSize(int width, int height);
78 void GetPosition(int* OUTPUT, int* OUTPUT) const ;
79
7bf85405
RD
80};
81
82
83//---------------------------------------------------------------------------
84
85class wxMDIClientWindow : public wxWindow {
86public:
87 wxMDIClientWindow(wxMDIParentFrame* parent, long style = 0);
88};
89
90//---------------------------------------------------------------------------
91/////////////////////////////////////////////////////////////////////////////
92//
93// $Log$
fb5e0af0
RD
94// Revision 1.3 1998/08/18 19:48:18 RD
95// more wxGTK compatibility things.
96//
97// It builds now but there are serious runtime problems...
98//
03e9bead
RD
99// Revision 1.2 1998/08/15 07:36:39 RD
100// - Moved the header in the .i files out of the code that gets put into
101// the .cpp files. It caused CVS conflicts because of the RCS ID being
102// different each time.
103//
104// - A few minor fixes.
105//
7bf85405
RD
106// Revision 1.1 1998/08/09 08:25:51 RD
107// Initial version
108//
109//