]>
Commit | Line | Data |
---|---|---|
f6bcfd97 BP |
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 "helpers.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 | |
fe47ec10 | 37 | //%include SciLexer.h |
f6bcfd97 BP |
38 | |
39 | //---------------------------------------------------------------------- | |
40 | // Python functions to act like the event macros | |
41 | ||
42 | %pragma(python) code = " | |
43 | def EVT_STC_CHANGE(win, id, fn): | |
44 | win.Connect(id, -1, wxEVT_STC_CHANGE, fn) | |
45 | ||
46 | def EVT_STC_STYLENEEDED(win, id, fn): | |
47 | win.Connect(id, -1, wxEVT_STC_STYLENEEDED, fn) | |
48 | ||
49 | def EVT_STC_CHARADDED(win, id, fn): | |
50 | win.Connect(id, -1, wxEVT_STC_CHARADDED, fn) | |
51 | ||
52 | def EVT_STC_UPDATEUI(win, id, fn): | |
53 | win.Connect(id, -1, wxEVT_STC_UPDATEUI, fn) | |
54 | ||
55 | def EVT_STC_SAVEPOINTREACHED(win, id, fn): | |
56 | win.Connect(id, -1, wxEVT_STC_SAVEPOINTREACHED, fn) | |
57 | ||
58 | def EVT_STC_SAVEPOINTLEFT(win, id, fn): | |
59 | win.Connect(id, -1, wxEVT_STC_SAVEPOINTLEFT, fn) | |
60 | ||
61 | def EVT_STC_ROMODIFYATTEMPT(win, id, fn): | |
62 | win.Connect(id, -1, wxEVT_STC_ROMODIFYATTEMPT, fn) | |
63 | ||
64 | def EVT_STC_DOUBLECLICK(win, id, fn): | |
65 | win.Connect(id, -1, wxEVT_STC_DOUBLECLICK, fn) | |
66 | ||
67 | def EVT_STC_MODIFIED(win, id, fn): | |
68 | win.Connect(id, -1, wxEVT_STC_MODIFIED, fn) | |
69 | ||
70 | def EVT_STC_KEY(win, id, fn): | |
71 | win.Connect(id, -1, wxEVT_STC_KEY, fn) | |
72 | ||
73 | def EVT_STC_MACRORECORD(win, id, fn): | |
74 | win.Connect(id, -1, wxEVT_STC_MACRORECORD, fn) | |
75 | ||
76 | def EVT_STC_MARGINCLICK(win, id, fn): | |
77 | win.Connect(id, -1, wxEVT_STC_MARGINCLICK, fn) | |
78 | ||
79 | def EVT_STC_NEEDSHOWN(win, id, fn): | |
80 | win.Connect(id, -1, wxEVT_STC_NEEDSHOWN, fn) | |
81 | ||
fe47ec10 RD |
82 | def EVT_STC_POSCHANGED(win, id, fn): |
83 | win.Connect(id, -1, wxEVT_STC_POSCHANGED, fn) | |
84 | ||
f6bcfd97 BP |
85 | |
86 | " | |
87 | ||
88 | //---------------------------------------------------------------------- | |
89 | ||
90 | %init %{ | |
91 | ||
92 | wxClassInfo::CleanUpClasses(); | |
93 | wxClassInfo::InitializeClasses(); | |
94 | ||
95 | %} | |
96 | ||
97 | ||
98 | //---------------------------------------------------------------------- | |
99 | ||
100 | %pragma(python) include="_stcextras.py"; | |
101 | ||
102 | //---------------------------------------------------------------------- | |
103 | //---------------------------------------------------------------------- | |
104 | ||
105 |