Pencil2D Animation
Download Community News Docs Contribute
  • Overview
  • Articles
  • Code
  •  
  • Class List
  • Class Index
  • Class Hierarchy
  • Class Members
  • File List
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
MoveKeyFramesCommand Class Reference
+ Inheritance diagram for MoveKeyFramesCommand:
Inheritance graph
[legend]
+ Collaboration diagram for MoveKeyFramesCommand:
Collaboration graph
[legend]

Public Member Functions

 MoveKeyFramesCommand (int offset, QList< int > listOfPositions, int undoLayerId, const QString &description, Editor *editor, QUndoCommand *parent=nullptr)
 
void undo () override
 
void redo () override
 
- Public Member Functions inherited from UndoRedoCommand
 UndoRedoCommand (Editor *editor, QUndoCommand *parent=nullptr)
 
- Public Member Functions inherited from QUndoCommand
 QUndoCommand (QUndoCommand *parent)
 
 QUndoCommand (const QString &text, QUndoCommand *parent)
 
virtual void undo ()
 
virtual void redo ()
 
QString text () const const
 
QString actionText () const const
 
void setText (const QString &text)
 
bool isObsolete () const const
 
void setObsolete (bool obsolete)
 
virtual int id () const const
 
virtual bool mergeWith (const QUndoCommand *command)
 
int childCount () const const
 
const QUndoCommand * child (int index) const const
 

Private Attributes

int undoLayerId = 0
 
int redoLayerId = 0
 
int frameOffset = 0
 
QList< int > positions
 

Additional Inherited Members

- Protected Member Functions inherited from UndoRedoCommand
Editor * editor () const
 
bool isFirstRedo () const
 
void setFirstRedo (const bool state)
 

Detailed Description

Definition at line 101 of file undoredocommand.h.

Constructor & Destructor Documentation

◆ MoveKeyFramesCommand()

MoveKeyFramesCommand::MoveKeyFramesCommand ( int  offset,
QList< int >  listOfPositions,
int  undoLayerId,
const QString &  description,
Editor *  editor,
QUndoCommand *  parent = nullptr 
)

Definition at line 149 of file undoredocommand.cpp.

Member Function Documentation

◆ redo()

void MoveKeyFramesCommand::redo ( )
overridevirtual

Reimplemented from QUndoCommand.

Definition at line 184 of file undoredocommand.cpp.

◆ undo()

void MoveKeyFramesCommand::undo ( )
overridevirtual

Reimplemented from QUndoCommand.

Definition at line 166 of file undoredocommand.cpp.

Member Data Documentation

◆ frameOffset

int MoveKeyFramesCommand::frameOffset = 0
private

Definition at line 118 of file undoredocommand.h.

◆ positions

QList<int> MoveKeyFramesCommand::positions
private

Definition at line 119 of file undoredocommand.h.

◆ redoLayerId

int MoveKeyFramesCommand::redoLayerId = 0
private

Definition at line 116 of file undoredocommand.h.

◆ undoLayerId

int MoveKeyFramesCommand::undoLayerId = 0
private

Definition at line 115 of file undoredocommand.h.


The documentation for this class was generated from the following files:
  • core_lib/src/interface/undoredocommand.h
  • core_lib/src/interface/undoredocommand.cpp
Generated on Sat Apr 18 2026 09:47:37 for Pencil2D by doxygen 1.9.6 based on revision a8d9543b71875e180be8eb26117dfe66d34a0556