QElectroTech
0.8-dev
|
#include <templatecommands.h>
Public Member Functions | |
CutTemplateCellsCommand (TitleBlockTemplate *, QUndoCommand *=nullptr) | |
~CutTemplateCellsCommand () override | |
void | undo () override |
void | redo () override |
virtual void | setCutCells (const QList< TitleBlockCell * > &) |
Public Member Functions inherited from TitleBlockTemplateCommand | |
TitleBlockTemplateCommand (TitleBlockTemplate *=nullptr, QUndoCommand *=nullptr) | |
~TitleBlockTemplateCommand () override | |
TitleBlockTemplate * | titleBlockTemplate () const |
void | setTitleBlockTemplate (TitleBlockTemplate *) |
TitleBlockTemplateView * | view () const |
void | setView (TitleBlockTemplateView *) |
void | refreshView () |
void | refreshLayout () |
Public Attributes | |
QHash< TitleBlockCell *, TitleBlockCell::TemplateCellType > | cut_cells_ |
Cut cells. More... | |
Protected Member Functions | |
virtual void | updateText () |
Private Member Functions | |
CutTemplateCellsCommand (const CutTemplateCellsCommand &) | |
Additional Inherited Members | |
Protected Attributes inherited from TitleBlockTemplateCommand | |
TitleBlockTemplate * | tbtemplate_ |
Modified TitleBlock Template. More... | |
TitleBlockTemplateView * | view_ |
This class may trigger a view update. More... | |
This class represents the action of cutting a cells set.
CutTemplateCellsCommand::CutTemplateCellsCommand | ( | TitleBlockTemplate * | tb_template, |
QUndoCommand * | parent = nullptr |
||
) |
Constructor
|
override |
Destructor
|
private |
|
override |
Redo a cut operation
|
virtual |
|
override |
Undo a cut operation
|
protectedvirtual |
Update the label describing this command
QHash<TitleBlockCell *, TitleBlockCell::TemplateCellType> CutTemplateCellsCommand::cut_cells_ |
Cut cells.