]> git.saurik.com Git - wxWidgets.git/blame - utils/wxPython/src/frames.i
Removed some unnecessary bitmaps; other minor changes
[wxWidgets.git] / utils / wxPython / src / frames.i
CommitLineData
9c039d08
RD
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
b8b8dda7 36%pragma(python) code = "import wx"
9c039d08
RD
37
38//----------------------------------------------------------------------
39
40class wxFrame : public wxWindow {
41public:
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
b8b8dda7 48 %pragma(python) addtomethod = "__init__:wx._StdFrameCallbacks(self)"
9c039d08
RD
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");
b8b8dda7 58 wxToolBar* CreateToolBar(long style = wxNO_BORDER|wxTB_HORIZONTAL|wxTB_FLAT,
9c039d08
RD
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);
9c039d08 69 void SetAcceleratorTable(const wxAcceleratorTable& accel);
9c039d08
RD
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
9c039d08
RD
82class wxMiniFrame : public wxFrame {
83public:
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
b8b8dda7 90 %pragma(python) addtomethod = "__init__:wx._StdFrameCallbacks(self)"
9c039d08 91};
b8b8dda7
RD
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
9c039d08 122