1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Wrappers for the wxStyledTextCtrl.
7 // Created: 12-Oct-1999
9 // Copyright: (c) 2000 by Total Control Software
10 // Licence: wxWindows license
11 /////////////////////////////////////////////////////////////////////////////
18 #include "wx/stc/stc.h"
21 //---------------------------------------------------------------------------
24 %include my_typemaps.i
33 //----------------------------------------------------------------------
34 // Get all our defs from the REAL header file.
38 //----------------------------------------------------------------------
39 // Python functions to act like the event macros
41 %pragma(python) code = "
42 def EVT_STC_CHANGE(win, id, func):
43 win.Connect(id, -1, wxEVT_STC_CHANGE, func)
45 def EVT_STC_STYLENEEDED(win, id, func):
46 win.Connect(id, -1, wxEVT_STC_STYLENEEDED, func)
48 def EVT_STC_CHARADDED(win, id, func):
49 win.Connect(id, -1, wxEVT_STC_CHARADDED, func)
51 def EVT_STC_SAVEPOINTREACHED(win, id, func):
52 win.Connect(id, -1, wxEVT_STC_SAVEPOINTREACHED, func)
54 def EVT_STC_SAVEPOINTLEFT(win, id, func):
55 win.Connect(id, -1, wxEVT_STC_SAVEPOINTLEFT, func)
57 def EVT_STC_ROMODIFYATTEMPT(win, id, func):
58 win.Connect(id, -1, wxEVT_STC_ROMODIFYATTEMPT, func)
60 def EVT_STC_KEY(win, id, func):
61 win.Connect(id, -1, wxEVT_STC_KEY, func)
63 def EVT_STC_DOUBLECLICK(win, id, func):
64 win.Connect(id, -1, wxEVT_STC_DOUBLECLICK, func)
66 def EVT_STC_UPDATEUI(win, id, func):
67 win.Connect(id, -1, wxEVT_STC_UPDATEUI, func)
69 def EVT_STC_MODIFIED(win, id, func):
70 win.Connect(id, -1, wxEVT_STC_MODIFIED, func)
72 def EVT_STC_MACRORECORD(win, id, func):
73 win.Connect(id, -1, wxEVT_STC_MACRORECORD, func)
75 def EVT_STC_MARGINCLICK(win, id, func):
76 win.Connect(id, -1, wxEVT_STC_MARGINCLICK, func)
78 def EVT_STC_NEEDSHOWN(win, id, func):
79 win.Connect(id, -1, wxEVT_STC_NEEDSHOWN, func)
81 def EVT_STC_POSCHANGED(win, id, func):
82 win.Connect(id, -1, wxEVT_STC_POSCHANGED, func)
84 def EVT_STC_PAINTED(win, id, func):
85 win.Connect(id, -1, wxEVT_STC_PAINTED, func)
87 def EVT_STC_USERLISTSELECTION(win, id, func):
88 win.Connect(id, -1, wxEVT_STC_USERLISTSELECTION, func)
90 def EVT_STC_URIDROPPED(win, id, func):
91 win.Connect(id, -1, wxEVT_STC_URIDROPPED, func)
93 def EVT_STC_DWELLSTART(win, id, func):
94 win.Connect(id, -1, wxEVT_STC_DWELLSTART, func)
96 def EVT_STC_DWELLEND(win, id, func):
97 win.Connect(id, -1, wxEVT_STC_DWELLEND, func)
102 //----------------------------------------------------------------------
106 wxClassInfo::CleanUpClasses();
107 wxClassInfo::InitializeClasses();
112 //----------------------------------------------------------------------
114 %pragma(python) include="_stcextras.py";
116 //----------------------------------------------------------------------
117 //----------------------------------------------------------------------