]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/frames.i
patch fix for a constant definition under OS/2 VA V4.0
[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 #include <wx/tipwin.h>
20 %}
21
22 //----------------------------------------------------------------------
23
24 %include typemaps.i
25 %include my_typemaps.i
26
27 // Import some definitions of other classes, etc.
28 %import _defs.i
29 %import misc.i
30 %import gdi.i
31 %import windows.i
32 %import stattool.i
33
34 %pragma(python) code = "import wx"
35
36 //----------------------------------------------------------------------
37
38 enum {
39 wxFULLSCREEN_NOMENUBAR,
40 wxFULLSCREEN_NOTOOLBAR,
41 wxFULLSCREEN_NOSTATUSBAR,
42 wxFULLSCREEN_NOBORDER,
43 wxFULLSCREEN_NOCAPTION,
44 wxFULLSCREEN_ALL
45 };
46
47
48 class wxFrame : public wxWindow {
49 public:
50 wxFrame(wxWindow* parent, const wxWindowID id, const wxString& title,
51 const wxPoint& pos = wxDefaultPosition,
52 const wxSize& size = wxDefaultSize,
53 long style = wxDEFAULT_FRAME_STYLE,
54 char* name = "frame");
55 %name(wxPreFrame)wxFrame();
56
57 bool Create(wxWindow* parent, const wxWindowID id, const wxString& title,
58 const wxPoint& pos = wxDefaultPosition,
59 const wxSize& size = wxDefaultSize,
60 long style = wxDEFAULT_FRAME_STYLE,
61 char* name = "frame");
62
63 void Centre(int direction = wxBOTH);
64 wxStatusBar* CreateStatusBar(int number = 1,
65 long style = wxST_SIZEGRIP,
66 wxWindowID id = -1,
67 char* name = "statusBar");
68 wxToolBar* CreateToolBar(long style = wxNO_BORDER|wxTB_HORIZONTAL|wxTB_FLAT,
69 wxWindowID id = -1,
70 char* name = "toolBar");
71
72 const wxIcon& GetIcon();
73 wxMenuBar* GetMenuBar();
74 wxStatusBar* GetStatusBar();
75 wxString GetTitle();
76 wxToolBar* GetToolBar();
77 void Iconize(bool iconize);
78 bool IsIconized();
79 void Maximize(bool maximize);
80 bool IsMaximized();
81 void Restore();
82 void SetAcceleratorTable(const wxAcceleratorTable& accel);
83 void SetIcon(const wxIcon& icon);
84 void SetMenuBar(wxMenuBar* menuBar);
85 void SetStatusBar(wxStatusBar *statusBar);
86 void SetStatusText(const wxString& text, int number = 0);
87 void SetStatusWidths(int LCOUNT, int* choices); // uses typemap
88 void SetTitle(const wxString& title);
89 void SetToolBar(wxToolBar* toolbar);
90 void MakeModal(bool modal = TRUE);
91 wxPoint GetClientAreaOrigin() const;
92 bool Command(int id);
93 bool ProcessCommand(int id);
94 bool ShowFullScreen(bool show, long style = wxFULLSCREEN_ALL);
95 bool IsFullScreen();
96 };
97
98 //---------------------------------------------------------------------------
99
100 class wxMiniFrame : public wxFrame {
101 public:
102 wxMiniFrame(wxWindow* parent, const wxWindowID id, const wxString& title,
103 const wxPoint& pos = wxDefaultPosition,
104 const wxSize& size = wxDefaultSize,
105 long style = wxDEFAULT_FRAME_STYLE,
106 char* name = "frame");
107 %name(wxPreMiniFrame)wxMiniFrame();
108
109 bool Create(wxWindow* parent, const wxWindowID id, const wxString& title,
110 const wxPoint& pos = wxDefaultPosition,
111 const wxSize& size = wxDefaultSize,
112 long style = wxDEFAULT_FRAME_STYLE,
113 char* name = "frame");
114 };
115
116
117 //---------------------------------------------------------------------------
118
119 class wxTipWindow : public wxFrame
120 {
121 public:
122 wxTipWindow(wxWindow *parent,
123 const wxString& text,
124 wxCoord maxLength = 100);
125 };
126
127
128 //---------------------------------------------------------------------------
129
130
131
132
133