|
SymbolEditor
1.3.0
|
Increase the line width of the path. More...
#include <Commands.h>


Public Member Functions | |
| IncreaseLineWidthCommand (Editor *editor, qreal from, qreal to) | |
| virtual | ~IncreaseLineWidthCommand () |
| 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 |
Increase the line width of the path.
Implement increasing the line width for the current symbol. Multiple increases 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 464 of file Commands.h.
| IncreaseLineWidthCommand::IncreaseLineWidthCommand | ( | 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 860 of file Commands.cpp.
|
virtual |
Destructor
Definition at line 872 of file Commands.cpp.
|
virtual |
Get the id related to this command.
Definition at line 900 of file Commands.cpp.

|
virtual |
Merge this command with another IncreaseLineWidthCommand. This allows repeated increases without additional commands added to the stack.
| command | a pointer to the additional QUndoCommand |
true if the merge succeeded, false otherwise Definition at line 914 of file Commands.cpp.

|
virtual |
Redo the line width increase.
Definition at line 889 of file Commands.cpp.

|
virtual |
Undo the line width increase.
Definition at line 880 of file Commands.cpp.

|
private |
pointer to the Editor
Definition at line 477 of file Commands.h.
|
private |
the original setting
Definition at line 478 of file Commands.h.
|
private |
the new setting, this may be changed by merging commands
Definition at line 479 of file Commands.h.