]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/contrib/stc/stc.i
removed tabs and trailing whitespace
[wxWidgets.git] / wxPython / contrib / stc / stc.i
index e86434b8f06ca0249b1def7f9585aaa159774d70..1487f7551261feda8a16ac4f9583d3c62ceb56df 100644 (file)
@@ -15,7 +15,8 @@
 highlighting source code editor, or similar.  Lexers for several programming
 languages are built-in."
 %enddef
-%module(docstring=DOCSTRING) stc
+
+%module(package="wx", docstring=DOCSTRING) stc
 
 
 %{
@@ -29,20 +30,32 @@ languages are built-in."
 
 %import core.i
 %import misc.i  // for DnD
+//%import gdi.i   // for wxFontEncoding
+
 %pythoncode { wx = _core }
 %pythoncode { __docfilter__ = wx.__DocFilter(globals()) }
 
 MAKE_CONST_WXSTRING(STCNameStr);
 
 
-%include _stc_rename.i
+%include _stc_docstrings.i
+
+enum wxFontEncoding;  // forward declare
 
+MustHaveApp(wxStyledTextCtrl);
 
 //---------------------------------------------------------------------------
 // Get all our defs from the REAL header file.
 
 %include stc.h
 
+%extend wxStyledTextCtrl {
+    %pythoncode {
+        GetCaretLineBack = GetCaretLineBackground
+        SetCaretLineBack = SetCaretLineBackground
+    }
+}
+
 //---------------------------------------------------------------------------
 // Python functions to act like the event macros
 
@@ -60,7 +73,6 @@ EVT_STC_MODIFIED = wx.PyEventBinder( wxEVT_STC_MODIFIED, 1 )
 EVT_STC_MACRORECORD = wx.PyEventBinder( wxEVT_STC_MACRORECORD, 1 )
 EVT_STC_MARGINCLICK = wx.PyEventBinder( wxEVT_STC_MARGINCLICK, 1 )
 EVT_STC_NEEDSHOWN = wx.PyEventBinder( wxEVT_STC_NEEDSHOWN, 1 )
-EVT_STC_POSCHANGED = wx.PyEventBinder( wxEVT_STC_POSCHANGED, 1 )
 EVT_STC_PAINTED = wx.PyEventBinder( wxEVT_STC_PAINTED, 1 )
 EVT_STC_USERLISTSELECTION = wx.PyEventBinder( wxEVT_STC_USERLISTSELECTION, 1 )
 EVT_STC_URIDROPPED = wx.PyEventBinder( wxEVT_STC_URIDROPPED, 1 )
@@ -73,6 +85,7 @@ EVT_STC_ZOOM = wx.PyEventBinder( wxEVT_STC_ZOOM, 1 )
 EVT_STC_HOTSPOT_CLICK = wx.PyEventBinder( wxEVT_STC_HOTSPOT_CLICK, 1 )
 EVT_STC_HOTSPOT_DCLICK = wx.PyEventBinder( wxEVT_STC_HOTSPOT_DCLICK, 1 )
 EVT_STC_CALLTIP_CLICK = wx.PyEventBinder( wxEVT_STC_CALLTIP_CLICK, 1 )
+EVT_STC_AUTOCOMP_SELECTION = wx.PyEventBinder( wxEVT_STC_AUTOCOMP_SELECTION, 1 )
 }
 
 //---------------------------------------------------------------------------