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, fn):
43 win.Connect(id, -1, wxEVT_STC_CHANGE, fn)
45 def EVT_STC_STYLENEEDED(win, id, fn):
46 win.Connect(id, -1, wxEVT_STC_STYLENEEDED, fn)
48 def EVT_STC_CHARADDED(win, id, fn):
49 win.Connect(id, -1, wxEVT_STC_CHARADDED, fn)
51 def EVT_STC_UPDATEUI(win, id, fn):
52 win.Connect(id, -1, wxEVT_STC_UPDATEUI, fn)
54 def EVT_STC_SAVEPOINTREACHED(win, id, fn):
55 win.Connect(id, -1, wxEVT_STC_SAVEPOINTREACHED, fn)
57 def EVT_STC_SAVEPOINTLEFT(win, id, fn):
58 win.Connect(id, -1, wxEVT_STC_SAVEPOINTLEFT, fn)
60 def EVT_STC_ROMODIFYATTEMPT(win, id, fn):
61 win.Connect(id, -1, wxEVT_STC_ROMODIFYATTEMPT, fn)
63 def EVT_STC_DOUBLECLICK(win, id, fn):
64 win.Connect(id, -1, wxEVT_STC_DOUBLECLICK, fn)
66 def EVT_STC_MODIFIED(win, id, fn):
67 win.Connect(id, -1, wxEVT_STC_MODIFIED, fn)
69 def EVT_STC_KEY(win, id, fn):
70 win.Connect(id, -1, wxEVT_STC_KEY, fn)
72 def EVT_STC_MACRORECORD(win, id, fn):
73 win.Connect(id, -1, wxEVT_STC_MACRORECORD, fn)
75 def EVT_STC_MARGINCLICK(win, id, fn):
76 win.Connect(id, -1, wxEVT_STC_MARGINCLICK, fn)
78 def EVT_STC_NEEDSHOWN(win, id, fn):
79 win.Connect(id, -1, wxEVT_STC_NEEDSHOWN, fn)
81 def EVT_STC_POSCHANGED(win, id, fn):
82 win.Connect(id, -1, wxEVT_STC_POSCHANGED, fn)
87 //----------------------------------------------------------------------
91 wxClassInfo::CleanUpClasses();
92 wxClassInfo::InitializeClasses();
97 //----------------------------------------------------------------------
99 %pragma(python) include="_stcextras.py";
101 //----------------------------------------------------------------------
102 //----------------------------------------------------------------------