]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/frames.i
second merge of the 2.2 branch (RL)
[wxWidgets.git] / wxPython / src / frames.i
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: frames.i
3 // Purpose: SWIG definitions of various window classes
4 //
5 // Author: Robin Dunn
6 //
7 // Created: 8/27/98
8 // RCS-ID: $Id$
9 // Copyright: (c) 1998 by Total Control Software
10 // Licence: wxWindows license
11 /////////////////////////////////////////////////////////////////////////////
12
13
14 %module frames
15
16 %{
17 #include "helpers.h"
18 #include <wx/minifram.h>
19 %}
20
21 //----------------------------------------------------------------------
22
23 %include typemaps.i
24 %include my_typemaps.i
25
26 // Import some definitions of other classes, etc.
27 %import _defs.i
28 %import misc.i
29 %import gdi.i
30 %import windows.i
31 %import stattool.i
32
33 %pragma(python) code = "import wx"
34
35 //----------------------------------------------------------------------
36
37 enum {
38 wxFULLSCREEN_NOMENUBAR,
39 wxFULLSCREEN_NOTOOLBAR,
40 wxFULLSCREEN_NOSTATUSBAR,
41 wxFULLSCREEN_NOBORDER,
42 wxFULLSCREEN_NOCAPTION,
43 wxFULLSCREEN_ALL
44 };
45
46
47 class wxFrame : public wxWindow {
48 public:
49 wxFrame(wxWindow* parent, const wxWindowID id, const wxString& title,
50 const wxPoint& pos = wxPyDefaultPosition,
51 const wxSize& size = wxPyDefaultSize,
52 long style = wxDEFAULT_FRAME_STYLE,
53 char* name = "frame");
54
55 %pragma(python) addtomethod = "__init__:#wx._StdFrameCallbacks(self)"
56
57 void Centre(int direction = wxBOTH);
58 wxStatusBar* CreateStatusBar(int number = 1,
59 long style = wxST_SIZEGRIP,
60 wxWindowID id = -1,
61 char* name = "statusBar");
62 wxToolBar* CreateToolBar(long style = wxNO_BORDER|wxTB_HORIZONTAL|wxTB_FLAT,
63 wxWindowID id = -1,
64 char* name = "toolBar");
65
66 const wxIcon& GetIcon();
67 wxMenuBar* GetMenuBar();
68 wxStatusBar* GetStatusBar();
69 wxString GetTitle();
70 wxToolBar* GetToolBar();
71 void Iconize(bool iconize);
72 bool IsIconized();
73 void Maximize(bool maximize);
74 bool IsMaximized();
75 void Restore();
76 void SetAcceleratorTable(const wxAcceleratorTable& accel);
77 void SetIcon(const wxIcon& icon);
78 void SetMenuBar(wxMenuBar* menuBar);
79 void SetStatusBar(wxStatusBar *statusBar);
80 void SetStatusText(const wxString& text, int number = 0);
81 void SetStatusWidths(int LCOUNT, int* choices); // uses typemap
82 void SetTitle(const wxString& title);
83 void SetToolBar(wxToolBar* toolbar);
84 void MakeModal(bool modal = TRUE);
85 wxPoint GetClientAreaOrigin() const;
86 bool Command(int id);
87 bool ProcessCommand(int id);
88 #ifdef __WXMSW__
89 bool ShowFullScreen(bool show, long style = wxFULLSCREEN_ALL);
90 #endif
91 };
92
93 //---------------------------------------------------------------------------
94
95 class wxMiniFrame : public wxFrame {
96 public:
97 wxMiniFrame(wxWindow* parent, const wxWindowID id, const wxString& title,
98 const wxPoint& pos = wxPyDefaultPosition,
99 const wxSize& size = wxPyDefaultSize,
100 long style = wxDEFAULT_FRAME_STYLE,
101 char* name = "frame");
102
103 %pragma(python) addtomethod = "__init__:#wx._StdFrameCallbacks(self)"
104 };
105
106
107 //---------------------------------------------------------------------------
108
109
110
111
112