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
KeyFrameRemoveCommand Class Reference
+ Inheritance diagram for KeyFrameRemoveCommand:
Inheritance graph
[legend]
+ Collaboration diagram for KeyFrameRemoveCommand:
Collaboration graph
[legend]

Public Member Functions

 KeyFrameRemoveCommand (const KeyFrame *undoKeyFrame, 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
 
KeyFrame * undoKeyFrame = nullptr
 
int redoPosition = 0
 

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 56 of file undoredocommand.h.

Constructor & Destructor Documentation

◆ KeyFrameRemoveCommand()

KeyFrameRemoveCommand::KeyFrameRemoveCommand ( const KeyFrame *  undoKeyFrame,
int  undoLayerId,
const QString &  description,
Editor *  editor,
QUndoCommand *  parent = nullptr 
)

Definition at line 38 of file undoredocommand.cpp.

◆ ~KeyFrameRemoveCommand()

KeyFrameRemoveCommand::~KeyFrameRemoveCommand ( )
override

Definition at line 53 of file undoredocommand.cpp.

Member Function Documentation

◆ redo()

void KeyFrameRemoveCommand::redo ( )
overridevirtual

Reimplemented from QUndoCommand.

Definition at line 76 of file undoredocommand.cpp.

◆ undo()

void KeyFrameRemoveCommand::undo ( )
overridevirtual

Reimplemented from QUndoCommand.

Definition at line 58 of file undoredocommand.cpp.

Member Data Documentation

◆ redoLayerId

int KeyFrameRemoveCommand::redoLayerId = 0
private

Definition at line 73 of file undoredocommand.h.

◆ redoPosition

int KeyFrameRemoveCommand::redoPosition = 0
private

Definition at line 76 of file undoredocommand.h.

◆ undoKeyFrame

KeyFrame* KeyFrameRemoveCommand::undoKeyFrame = nullptr
private

Definition at line 75 of file undoredocommand.h.

◆ undoLayerId

int KeyFrameRemoveCommand::undoLayerId = 0
private

Definition at line 72 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