]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/frames.i
Added context help stuff to wxPython
[wxWidgets.git] / 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>
4f3449b4 19#include <wx/tipwin.h>
9c039d08
RD
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
b8b8dda7 34%pragma(python) code = "import wx"
9c039d08
RD
35
36//----------------------------------------------------------------------
37
f6bcfd97
BP
38enum {
39 wxFULLSCREEN_NOMENUBAR,
40 wxFULLSCREEN_NOTOOLBAR,
41 wxFULLSCREEN_NOSTATUSBAR,
42 wxFULLSCREEN_NOBORDER,
43 wxFULLSCREEN_NOCAPTION,
44 wxFULLSCREEN_ALL
45};
46
47
9c039d08
RD
48class wxFrame : public wxWindow {
49public:
50 wxFrame(wxWindow* parent, const wxWindowID id, const wxString& title,
b68dc582
RD
51 const wxPoint& pos = wxDefaultPosition,
52 const wxSize& size = wxDefaultSize,
9c039d08
RD
53 long style = wxDEFAULT_FRAME_STYLE,
54 char* name = "frame");
55
f6bcfd97 56 %pragma(python) addtomethod = "__init__:#wx._StdFrameCallbacks(self)"
9c039d08
RD
57
58 void Centre(int direction = wxBOTH);
9c039d08
RD
59 wxStatusBar* CreateStatusBar(int number = 1,
60 long style = wxST_SIZEGRIP,
61 wxWindowID id = -1,
62 char* name = "statusBar");
b8b8dda7 63 wxToolBar* CreateToolBar(long style = wxNO_BORDER|wxTB_HORIZONTAL|wxTB_FLAT,
9c039d08
RD
64 wxWindowID id = -1,
65 char* name = "toolBar");
66
f6bcfd97 67 const wxIcon& GetIcon();
9c039d08
RD
68 wxMenuBar* GetMenuBar();
69 wxStatusBar* GetStatusBar();
70 wxString GetTitle();
71 wxToolBar* GetToolBar();
72 void Iconize(bool iconize);
73 bool IsIconized();
74 void Maximize(bool maximize);
f6bcfd97
BP
75 bool IsMaximized();
76 void Restore();
9c039d08 77 void SetAcceleratorTable(const wxAcceleratorTable& accel);
9c039d08
RD
78 void SetIcon(const wxIcon& icon);
79 void SetMenuBar(wxMenuBar* menuBar);
80 void SetStatusBar(wxStatusBar *statusBar);
81 void SetStatusText(const wxString& text, int number = 0);
eec92d76 82 void SetStatusWidths(int LCOUNT, int* choices); // uses typemap
9c039d08
RD
83 void SetTitle(const wxString& title);
84 void SetToolBar(wxToolBar* toolbar);
f6bcfd97
BP
85 void MakeModal(bool modal = TRUE);
86 wxPoint GetClientAreaOrigin() const;
87 bool Command(int id);
88 bool ProcessCommand(int id);
f6bcfd97 89 bool ShowFullScreen(bool show, long style = wxFULLSCREEN_ALL);
edf2f43e 90 bool IsFullScreen();
9c039d08
RD
91};
92
93//---------------------------------------------------------------------------
94
9c039d08
RD
95class wxMiniFrame : public wxFrame {
96public:
97 wxMiniFrame(wxWindow* parent, const wxWindowID id, const wxString& title,
b68dc582
RD
98 const wxPoint& pos = wxDefaultPosition,
99 const wxSize& size = wxDefaultSize,
9c039d08
RD
100 long style = wxDEFAULT_FRAME_STYLE,
101 char* name = "frame");
102
f6bcfd97 103 %pragma(python) addtomethod = "__init__:#wx._StdFrameCallbacks(self)"
9c039d08 104};
b8b8dda7
RD
105
106
107//---------------------------------------------------------------------------
b8b8dda7 108
4f3449b4
RD
109class wxTipWindow : public wxFrame
110{
111public:
112 wxTipWindow(wxWindow *parent,
113 const wxString& text,
114 wxCoord maxLength = 100);
115};
116
117
118//---------------------------------------------------------------------------
119
b8b8dda7
RD
120
121
122
9c039d08 123