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 Member Functions | Private Attributes | List of all members
ActionCommands Class Reference
+ Inheritance diagram for ActionCommands:
Inheritance graph
[legend]
+ Collaboration diagram for ActionCommands:
Collaboration graph
[legend]

Public Member Functions

 ActionCommands (QWidget *parent)
 
void setCore (Editor *e)
 
Status importAnimatedImage ()
 
Status importMovieVideo ()
 
Status importSound (FileType type)
 
Status exportMovie (bool isGif=false)
 
Status exportImageSequence ()
 
Status exportImage ()
 
Status exportGif ()
 
void flipSelectionX ()
 
void flipSelectionY ()
 
void selectAll ()
 
void deselectAll ()
 
void ZoomIn ()
 
void ZoomOut ()
 
void rotateClockwise ()
 
void rotateCounterClockwise ()
 
void PlayStop ()
 
void GotoNextFrame ()
 
void GotoPrevFrame ()
 
void GotoNextKeyFrame ()
 
void GotoPrevKeyFrame ()
 
Status addNewKey ()
 
Status insertKeyFrameAtCurrentPosition ()
 Will insert a keyframe at the current position and push connected frames to the right.
 
void removeKey ()
 
void duplicateLayer ()
 
void duplicateKey ()
 
void moveFrameForward ()
 
void moveFrameBackward ()
 
void removeSelectedFrames ()
 
void reverseSelectedFrames ()
 
void addExposureToSelectedFrames ()
 
void subtractExposureFromSelectedFrames ()
 
Status addNewBitmapLayer ()
 
Status addNewVectorLayer ()
 
Status addNewCameraLayer ()
 
Status addNewSoundLayer ()
 
Status deleteCurrentLayer ()
 
void changeKeyframeLineColor ()
 
void changeallKeyframeLineColor ()
 
void setLayerVisibilityIndex (int index)
 
void help ()
 
void quickGuide ()
 
void website ()
 
void forum ()
 
void discord ()
 
void reportbug ()
 
void checkForUpdates ()
 
void openTemporaryDirectory ()
 
void about ()
 
- Public Member Functions inherited from QObject
virtual const QMetaObject * metaObject () const const
 
 QObject (QObject *parent)
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
QString objectName () const const
 
void setObjectName (const QString &name)
 
bool isWidgetType () const const
 
bool isWindowType () const const
 
bool signalsBlocked () const const
 
bool blockSignals (bool block)
 
QThread * thread () const const
 
void moveToThread (QThread *targetThread)
 
int startTimer (int interval, Qt::TimerType timerType)
 
int startTimer (std::chrono::milliseconds time, Qt::TimerType timerType)
 
void killTimer (int id)
 
T findChild (const QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QRegExp &regExp, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const
 
const QObjectList & children () const const
 
void setParent (QObject *parent)
 
void installEventFilter (QObject *filterObj)
 
void removeEventFilter (QObject *obj)
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const
 
bool disconnect (const char *signal, const QObject *receiver, const char *method) const const
 
bool disconnect (const QObject *receiver, const char *method) const const
 
void dumpObjectTree ()
 
void dumpObjectInfo ()
 
void dumpObjectTree () const const
 
void dumpObjectInfo () const const
 
bool setProperty (const char *name, const QVariant &value)
 
QVariant property (const char *name) const const
 
QList< QByteArray > dynamicPropertyNames () const const
 
void destroyed (QObject *obj)
 
void objectNameChanged (const QString &objectName)
 
QObject * parent () const const
 
bool inherits (const char *className) const const
 
void deleteLater ()
 
 Q_DISABLE_COPY (Class)
 
 Q_DISABLE_MOVE (Class)
 
 Q_DISABLE_COPY_MOVE (Class)
 
T qobject_cast (QObject *object)
 
T qobject_cast (const QObject *object)
 
T qFindChild (const QObject *obj, const QString &name)
 
QList< T > qFindChildren (const QObject *obj, const QString &name)
 
QList< T > qFindChildren (const QObject *obj, const QRegExp &regExp)
 
 Q_CLASSINFO (Name, Value)
 
 Q_INTERFACES (...)
 
 Q_PROPERTY (...)
 
 Q_ENUMS (...)
 
 Q_FLAGS (...)
 
 Q_ENUM (...)
 
 Q_FLAG (...)
 
 Q_ENUM_NS (...)
 
 Q_FLAG_NS (...)
 
 Q_OBJECT Q_OBJECT
 
 Q_GADGET Q_GADGET
 
 Q_NAMESPACE Q_NAMESPACE
 
 Q_NAMESPACE_EXPORT (EXPORT_MACRO)
 
 Q_SIGNALS Q_SIGNALS
 
 Q_SIGNAL Q_SIGNAL
 
 Q_SLOTS Q_SLOTS
 
 Q_SLOT Q_SLOT
 
 Q_EMIT Q_EMIT
 
 Q_INVOKABLE Q_INVOKABLE
 
 Q_REVISION Q_REVISION
 
 Q_SET_OBJECT_NAME (Object)
 
 QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT
 

Private Member Functions

void showSoundClipWarningIfNeeded ()
 
void exposeSelectedFrames (int offset)
 
Status convertSoundToWav (const QString &filePath)
 

Private Attributes

Editor * mEditor = nullptr
 
QWidget * mParent = nullptr
 
bool mSuppressSoundWarning = false
 

Additional Inherited Members

- Static Public Member Functions inherited from QObject
QString tr (const char *sourceText, const char *disambiguation, int n)
 
QString trUtf8 (const char *sourceText, const char *disambiguation, int n)
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, Functor functor)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
bool disconnect (const QMetaObject::Connection &connection)
 
