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

#include <JSTUndoTabShift.h>

Inheritance diagram for JSTUndoTabShift:
[legend]

Public Member Functions

 JSTUndoTabShift (JStyledText *text, const JStyledText::TextRange &range)
 
 ~JSTUndoTabShift () override
 
- Public Member Functions inherited from JSTUndoPaste
 JSTUndoPaste (JStyledText *text, const JStyledText::TextRange &range)
 
 ~JSTUndoPaste () override
 
void Undo () override
 
void SetCount (const JStyledText::TextCount &count) override
 
bool SameStartIndex (const JStyledText::TextRange &range) 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
 
- 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 indenting a block of text.  We have to use JSTUndoPaste
to get back the original pattern of spaces and tabs.

Constructor & Destructor Documentation

◆ JSTUndoTabShift()

JSTUndoTabShift::JSTUndoTabShift ( JStyledText text,
const JStyledText::TextRange range 
)

Saves a snapshot of the specified range, to allow undo.

◆ ~JSTUndoTabShift()

JSTUndoTabShift::~JSTUndoTabShift ( )
override

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