]> git.saurik.com Git - wxWidgets.git/blame - utils/wxPython/src/wx.i
wxPython 2.1b1: More more set of generated sources...
[wxWidgets.git] / utils / wxPython / src / wx.i
CommitLineData
7bf85405
RD
1/////////////////////////////////////////////////////////////////////////////
2// Name: wxp.i
3// Purpose: SWIG interface file for a python wxWindows module
4//
5// Author: Robin Dunn
6//
7// Created: 5/22/98
8// RCS-ID: $Id$
9// Copyright: (c) 1998 by Total Control Software
10// Licence: wxWindows license
11/////////////////////////////////////////////////////////////////////////////
12
b8b8dda7 13%module wx
03e9bead
RD
14
15
16%{
7bf85405
RD
17#include "helpers.h"
18%}
19
20//----------------------------------------------------------------------
21// This is where we include the other wrapper definition files for SWIG
22//----------------------------------------------------------------------
23
24%include typemaps.i
25%include my_typemaps.i
26%include _defs.i
27
28%import misc.i
bb0054cd 29%import misc2.i
7bf85405
RD
30%import windows.i
31%import events.i
32%import gdi.i
33%import mdi.i
34%import controls.i
35%import controls2.i
36%import windows2.i
37%import cmndlgs.i
9c039d08
RD
38%import stattool.i
39%import frames.i
08127323 40%import windows3.i
cf694132 41%import image.i
bb0054cd 42%import printfw.i
7bf85405
RD
43
44
45%native(_wxStart) __wxStart;
46%native(_wxSetDictionary) __wxSetDictionary;
47
48//---------------------------------------------------------------------------
49
bb0054cd 50#define __version__ "2.1b1"
7bf85405 51
853b255a
RD
52wxPoint wxPyDefaultPosition;
53wxSize wxPyDefaultSize;
7bf85405
RD
54
55//---------------------------------------------------------------------------
56//---------------------------------------------------------------------------
57
58class wxPyApp : public wxEvtHandler {
59public:
60 %addmethods {
61 wxPyApp() {
62 wxPythonApp = new wxPyApp();
63 return wxPythonApp;
64 }
65 }
66
67
68 wxString GetAppName();
853b255a 69#ifdef __WXMSW__
7bf85405 70 bool GetAuto3D();
853b255a 71#endif
7bf85405
RD
72 wxString GetClassName();
73 bool GetExitOnFrameDelete();
74 int GetPrintMode();
75 wxWindow * GetTopWindow();
76 wxString GetVendorName();
77
78 void Dispatch();
79 void ExitMainLoop();
80 bool Initialized();
81 int MainLoop();
82 bool Pending();
83
84 void SetAppName(const wxString& name);
853b255a 85#ifdef __WXMSW__
7bf85405 86 void SetAuto3D(bool auto3D);
853b255a 87#endif
7bf85405
RD
88 void SetClassName(const wxString& name);
89 void SetExitOnFrameDelete(bool flag);
90 void SetPrintMode(int mode);
91 void SetTopWindow(wxWindow* window);
92 void SetVendorName(const wxString& name);
93
94 // This one is wxPython specific. If you override MainLoop,
95 // call this when done.
96 void AfterMainLoop();
97};
98
99
7bf85405
RD
100
101//----------------------------------------------------------------------
102// This code gets added to the module initialization function
103//----------------------------------------------------------------------
104
105%{
106extern "C" SWIGEXPORT(void,initwindowsc)();
107extern "C" SWIGEXPORT(void,initwindows2c)();
108extern "C" SWIGEXPORT(void,initeventsc)();
109extern "C" SWIGEXPORT(void,initmiscc)();
bb0054cd 110extern "C" SWIGEXPORT(void,initmisc2c)();
7bf85405
RD
111extern "C" SWIGEXPORT(void,initgdic)();
112extern "C" SWIGEXPORT(void,initmdic)();
113extern "C" SWIGEXPORT(void,initcontrolsc)();
114extern "C" SWIGEXPORT(void,initcontrols2c)();
115extern "C" SWIGEXPORT(void,initcmndlgsc)();
9c039d08
RD
116extern "C" SWIGEXPORT(void,initstattoolc)();
117extern "C" SWIGEXPORT(void,initframesc)();
08127323 118extern "C" SWIGEXPORT(void,initwindows3c)();
cf694132 119extern "C" SWIGEXPORT(void,initimagec)();
bb0054cd 120extern "C" SWIGEXPORT(void,initprintfwc)();
0699c864
RD
121#ifndef SEPARATE
122extern "C" SWIGEXPORT(void,initutilsc)();
cf694132 123extern "C" SWIGEXPORT(void,initglcanvasc)();
0699c864
RD
124#endif
125%}
08127323 126
7bf85405 127
7bf85405
RD
128
129%init %{
7bf85405 130
0d6f9504 131 __wxPreStart(); // initialize the GUI toolkit, if needed.
7bf85405
RD
132
133// wxPyWindows = new wxHashTable(wxKEY_INTEGER, 100);
134
135 // Since these modules are all linked together, initialize them now
136 // because python won't be able to find their shared library files,
137 // (since there isn't any.)
138 initwindowsc();
139 initwindows2c();
140 initeventsc();
141 initmiscc();
bb0054cd 142 initmisc2c();
7bf85405
RD
143 initgdic();
144 initmdic();
145 initcontrolsc();
146 initcontrols2c();
147 initcmndlgsc();
9c039d08
RD
148 initstattoolc();
149 initframesc();
08127323 150 initwindows3c();
cf694132 151 initimagec();
bb0054cd 152 initprintfwc();
b8b8dda7
RD
153#ifndef SEPARATE
154 initutilsc();
cf694132
RD
155#ifdef WITH_GLCANVAS
156 initglcanvasc();
157#endif
b8b8dda7 158#endif
7bf85405
RD
159%}
160
161//----------------------------------------------------------------------
162// And this gets appended to the shadow class file.
163//----------------------------------------------------------------------
164
165%pragma(python) include="_extras.py";
166
167