From 96901a6f4c19554dcc9898e227fa8a590d91889c Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 24 May 2000 00:56:14 +0000 Subject: [PATCH] added some missing Scintilla constants for events. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7473 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- contrib/include/wx/stc/stc.h | 18 ++++++++++++++++-- include/wx/stc/stc.h | 18 ++++++++++++++++-- 2 files changed, 32 insertions(+), 4 deletions(-) diff --git a/contrib/include/wx/stc/stc.h b/contrib/include/wx/stc/stc.h index 11919c5a78..20c184589c 100644 --- a/contrib/include/wx/stc/stc.h +++ b/contrib/include/wx/stc/stc.h @@ -22,7 +22,7 @@ #include - +#include "SciLexer.h" //---------------------------------------------------------------------- // constants and stuff @@ -596,7 +596,7 @@ private: }; - +// Event types enum { wxEVT_STC_CHANGE = 1650, wxEVT_STC_STYLENEEDED, @@ -613,6 +613,20 @@ enum { wxEVT_STC_NEEDSHOWN }; +// Modification and action types +const int wxSTC_MOD_INSERTTEXT = 0x1; +const int wxSTC_MOD_DELETETEXT = 0x2; +const int wxSTC_MOD_CHANGESTYLE = 0x4; +const int wxSTC_MOD_CHANGEFOLD = 0x8; +const int wxSTC_PERFORMED_USER = 0x10; +const int wxSTC_PERFORMED_UNDO = 0x20; +const int wxSTC_PERFORMED_REDO = 0x40; +const int wxSTC_LASTSTEPINUNDOREDO = 0x100; +const int wxSTC_MOD_CHANGEMARKER = 0x200; +const int wxSTC_MOD_BEFOREINSERT = 0x400; +const int wxSTC_MOD_BEFOREDELETE = 0x800; + + #ifndef SWIG typedef void (wxEvtHandler::*wxStyledTextEventFunction)(wxStyledTextEvent&); diff --git a/include/wx/stc/stc.h b/include/wx/stc/stc.h index 11919c5a78..20c184589c 100644 --- a/include/wx/stc/stc.h +++ b/include/wx/stc/stc.h @@ -22,7 +22,7 @@ #include - +#include "SciLexer.h" //---------------------------------------------------------------------- // constants and stuff @@ -596,7 +596,7 @@ private: }; - +// Event types enum { wxEVT_STC_CHANGE = 1650, wxEVT_STC_STYLENEEDED, @@ -613,6 +613,20 @@ enum { wxEVT_STC_NEEDSHOWN }; +// Modification and action types +const int wxSTC_MOD_INSERTTEXT = 0x1; +const int wxSTC_MOD_DELETETEXT = 0x2; +const int wxSTC_MOD_CHANGESTYLE = 0x4; +const int wxSTC_MOD_CHANGEFOLD = 0x8; +const int wxSTC_PERFORMED_USER = 0x10; +const int wxSTC_PERFORMED_UNDO = 0x20; +const int wxSTC_PERFORMED_REDO = 0x40; +const int wxSTC_LASTSTEPINUNDOREDO = 0x100; +const int wxSTC_MOD_CHANGEMARKER = 0x200; +const int wxSTC_MOD_BEFOREINSERT = 0x400; +const int wxSTC_MOD_BEFOREDELETE = 0x800; + + #ifndef SWIG typedef void (wxEvtHandler::*wxStyledTextEventFunction)(wxStyledTextEvent&);