2000-07-15 19:51:35 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: stc.i
|
|
|
|
// Purpose: Wrappers for the wxStyledTextCtrl.
|
|
|
|
//
|
|
|
|
// Author: Robin Dunn
|
|
|
|
//
|
|
|
|
// Created: 12-Oct-1999
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) 2000 by Total Control Software
|
|
|
|
// Licence: wxWindows license
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
%module stc_
|
|
|
|
|
|
|
|
|
|
|
|
%{
|
2000-12-22 00:06:04 +00:00
|
|
|
#include "export.h"
|
2000-07-15 19:51:35 +00:00
|
|
|
#include "wx/stc/stc.h"
|
|
|
|
%}
|
|
|
|
|
|
|
|
//---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
%include typemaps.i
|
|
|
|
%include my_typemaps.i
|
|
|
|
|
|
|
|
%extern wx.i
|
|
|
|
%extern windows.i
|
|
|
|
%extern _defs.i
|
|
|
|
%extern events.i
|
|
|
|
%extern controls.i
|
|
|
|
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
// Get all our defs from the REAL header file.
|
|
|
|
|
|
|
|
%include stc.h
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
// Python functions to act like the event macros
|
|
|
|
|
|
|
|
%pragma(python) code = "
|
2001-09-01 03:06:33 +00:00
|
|
|
def EVT_STC_CHANGE(win, id, func):
|
|
|
|
win.Connect(id, -1, wxEVT_STC_CHANGE, func)
|
2000-07-15 19:51:35 +00:00
|
|
|
|
2001-09-01 03:06:33 +00:00
|
|
|
def EVT_STC_STYLENEEDED(win, id, func):
|
|
|
|
win.Connect(id, -1, wxEVT_STC_STYLENEEDED, func)
|
2000-07-15 19:51:35 +00:00
|
|
|
|
2001-09-01 03:06:33 +00:00
|
|
|
def EVT_STC_CHARADDED(win, id, func):
|
|
|
|
win.Connect(id, -1, wxEVT_STC_CHARADDED, func)
|
2000-07-15 19:51:35 +00:00
|
|
|
|
2001-09-01 03:06:33 +00:00
|
|
|
def EVT_STC_SAVEPOINTREACHED(win, id, func):
|
|
|
|
win.Connect(id, -1, wxEVT_STC_SAVEPOINTREACHED, func)
|
2000-07-15 19:51:35 +00:00
|
|
|
|
2001-09-01 03:06:33 +00:00
|
|
|
def EVT_STC_SAVEPOINTLEFT(win, id, func):
|
|
|
|
win.Connect(id, -1, wxEVT_STC_SAVEPOINTLEFT, func)
|
2000-07-15 19:51:35 +00:00
|
|
|
|
2001-09-01 03:06:33 +00:00
|
|
|
def EVT_STC_ROMODIFYATTEMPT(win, id, func):
|
|
|
|
win.Connect(id, -1, wxEVT_STC_ROMODIFYATTEMPT, func)
|
2000-07-15 19:51:35 +00:00
|
|
|
|
2001-09-01 03:06:33 +00:00
|
|
|
def EVT_STC_KEY(win, id, func):
|
|
|
|
win.Connect(id, -1, wxEVT_STC_KEY, func)
|
2000-07-15 19:51:35 +00:00
|
|
|
|
2001-09-01 03:06:33 +00:00
|
|
|
def EVT_STC_DOUBLECLICK(win, id, func):
|
|
|
|
win.Connect(id, -1, wxEVT_STC_DOUBLECLICK, func)
|
2000-07-15 19:51:35 +00:00
|
|
|
|
2001-09-01 03:06:33 +00:00
|
|
|
def EVT_STC_UPDATEUI(win, id, func):
|
|
|
|
win.Connect(id, -1, wxEVT_STC_UPDATEUI, func)
|
2000-07-15 19:51:35 +00:00
|
|
|
|
2001-09-01 03:06:33 +00:00
|
|
|
def EVT_STC_MODIFIED(win, id, func):
|
|
|
|
win.Connect(id, -1, wxEVT_STC_MODIFIED, func)
|
2000-07-15 19:51:35 +00:00
|
|
|
|
2001-09-01 03:06:33 +00:00
|
|
|
def EVT_STC_MACRORECORD(win, id, func):
|
|
|
|
win.Connect(id, -1, wxEVT_STC_MACRORECORD, func)
|
2000-07-15 19:51:35 +00:00
|
|
|
|
2001-09-01 03:06:33 +00:00
|
|
|
def EVT_STC_MARGINCLICK(win, id, func):
|
|
|
|
win.Connect(id, -1, wxEVT_STC_MARGINCLICK, func)
|
2000-07-15 19:51:35 +00:00
|
|
|
|
2001-09-01 03:06:33 +00:00
|
|
|
def EVT_STC_NEEDSHOWN(win, id, func):
|
|
|
|
win.Connect(id, -1, wxEVT_STC_NEEDSHOWN, func)
|
2000-07-15 19:51:35 +00:00
|
|
|
|
2001-09-01 03:06:33 +00:00
|
|
|
def EVT_STC_POSCHANGED(win, id, func):
|
|
|
|
win.Connect(id, -1, wxEVT_STC_POSCHANGED, func)
|
|
|
|
|
|
|
|
def EVT_STC_PAINTED(win, id, func):
|
|
|
|
win.Connect(id, -1, wxEVT_STC_PAINTED, func)
|
|
|
|
|
|
|
|
def EVT_STC_USERLISTSELECTION(win, id, func):
|
|
|
|
win.Connect(id, -1, wxEVT_STC_USERLISTSELECTION, func)
|
|
|
|
|
|
|
|
def EVT_STC_URIDROPPED(win, id, func):
|
|
|
|
win.Connect(id, -1, wxEVT_STC_URIDROPPED, func)
|
|
|
|
|
|
|
|
def EVT_STC_DWELLSTART(win, id, func):
|
|
|
|
win.Connect(id, -1, wxEVT_STC_DWELLSTART, func)
|
|
|
|
|
|
|
|
def EVT_STC_DWELLEND(win, id, func):
|
|
|
|
win.Connect(id, -1, wxEVT_STC_DWELLEND, func)
|
2000-09-26 05:32:50 +00:00
|
|
|
|
2001-10-23 22:12:50 +00:00
|
|
|
def EVT_STC_START_DRAG(win, id, func):
|
|
|
|
win.Connect(id, -1, wxEVT_STC_START_DRAG, func)
|
|
|
|
|
|
|
|
def EVT_STC_DRAG_OVER(win, id, func):
|
|
|
|
win.Connect(id, -1, wxEVT_STC_DRAG_OVER, func)
|
|
|
|
|
|
|
|
def EVT_STC_DO_DROP(win, id, func):
|
|
|
|
win.Connect(id, -1, wxEVT_STC_DO_DROP, func)
|
2000-07-15 19:51:35 +00:00
|
|
|
|
|
|
|
"
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
|
|
|
|
%init %{
|
|
|
|
|
2000-12-22 22:32:26 +00:00
|
|
|
wxClassInfo::CleanUpClasses();
|
|
|
|
wxClassInfo::InitializeClasses();
|
2000-07-15 19:51:35 +00:00
|
|
|
|
|
|
|
%}
|
|
|
|
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
|
|
|
|
%pragma(python) include="_stcextras.py";
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
|
|
|
|
|