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