QElectroTech
0.70
|
#include <templatecommands.h>
Public Member Functions | |
TitleBlockTemplateCommand (TitleBlockTemplate *=nullptr, QUndoCommand *=nullptr) | |
~TitleBlockTemplateCommand () override | |
TitleBlockTemplate * | titleBlockTemplate () const |
void | setTitleBlockTemplate (TitleBlockTemplate *) |
TitleBlockTemplateView * | view () const |
void | setView (TitleBlockTemplateView *) |
void | refreshView () |
void | refreshLayout () |
Protected Attributes | |
TitleBlockTemplate * | tbtemplate_ |
Modified TitleBlock Template. More... | |
TitleBlockTemplateView * | view_ |
This class may trigger a view update. More... | |
Private Member Functions | |
TitleBlockTemplateCommand (const TitleBlockTemplateCommand &) | |
This class is a base class for any UndoCommand that needs to work with a title block template.
Definition at line 66 of file templatecommands.h.
TitleBlockTemplateCommand::TitleBlockTemplateCommand | ( | TitleBlockTemplate * | tbtemplate = nullptr , |
QUndoCommand * | parent = nullptr |
||
) |
Constructor
tbtemplate | Modified title block template |
parent | Parent QUndoCommand |
Definition at line 159 of file templatecommands.cpp.
|
override |
Destructor
Definition at line 169 of file templatecommands.cpp.
|
private |
void TitleBlockTemplateCommand::refreshLayout | ( | ) |
Refresh the view, including layout reloading, if any.
Definition at line 213 of file templatecommands.cpp.
References view_.
Referenced by PasteTemplateCellsCommand::redo(), and PasteTemplateCellsCommand::undo().
void TitleBlockTemplateCommand::refreshView | ( | ) |
Refresh the view, if any.
Definition at line 205 of file templatecommands.cpp.
References view_.
Referenced by CutTemplateCellsCommand::redo(), PasteTemplateCellsCommand::redo(), CutTemplateCellsCommand::undo(), and PasteTemplateCellsCommand::undo().
void TitleBlockTemplateCommand::setTitleBlockTemplate | ( | TitleBlockTemplate * | tbtemplate | ) |
Set the modified title block template.
tbtemplate | New modified title block template. |
Definition at line 183 of file templatecommands.cpp.
References tbtemplate_.
void TitleBlockTemplateCommand::setView | ( | TitleBlockTemplateView * | view | ) |
Set the view to be updated after the template modification
view | the view to be updated after the template modification |
Definition at line 198 of file templatecommands.cpp.
TitleBlockTemplate * TitleBlockTemplateCommand::titleBlockTemplate | ( | ) | const |
Definition at line 175 of file templatecommands.cpp.
References tbtemplate_.
TitleBlockTemplateView * TitleBlockTemplateCommand::view | ( | ) | const |
Definition at line 190 of file templatecommands.cpp.
References view_.
Referenced by setView().
|
protected |
Modified TitleBlock Template.
Definition at line 85 of file templatecommands.h.
Referenced by ModifyTemplateGridCommand::apply(), ModifyTemplateDimension::apply(), SplitCellsCommand::redo(), PasteTemplateCellsCommand::redo(), setTitleBlockTemplate(), SplitCellsCommand::SplitCellsCommand(), titleBlockTemplate(), and PasteTemplateCellsCommand::undo().
|
protected |
This class may trigger a view update.
Definition at line 86 of file templatecommands.h.
Referenced by ModifyTemplateGridCommand::apply(), ModifyTemplateDimension::apply(), MergeCellsCommand::redo(), SplitCellsCommand::redo(), refreshLayout(), refreshView(), setView(), MergeCellsCommand::undo(), SplitCellsCommand::undo(), and view().