diff options
author | Neil <nyamatongwe@gmail.com> | 2024-02-16 09:52:43 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2024-02-16 09:52:43 +1100 |
commit | f39367fc4c7af72caef8e20b1e9b1a038e242b0a (patch) | |
tree | b5f2fddf5ad5d2b79e72e93ebefa8cf8e7abe4d4 /include | |
parent | 1681b7fc9da6d455ab73a96816a47f6ba263017c (diff) | |
download | scintilla-mirror-f39367fc4c7af72caef8e20b1e9b1a038e242b0a.tar.gz |
Implement detach point access with SCI_SETUNDODETACH and SCI_GETUNDODETACH.
Write more documentation for undo history.
Diffstat (limited to 'include')
-rw-r--r-- | include/Scintilla.h | 16 | ||||
-rw-r--r-- | include/Scintilla.iface | 24 | ||||
-rw-r--r-- | include/ScintillaCall.h | 6 | ||||
-rw-r--r-- | include/ScintillaMessages.h | 16 |
4 files changed, 37 insertions, 25 deletions
diff --git a/include/Scintilla.h b/include/Scintilla.h index be537abad..4ea264d8e 100644 --- a/include/Scintilla.h +++ b/include/Scintilla.h @@ -342,15 +342,17 @@ typedef sptr_t (*SciFnDirectStatus)(sptr_t ptr, unsigned int iMessage, uptr_t wP #define SCI_GETUNDOACTIONS 2790 #define SCI_SETUNDOSAVEPOINT 2791 #define SCI_GETUNDOSAVEPOINT 2792 -#define SCI_SETUNDOCURRENT 2793 -#define SCI_GETUNDOCURRENT 2794 +#define SCI_SETUNDODETACH 2793 +#define SCI_GETUNDODETACH 2794 #define SCI_SETUNDOTENTATIVE 2795 #define SCI_GETUNDOTENTATIVE 2796 -#define SCI_PUSHUNDOACTIONTYPE 2797 -#define SCI_CHANGELASTUNDOACTIONTEXT 2798 -#define SCI_GETUNDOACTIONTYPE 2799 -#define SCI_GETUNDOACTIONPOSITION 2800 -#define SCI_GETUNDOACTIONTEXT 2801 +#define SCI_SETUNDOCURRENT 2797 +#define SCI_GETUNDOCURRENT 2798 +#define SCI_PUSHUNDOACTIONTYPE 2800 +#define SCI_CHANGELASTUNDOACTIONTEXT 2801 +#define SCI_GETUNDOACTIONTYPE 2802 +#define SCI_GETUNDOACTIONPOSITION 2803 +#define SCI_GETUNDOACTIONTEXT 2804 #define INDIC_PLAIN 0 #define INDIC_SQUIGGLE 1 #define INDIC_TT 2 diff --git a/include/Scintilla.iface b/include/Scintilla.iface index dd7495a6f..9f5b5a054 100644 --- a/include/Scintilla.iface +++ b/include/Scintilla.iface @@ -842,11 +842,11 @@ set void SetUndoSavePoint=2791(int action,) # Which action is the save point? get int GetUndoSavePoint=2792(,) -# Set action as the current point -set void SetUndoCurrent=2793(int action,) +# Set action as the detach point +set void SetUndoDetach=2793(int action,) -# Which action is the current point? -get int GetUndoCurrent=2794(,) +# Which action is the detach point? +get int GetUndoDetach=2794(,) # Set action as the tentative point set void SetUndoTentative=2795(int action,) @@ -854,20 +854,26 @@ set void SetUndoTentative=2795(int action,) # Which action is the tentative point? get int GetUndoTentative=2796(,) +# Set action as the current point +set void SetUndoCurrent=2797(int action,) + +# Which action is the current point? +get int GetUndoCurrent=2798(,) + # Push one action onto undo history with no text -fun void PushUndoActionType=2797(int type, position pos) +fun void PushUndoActionType=2800(int type, position pos) # Set the text and length of the most recently pushed action -fun void ChangeLastUndoActionText=2798(position length, string text) +fun void ChangeLastUndoActionText=2801(position length, string text) # What is the type of an action? -get int GetUndoActionType=2799(int action,) +get int GetUndoActionType=2802(int action,) # What is the position of an action? -get position GetUndoActionPosition=2800(int action,) +get position GetUndoActionPosition=2803(int action,) # What is the text of an action? -get int GetUndoActionText=2801(int action, stringresult text) +get int GetUndoActionText=2804(int action, stringresult text) # Indicator style enumeration and some constants enu IndicatorStyle=INDIC_ diff --git a/include/ScintillaCall.h b/include/ScintillaCall.h index 47122fcfe..2f2e4f0cb 100644 --- a/include/ScintillaCall.h +++ b/include/ScintillaCall.h @@ -248,10 +248,12 @@ public: int UndoActions(); void SetUndoSavePoint(int action); int UndoSavePoint(); - void SetUndoCurrent(int action); - int UndoCurrent(); + void SetUndoDetach(int action); + int UndoDetach(); void SetUndoTentative(int action); int UndoTentative(); + void SetUndoCurrent(int action); + int UndoCurrent(); void PushUndoActionType(int type, Position pos); void ChangeLastUndoActionText(Position length, const char *text); int UndoActionType(int action); diff --git a/include/ScintillaMessages.h b/include/ScintillaMessages.h index 5cff5ed26..a00ed44b4 100644 --- a/include/ScintillaMessages.h +++ b/include/ScintillaMessages.h @@ -174,15 +174,17 @@ enum class Message { GetUndoActions = 2790, SetUndoSavePoint = 2791, GetUndoSavePoint = 2792, - SetUndoCurrent = 2793, - GetUndoCurrent = 2794, + SetUndoDetach = 2793, + GetUndoDetach = 2794, SetUndoTentative = 2795, GetUndoTentative = 2796, - PushUndoActionType = 2797, - ChangeLastUndoActionText = 2798, - GetUndoActionType = 2799, - GetUndoActionPosition = 2800, - GetUndoActionText = 2801, + SetUndoCurrent = 2797, + GetUndoCurrent = 2798, + PushUndoActionType = 2800, + ChangeLastUndoActionText = 2801, + GetUndoActionType = 2802, + GetUndoActionPosition = 2803, + GetUndoActionText = 2804, IndicSetStyle = 2080, IndicGetStyle = 2081, IndicSetFore = 2082, |