bool disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method)
 
- Public Attributes inherited from QObject
typedef QObjectList
 
- Protected Member Functions inherited from QObject
QObject * sender () const const
 
int senderSignalIndex () const const
 
int receivers (const char *signal) const const
 
bool isSignalConnected (const QMetaMethod &signal) const const
 
virtual void timerEvent (QTimerEvent *event)
 
virtual void childEvent (QChildEvent *event)
 
virtual void customEvent (QEvent *event)
 
virtual void connectNotify (const QMetaMethod &signal)
 
virtual void disconnectNotify (const QMetaMethod &signal)
 
- Properties inherited from QObject
 objectName
 

Detailed Description

Definition at line 29 of file actioncommands.h.

Constructor & Destructor Documentation

◆ ActionCommands()

ActionCommands::ActionCommands ( QWidget *  parent)
explicit

Definition at line 63 of file actioncommands.cpp.

◆ ~ActionCommands()

ActionCommands::~ActionCommands ( )
virtual

Definition at line 68 of file actioncommands.cpp.

Member Function Documentation

◆ about()

void ActionCommands::about ( )

Definition at line 1003 of file actioncommands.cpp.

◆ addExposureToSelectedFrames()

void ActionCommands::addExposureToSelectedFrames ( )

Definition at line 686 of file actioncommands.cpp.

◆ addNewBitmapLayer()

Status ActionCommands::addNewBitmapLayer ( )

Definition at line 834 of file actioncommands.cpp.

◆ addNewCameraLayer()

Status ActionCommands::addNewCameraLayer ( )

Definition at line 860 of file actioncommands.cpp.

◆ addNewKey()

Status ActionCommands::addNewKey ( )

Definition at line 642 of file actioncommands.cpp.

◆ addNewSoundLayer()

Status ActionCommands::addNewSoundLayer ( )

Definition at line 873 of file actioncommands.cpp.

◆ addNewVectorLayer()

Status ActionCommands::addNewVectorLayer ( )

Definition at line 847 of file actioncommands.cpp.

◆ changeallKeyframeLineColor()

void ActionCommands::changeallKeyframeLineColor ( )

Definition at line 930 of file actioncommands.cpp.

◆ changeKeyframeLineColor()

void ActionCommands::changeKeyframeLineColor ( )

Definition at line 918 of file actioncommands.cpp.

◆ checkForUpdates()

void ActionCommands::checkForUpdates ( )

Definition at line 986 of file actioncommands.cpp.

◆ convertSoundToWav()

Status ActionCommands::convertSoundToWav ( const QString &  filePath)
private

Definition at line 244 of file actioncommands.cpp.

◆ deleteCurrentLayer()

Status ActionCommands::deleteCurrentLayer ( )

Definition at line 887 of file actioncommands.cpp.

◆ deselectAll()

void ActionCommands::deselectAll ( )

Definition at line 580 of file actioncommands.cpp.

◆ discord()

void ActionCommands::discord ( )

Definition at line 974 of file actioncommands.cpp.

◆ duplicateKey()

void ActionCommands::duplicateKey ( )

Definition at line 768 of file actioncommands.cpp.

◆ duplicateLayer()

void ActionCommands::duplicateLayer ( )

Definition at line 747 of file actioncommands.cpp.

◆ exportGif()

Status ActionCommands::exportGif ( )

Definition at line 274 of file actioncommands.cpp.

◆ exportImage()

Status ActionCommands::exportImage ( )

Definition at line 495 of file actioncommands.cpp.

◆ exportImageSequence()

Status ActionCommands::exportImageSequence ( )

Definition at line 420 of file actioncommands.cpp.

◆ exportMovie()

Status ActionCommands::exportMovie ( bool  isGif = false)

Definition at line 280 of file actioncommands.cpp.

◆ exposeSelectedFrames()

void ActionCommands::exposeSelectedFrames ( int  offset)
private

Definition at line 660 of file actioncommands.cpp.

◆ flipSelectionX()

void ActionCommands::flipSelectionX ( )

