JX Application Framework
Loading...
Searching...
No Matches
Public Member Functions | List of all members
JSTUndoTyping Class Reference

#include <JSTUndoTyping.h>

Inheritance diagram for JSTUndoTyping:
[legend]

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
 
- Public Member Functions inherited from JSTUndoTextBase
 JSTUndoTextBase (JStyledText *text, const JStyledText::TextRange &range)
 
 ~JSTUndoTextBase () override
 
void SetFont (const JString &name, const JSize size) override
 
- Public Member Functions inherited from JSTUndoBase
 JSTUndoBase (JStyledText *text)
 
 ~JSTUndoBase () override
 
virtual void SetCount (const JStyledText::TextCount &count)
 
- Public Member Functions inherited from JUndo
 JUndo ()
 
virtual ~JUndo ()
 
bool IsActive () const
 
void Activate ()
 
void Deactivate ()
 
bool IsRedo () const
 
void SetRedo (const bool isRedo)
 

Additional Inherited Members

- Protected Member Functions inherited from JSTUndoTextBase
void UndoText (const JStyledText::TextRange range)
 
void PrependToSave (const JUtf8Character &c, const JIndex charIndex)
 
void AppendToSave (const JUtf8Character &c, const JIndex charIndex)
 
- Protected Member Functions inherited from JSTUndoBase
JStyledTextGetText () const
 
void SetFont (JRunArray< JFont > *styles, const JString &name, const JSize size)
 

Detailed Description

Class to undo typing into a JStyledText object.

Constructor & Destructor Documentation

◆ JSTUndoTyping() [1/2]

JSTUndoTyping::JSTUndoTyping ( JStyledText buffer,
const JStyledText::TextIndex start 
)

◆ JSTUndoTyping() [2/2]

JSTUndoTyping::JSTUndoTyping ( JStyledText buffer,
const JStyledText::TextRange replaceRange 
)

◆ ~JSTUndoTyping()

JSTUndoTyping::~JSTUndoTyping ( )
override

Member Function Documentation

◆ HandleCharacters()

void JSTUndoTyping::HandleCharacters ( const JStyledText::TextCount count)

◆ HandleDelete()

void JSTUndoTyping::HandleDelete ( const JStringMatch match,
const bool  fromAutoIndent 
)

Call this -before- deleting the characters.

◆ HandleFwdDelete()

void JSTUndoTyping::HandleFwdDelete ( const JStringMatch match)

Call this -before- deleting the characters.

◆ MatchesCurrentIndex()

bool JSTUndoTyping::MatchesCurrentIndex ( const JStyledText::TextIndex index) const

◆ Undo()

void JSTUndoTyping::Undo ( )
overridevirtual

Implements JUndo.


The documentation for this class was generated from the following files: