SymbolEditor
1.3.0
|
Delete a symbol from the library command. More...
#include <Commands.h>
Public Member Functions | |
DeleteSymbolCommand (SymbolLibrary *library, qint16 index) | |
virtual | ~DeleteSymbolCommand () |
virtual void | undo () |
virtual void | redo () |
Private Attributes | |
SymbolLibrary * | m_symbolLibrary |
qint16 | m_index |
Symbol | m_symbol |
Delete a symbol from the library command.
Implement deleting a symbol from the library using the index specified.
The index and the symbol removed are stored for a possible undo.
Definition at line 440 of file Commands.h.
DeleteSymbolCommand::DeleteSymbolCommand | ( | SymbolLibrary * | library, |
qint16 | index | ||
) |
Constructor
library | a pointer to the SymbolLibrary |
index | the index of the Symbol to delete |
Definition at line 819 of file Commands.cpp.
|
virtual |
Destructor
Definition at line 830 of file Commands.cpp.
|
virtual |
Redo deleting the Symbol. Store the removed Symbol for undo.
Definition at line 847 of file Commands.cpp.
|
virtual |
Undo deleting the Symbol restoring it from the saved one.
Definition at line 838 of file Commands.cpp.
|
private |
index of the symbol
Definition at line 451 of file Commands.h.
|
private |
the symbol deleted, stored for undo
Definition at line 452 of file Commands.h.
|
private |
pointer to the SymbolLibrary
Definition at line 450 of file Commands.h.