JX Application Framework
|
#include <JSTUndoTyping.h>
Public Member Functions | |
JSTUndoTyping (JStyledText *buffer, const JStyledText::TextIndex &start) | |
JSTUndoTyping (JStyledText *buffer, const JStyledText::TextRange &replaceRange) | |
~JSTUndoTyping () override | |
void | Undo () override |
void | HandleDelete (const JStringMatch &match, const bool fromAutoIndent) |
void | HandleFwdDelete (const JStringMatch &match) |
void | HandleCharacters (const JStyledText::TextCount &count) |
bool | MatchesCurrentIndex (const JStyledText::TextIndex &index) const |
![]() | |
JSTUndoTextBase (JStyledText *text, const JStyledText::TextRange &range) | |
~JSTUndoTextBase () override | |
void | SetFont (const JString &name, const JSize size) override |
![]() | |
JSTUndoBase (JStyledText *text) | |
~JSTUndoBase () override | |
virtual void | SetCount (const JStyledText::TextCount &count) |
![]() | |
JUndo () | |
virtual | ~JUndo () |
bool | IsActive () const |
void | Activate () |
void | Deactivate () |
bool | IsRedo () const |
void | SetRedo (const bool isRedo) |
Additional Inherited Members | |
![]() | |
void | UndoText (const JStyledText::TextRange range) |
void | PrependToSave (const JUtf8Character &c, const JIndex charIndex) |
void | AppendToSave (const JUtf8Character &c, const JIndex charIndex) |
![]() | |
JStyledText * | GetText () const |
void | SetFont (JRunArray< JFont > *styles, const JString &name, const JSize size) |
Class to undo typing into a JStyledText object.
JSTUndoTyping::JSTUndoTyping | ( | JStyledText * | buffer, |
const JStyledText::TextIndex & | start | ||
) |
JSTUndoTyping::JSTUndoTyping | ( | JStyledText * | buffer, |
const JStyledText::TextRange & | replaceRange | ||
) |
|
override |
void JSTUndoTyping::HandleCharacters | ( | const JStyledText::TextCount & | count | ) |
void JSTUndoTyping::HandleDelete | ( | const JStringMatch & | match, |
const bool | fromAutoIndent | ||
) |
Call this -before- deleting the characters.
void JSTUndoTyping::HandleFwdDelete | ( | const JStringMatch & | match | ) |
Call this -before- deleting the characters.
bool JSTUndoTyping::MatchesCurrentIndex | ( | const JStyledText::TextIndex & | index | ) | const |
|
overridevirtual |
Implements JUndo.