]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mdi.i
fixed bug with wxPathExists('c:\') yet again
[wxWidgets.git] / 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 = wxDefaultPosition,
41 const wxSize& size = wxDefaultSize,
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
59 #ifdef __WXMSW__
60 wxMenu* GetWindowMenu();
61 void SetWindowMenu(wxMenu* menu);
62 void SetToolBar(wxToolBar* toolbar);
63 #endif
64 void Tile();
65 };
66
67 //---------------------------------------------------------------------------
68
69 class wxMDIChildFrame : public wxFrame {
70 public:
71 wxMDIChildFrame(wxMDIParentFrame* parent,
72 const wxWindowID id,
73 const wxString& title,
74 const wxPoint& pos = wxDefaultPosition,
75 const wxSize& size = wxDefaultSize,
76 long style = wxDEFAULT_FRAME_STYLE,
77 const char* name = "frame");
78
79 %pragma(python) addtomethod = "__init__:#wx._StdFrameCallbacks(self)"
80
81 void Activate();
82 void Maximize(bool maximize);
83 void Restore();
84
85 };
86
87
88 //---------------------------------------------------------------------------
89
90 class wxMDIClientWindow : public wxWindow {
91 public:
92 wxMDIClientWindow(wxMDIParentFrame* parent, long style = 0);
93 %pragma(python) addtomethod = "__init__:#wx._StdWindowCallbacks(self)"
94 %pragma(python) addtomethod = "__init__:#wx._StdOnScrollCallbacks(self)"
95 };
96
97 //---------------------------------------------------------------------------