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

#include <JSTUndoMove.h>

Inheritance diagram for JSTUndoMove:
[legend]

Public Member Functions

 JSTUndoMove (JStyledText *text, const JStyledText::TextIndex &srcIndex, const JStyledText::TextIndex &destIndex, const JStyledText::TextCount &count)
 
 ~JSTUndoMove () override
 
void Undo () override
 
void SetCount (const JStyledText::TextCount &count) override
 
- Public Member Functions inherited from JSTUndoBase
 JSTUndoBase (JStyledText *text)
 
 ~JSTUndoBase () override
 
virtual void SetFont (const JString &name, const JSize size)
 
- 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 JSTUndoBase
JStyledTextGetText () const
 
void SetFont (JRunArray< JFont > *styles, const JString &name, const JSize size)
 

Detailed Description

Interface for the JSTUndoMove class.

Class to undo moving text from one place to another, typically via
drag-and-drop.

Constructor & Destructor Documentation

◆ JSTUndoMove()

JSTUndoMove::JSTUndoMove ( JStyledText text,
const JStyledText::TextIndex srcIndex,
const JStyledText::TextIndex destIndex,
const JStyledText::TextCount count 
)

◆ ~JSTUndoMove()

JSTUndoMove::~JSTUndoMove ( )
override

Member Function Documentation

◆ SetCount()

void JSTUndoMove::SetCount ( const JStyledText::TextCount count)
overridevirtual

Supports JStyledText::MoveText()

Reimplemented from JSTUndoBase.

◆ Undo()

void JSTUndoMove::Undo ( )
overridevirtual

Implements JUndo.


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