]> git.saurik.com Git - wxWidgets.git/blob - wxPython/contrib/stc/stc_.i
corrected CodeWarrior project target names and generated application names
[wxWidgets.git] / wxPython / contrib / stc / stc_.i
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: stc.i
3 // Purpose: Wrappers for the wxStyledTextCtrl.
4 //
5 // Author: Robin Dunn
6 //
7 // Created: 12-Oct-1999
8 // RCS-ID: $Id$
9 // Copyright: (c) 2000 by Total Control Software
10 // Licence: wxWindows license
11 /////////////////////////////////////////////////////////////////////////////
12
13 %module stc_
14
15
16 %{
17 #include "export.h"
18 #include "wx/stc/stc.h"
19 %}
20
21 //---------------------------------------------------------------------------
22
23 %include typemaps.i
24 %include my_typemaps.i
25
26 %extern wx.i
27 %extern windows.i
28 %extern _defs.i
29 %extern events.i
30 %extern controls.i
31
32
33 //----------------------------------------------------------------------
34 // Get all our defs from the REAL header file.
35
36 %include stc.h
37
38 //----------------------------------------------------------------------
39 // Python functions to act like the event macros
40
41 %pragma(python) code = "
42 def EVT_STC_CHANGE(win, id, fn):
43 win.Connect(id, -1, wxEVT_STC_CHANGE, fn)
44
45 def EVT_STC_STYLENEEDED(win, id, fn):
46 win.Connect(id, -1, wxEVT_STC_STYLENEEDED, fn)
47
48 def EVT_STC_CHARADDED(win, id, fn):
49 win.Connect(id, -1, wxEVT_STC_CHARADDED, fn)
50
51 def EVT_STC_UPDATEUI(win, id, fn):
52 win.Connect(id, -1, wxEVT_STC_UPDATEUI, fn)
53
54 def EVT_STC_SAVEPOINTREACHED(win, id, fn):
55 win.Connect(id, -1, wxEVT_STC_SAVEPOINTREACHED, fn)
56
57 def EVT_STC_SAVEPOINTLEFT(win, id, fn):
58 win.Connect(id, -1, wxEVT_STC_SAVEPOINTLEFT, fn)
59
60 def EVT_STC_ROMODIFYATTEMPT(win, id, fn):
61 win.Connect(id, -1, wxEVT_STC_ROMODIFYATTEMPT, fn)
62
63 def EVT_STC_DOUBLECLICK(win, id, fn):
64 win.Connect(id, -1, wxEVT_STC_DOUBLECLICK, fn)
65
66 def EVT_STC_MODIFIED(win, id, fn):
67 win.Connect(id, -1, wxEVT_STC_MODIFIED, fn)
68
69 def EVT_STC_KEY(win, id, fn):
70 win.Connect(id, -1, wxEVT_STC_KEY, fn)
71
72 def EVT_STC_MACRORECORD(win, id, fn):
73 win.Connect(id, -1, wxEVT_STC_MACRORECORD, fn)
74
75 def EVT_STC_MARGINCLICK(win, id, fn):
76 win.Connect(id, -1, wxEVT_STC_MARGINCLICK, fn)
77
78 def EVT_STC_NEEDSHOWN(win, id, fn):
79 win.Connect(id, -1, wxEVT_STC_NEEDSHOWN, fn)
80
81 def EVT_STC_POSCHANGED(win, id, fn):
82 win.Connect(id, -1, wxEVT_STC_POSCHANGED, fn)
83
84
85 "
86
87 //----------------------------------------------------------------------
88
89 %init %{
90
91 wxClassInfo::CleanUpClasses();
92 wxClassInfo::InitializeClasses();
93
94 %}
95
96
97 //----------------------------------------------------------------------
98
99 %pragma(python) include="_stcextras.py";
100
101 //----------------------------------------------------------------------
102 //----------------------------------------------------------------------
103
104