SymbolEditor
1.3.0
|
Decrease the line width of the path. More...
#include <Commands.h>
Public Member Functions | |
DecreaseLineWidthCommand (Editor *editor, qreal from, qreal to) | |
virtual | ~DecreaseLineWidthCommand () |
virtual void | redo () |
virtual void | undo () |
virtual int | id () const |
virtual bool | mergeWith (const QUndoCommand *command) |
Private Attributes | |
Editor * | m_editor |
qreal | m_from |
qreal | m_to |
Decrease the line width of the path.
Implement decreasing the line width for the current symbol. Multiple decreases of the width are merged together to allow for a single undo or redo operation.
The original width is stored for a possible undo.
Definition at line 491 of file Commands.h.
DecreaseLineWidthCommand::DecreaseLineWidthCommand | ( | Editor * | editor, |
qreal | from, | ||
qreal | to | ||
) |
Constructor
editor | a pointer to the Editor |
from | the value of the original setting |
to | the value of the new setting |
Definition at line 932 of file Commands.cpp.
|
virtual |
Destructor
Definition at line 944 of file Commands.cpp.
|
virtual |
Get the id related to this command.
Definition at line 972 of file Commands.cpp.
|
virtual |
Merge this command with another DecreaseLineWidthCommand. This allows repeated decreases without additional commands added to the stack.
command | a pointer to the additional QUndoCommand |
true
if the merge succeeded, false
otherwise Definition at line 986 of file Commands.cpp.
|
virtual |
Redo the line width decrease.
Definition at line 961 of file Commands.cpp.
|
virtual |
Undo the line width decrease.
Definition at line 952 of file Commands.cpp.
|
private |
pointer to the Editor
Definition at line 504 of file Commands.h.
|
private |
the original setting
Definition at line 505 of file Commands.h.
|
private |
the new setting, this may be changed by merging commands
Definition at line 506 of file Commands.h.