Definition at line 563 of file actioncommands.cpp.

◆ flipSelectionY()

void ActionCommands::flipSelectionY ( )

Definition at line 569 of file actioncommands.cpp.

◆ forum()

void ActionCommands::forum ( )

Definition at line 968 of file actioncommands.cpp.

◆ GotoNextFrame()

void ActionCommands::GotoNextFrame ( )

Definition at line 622 of file actioncommands.cpp.

◆ GotoNextKeyFrame()

void ActionCommands::GotoNextKeyFrame ( )

Definition at line 632 of file actioncommands.cpp.

◆ GotoPrevFrame()

void ActionCommands::GotoPrevFrame ( )

Definition at line 627 of file actioncommands.cpp.

◆ GotoPrevKeyFrame()

void ActionCommands::GotoPrevKeyFrame ( )

Definition at line 637 of file actioncommands.cpp.

◆ help()

void ActionCommands::help ( )

Definition at line 945 of file actioncommands.cpp.

◆ importAnimatedImage()

Status ActionCommands::importAnimatedImage ( )

Definition at line 70 of file actioncommands.cpp.

◆ importMovieVideo()

Status ActionCommands::importMovieVideo ( )

Definition at line 114 of file actioncommands.cpp.

◆ importSound()

Status ActionCommands::importSound ( FileType  type)

Definition at line 167 of file actioncommands.cpp.

◆ insertKeyFrameAtCurrentPosition()

Status ActionCommands::insertKeyFrameAtCurrentPosition ( )

Will insert a keyframe at the current position and push connected frames to the right.

Definition at line 696 of file actioncommands.cpp.

◆ moveFrameBackward()

void ActionCommands::moveFrameBackward ( )

Definition at line 821 of file actioncommands.cpp.

◆ moveFrameForward()

void ActionCommands::moveFrameForward ( )

Definition at line 807 of file actioncommands.cpp.

◆ openTemporaryDirectory()

void ActionCommands::openTemporaryDirectory ( )

Definition at line 994 of file actioncommands.cpp.

◆ PlayStop()

void ActionCommands::PlayStop ( )

Definition at line 609 of file actioncommands.cpp.

◆ quickGuide()

void ActionCommands::quickGuide ( )

Definition at line 951 of file actioncommands.cpp.

◆ removeKey()

void ActionCommands::removeKey ( )

Definition at line 742 of file actioncommands.cpp.

◆ removeSelectedFrames()

void ActionCommands::removeSelectedFrames ( )

Definition at line 705 of file actioncommands.cpp.

◆ reportbug()

void ActionCommands::reportbug ( )

Definition at line 980 of file actioncommands.cpp.

◆ reverseSelectedFrames()

void ActionCommands::reverseSelectedFrames ( )

Definition at line 728 of file actioncommands.cpp.

◆ rotateClockwise()

void ActionCommands::rotateClockwise ( )

Definition at line 595 of file actioncommands.cpp.

◆ rotateCounterClockwise()

void ActionCommands::rotateCounterClockwise ( )

Definition at line 602 of file actioncommands.cpp.

◆ selectAll()

void ActionCommands::selectAll ( )

Definition at line 575 of file actioncommands.cpp.

◆ setCore()

void ActionCommands::setCore ( Editor *  e)
inline

Definition at line 37 of file actioncommands.h.

◆ setLayerVisibilityIndex()

void ActionCommands::setLayerVisibilityIndex ( int  index)

Definition at line 913 of file actioncommands.cpp.

◆ showSoundClipWarningIfNeeded()

void ActionCommands::showSoundClipWarningIfNeeded ( )
private

Definition at line 1011 of file actioncommands.cpp.

◆ subtractExposureFromSelectedFrames()

void ActionCommands::subtractExposureFromSelectedFrames ( )

Definition at line 691 of file actioncommands.cpp.

◆ website()

void ActionCommands::website ( )

Definition at line 962 of file actioncommands.cpp.

◆ ZoomIn()

void ActionCommands::ZoomIn ( )

Definition at line 585 of file actioncommands.cpp.

◆ ZoomOut()

void ActionCommands::ZoomOut ( )

Definition at line 590 of file actioncommands.cpp.

Member Data Documentation

◆ mEditor

Editor* ActionCommands::mEditor = nullptr
private

Definition at line 109 of file actioncommands.h.

◆ mParent

QWidget* ActionCommands::mParent = nullptr
private

Definition at line 110 of file actioncommands.h.

◆ mSuppressSoundWarning

bool ActionCommands::mSuppressSoundWarning = false
private

Definition at line 112 of file actioncommands.h.


The documentation for this class was generated from the following files:
  • app/src/actioncommands.h
  • app/src/actioncommands.cpp
Generated on Thu May 8 2025 04:47:53 for Pencil2D by doxygen 1.9.6 based on revision 4513250b1d5b1a3676ec0e67b06b7a885ceaae39