dnai::commands::ZoomCanvasCommand Class Reference
#include <zoomcanvascommand.h>
Inheritance diagram for dnai::commands::ZoomCanvasCommand:

Collaboration diagram for dnai::commands::ZoomCanvasCommand:

Public Member Functions | |
ZoomCanvasCommand (views::CanvasNode *c, const double &scale, const QPointF &offset) | |
void | execute () const override |
Execute the command. More... | |
void | executeSave () override |
Save current state of the command for the reverse unExcute() More... | |
void | unExcute () const override |
Reverse the command. More... | |
QString | infos () const override |
Get display info for this command. More... | |
![]() | |
Command (const QString &name, bool save=false) | |
virtual bool | isSave () const override |
Is the command is in a save state. More... | |
const QString & | name () const |
Get the command name. More... | |
Private Attributes | |
views::CanvasNode * | m_canvas |
double | m_scale |
QPointF | m_offset |
Additional Inherited Members | |
![]() | |
virtual | ~ICommand ()=default |
![]() | |
const QString | m_name |
const bool | m_save |
Constructor & Destructor Documentation
dnai::commands::ZoomCanvasCommand::ZoomCanvasCommand | ( | views::CanvasNode * | c, |
const double & | scale, | ||
const QPointF & | offset | ||
) |
Member Function Documentation
|
overridevirtual |
Execute the command.
Reimplemented from dnai::commands::Command.
|
overridevirtual |
Save current state of the command for the reverse unExcute()
Reimplemented from dnai::commands::Command.
|
overridevirtual |
|
overridevirtual |
Reverse the command.
Reimplemented from dnai::commands::Command.
Member Data Documentation
|
private |
|
private |
|
private |
The documentation for this class was generated from the following files:
- Gui/app/include/dnai/commands/zoomcanvascommand.h
- Gui/app/src/dnai/commands/zoomcanvascommand.cpp