SymbolEditor
1.3.0
|
Change the fill state command class. More...
#include <Commands.h>
Public Member Functions | |
ChangeFilledCommand (Editor *editor, bool from, bool to) | |
virtual | ~ChangeFilledCommand () |
virtual void | undo () |
virtual void | redo () |
Private Attributes | |
Editor * | m_editor |
bool | m_from |
bool | m_to |
Change the fill state command class.
Implement changing the fill state of the current symbol.
The original state is stored for a possible undo.
Definition at line 348 of file Commands.h.
ChangeFilledCommand::ChangeFilledCommand | ( | Editor * | editor, |
bool | from, | ||
bool | to | ||
) |
Constructor
editor | a pointer to the Editor |
from | true if the currently filled, false otherwise |
to | true if changing to filled, false otherwise |
Definition at line 652 of file Commands.cpp.
|
virtual |
Destructor
Definition at line 664 of file Commands.cpp.
|
virtual |
Redo the change fill state command. Call the Editor::setFilled function to set the new value.
Definition at line 681 of file Commands.cpp.
|
virtual |
Undo the change fill state command. Call the Editor::setFilled function to set the original value
Definition at line 672 of file Commands.cpp.
|
private |
pointer to the editor
Definition at line 358 of file Commands.h.
|
private |
original setting
Definition at line 359 of file Commands.h.
|
private |
new setting
Definition at line 360 of file Commands.h.