]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/frames.i
Changed the import semantics from "from wxPython import *" to "from
[wxWidgets.git] / utils / 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
19 #ifdef __WXMSW__
20 #include <wx/minifram.h>
21 #endif
22 %}
23
24 //----------------------------------------------------------------------
25
26 %include typemaps.i
27 %include my_typemaps.i
28
29 // Import some definitions of other classes, etc.
30 %import _defs.i
31 %import misc.i
32 %import gdi.i
33 %import windows.i
34 %import stattool.i
35
36 %pragma(python) code = "import wx"
37
38 //----------------------------------------------------------------------
39
40 class wxFrame : public wxWindow {
41 public:
42 wxFrame(wxWindow* parent, const wxWindowID id, const wxString& title,
43 const wxPoint& pos = wxPyDefaultPosition,
44 const wxSize& size = wxPyDefaultSize,
45 long style = wxDEFAULT_FRAME_STYLE,
46 char* name = "frame");
47
48 %pragma(python) addtomethod = "__init__:wx._StdFrameCallbacks(self)"
49
50 void Centre(int direction = wxBOTH);
51 #ifdef __WXMSW__
52 void Command(int id);
53 #endif
54 wxStatusBar* CreateStatusBar(int number = 1,
55 long style = wxST_SIZEGRIP,
56 wxWindowID id = -1,
57 char* name = "statusBar");
58 wxToolBar* CreateToolBar(long style = wxNO_BORDER|wxTB_HORIZONTAL|wxTB_FLAT,
59 wxWindowID id = -1,
60 char* name = "toolBar");
61
62 wxMenuBar* GetMenuBar();
63 wxStatusBar* GetStatusBar();
64 wxString GetTitle();
65 wxToolBar* GetToolBar();
66 void Iconize(bool iconize);
67 bool IsIconized();
68 void Maximize(bool maximize);
69 void SetAcceleratorTable(const wxAcceleratorTable& accel);
70 void SetIcon(const wxIcon& icon);
71 void SetMenuBar(wxMenuBar* menuBar);
72 void SetStatusBar(wxStatusBar *statusBar);
73 void SetStatusText(const wxString& text, int number = 0);
74 void SetStatusWidths(int LCOUNT, int* LIST); // uses typemap
75 void SetTitle(const wxString& title);
76 void SetToolBar(wxToolBar* toolbar);
77
78 };
79
80 //---------------------------------------------------------------------------
81
82 class wxMiniFrame : public wxFrame {
83 public:
84 wxMiniFrame(wxWindow* parent, const wxWindowID id, const wxString& title,
85 const wxPoint& pos = wxPyDefaultPosition,
86 const wxSize& size = wxPyDefaultSize,
87 long style = wxDEFAULT_FRAME_STYLE,
88 char* name = "frame");
89
90 %pragma(python) addtomethod = "__init__:wx._StdFrameCallbacks(self)"
91 };
92
93
94 //---------------------------------------------------------------------------
95 /////////////////////////////////////////////////////////////////////////////
96 //
97 // $Log$
98 // Revision 1.3 1998/12/15 20:41:18 RD
99 // Changed the import semantics from "from wxPython import *" to "from
100 // wxPython.wx import *" This is for people who are worried about
101 // namespace pollution, they can use "from wxPython import wx" and then
102 // prefix all the wxPython identifiers with "wx."
103 //
104 // Added wxTaskbarIcon for wxMSW.
105 //
106 // Made the events work for wxGrid.
107 //
108 // Added wxConfig.
109 //
110 // Added wxMiniFrame for wxGTK, (untested.)
111 //
112 // Changed many of the args and return values that were pointers to gdi
113 // objects to references to reflect changes in the wxWindows API.
114 //
115 // Other assorted fixes and additions.
116 //
117
118
119
120
121
122