]> git.saurik.com Git - wxWidgets.git/blame - utils/wxPython/src/frames.i
wxString docs are nearly complete (but don't compile :-( ), a brief threads
[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"
9c039d08 18#include <wx/minifram.h>
9c039d08
RD
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
b8b8dda7 33%pragma(python) code = "import wx"
9c039d08
RD
34
35//----------------------------------------------------------------------
36
37class wxFrame : public wxWindow {
38public:
39 wxFrame(wxWindow* parent, const wxWindowID id, const wxString& title,
40 const wxPoint& pos = wxPyDefaultPosition,
41 const wxSize& size = wxPyDefaultSize,
42 long style = wxDEFAULT_FRAME_STYLE,
43 char* name = "frame");
44
b8b8dda7 45 %pragma(python) addtomethod = "__init__:wx._StdFrameCallbacks(self)"
9c039d08
RD
46
47 void Centre(int direction = wxBOTH);
48#ifdef __WXMSW__
49 void Command(int id);
50#endif
51 wxStatusBar* CreateStatusBar(int number = 1,
52 long style = wxST_SIZEGRIP,
53 wxWindowID id = -1,
54 char* name = "statusBar");
b8b8dda7 55 wxToolBar* CreateToolBar(long style = wxNO_BORDER|wxTB_HORIZONTAL|wxTB_FLAT,
9c039d08
RD
56 wxWindowID id = -1,
57 char* name = "toolBar");
58
59 wxMenuBar* GetMenuBar();
60 wxStatusBar* GetStatusBar();
61 wxString GetTitle();
62 wxToolBar* GetToolBar();
63 void Iconize(bool iconize);
64 bool IsIconized();
65 void Maximize(bool maximize);
9c039d08 66 void SetAcceleratorTable(const wxAcceleratorTable& accel);
9c039d08
RD
67 void SetIcon(const wxIcon& icon);
68 void SetMenuBar(wxMenuBar* menuBar);
69 void SetStatusBar(wxStatusBar *statusBar);
70 void SetStatusText(const wxString& text, int number = 0);
71 void SetStatusWidths(int LCOUNT, int* LIST); // uses typemap
72 void SetTitle(const wxString& title);
73 void SetToolBar(wxToolBar* toolbar);
74
75};
76
77//---------------------------------------------------------------------------
78
9c039d08
RD
79class wxMiniFrame : public wxFrame {
80public:
81 wxMiniFrame(wxWindow* parent, const wxWindowID id, const wxString& title,
82 const wxPoint& pos = wxPyDefaultPosition,
83 const wxSize& size = wxPyDefaultSize,
84 long style = wxDEFAULT_FRAME_STYLE,
85 char* name = "frame");
86
b8b8dda7 87 %pragma(python) addtomethod = "__init__:wx._StdFrameCallbacks(self)"
9c039d08 88};
b8b8dda7
RD
89
90
91//---------------------------------------------------------------------------
92/////////////////////////////////////////////////////////////////////////////
93//
94// $Log$
105e45b9
RD
95// Revision 1.4 1998/12/16 22:10:53 RD
96// Tweaks needed to be able to build wxPython with wxGTK.
97//
b8b8dda7
RD
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