|  | QElectroTech
    0.8-dev
    | 
#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.
| TitleBlockTemplateCommand::TitleBlockTemplateCommand | ( | TitleBlockTemplate * | tbtemplate = nullptr, | 
| QUndoCommand * | parent = nullptr | ||
| ) | 
Constructor
| tbtemplate | Modified title block template | 
| parent | Parent QUndoCommand | 
| 
 | override | 
Destructor
| 
 | private | 
| void TitleBlockTemplateCommand::refreshLayout | ( | ) | 
Refresh the view, including layout reloading, if any.

| void TitleBlockTemplateCommand::refreshView | ( | ) | 
Refresh the view, if any.

| void TitleBlockTemplateCommand::setTitleBlockTemplate | ( | TitleBlockTemplate * | tbtemplate | ) | 
Set the modified title block template.
| tbtemplate | New modified title block template. | 
| 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 | 

| TitleBlockTemplate * TitleBlockTemplateCommand::titleBlockTemplate | ( | ) | const | 
| TitleBlockTemplateView * TitleBlockTemplateCommand::view | ( | ) | const | 

| 
 | protected | 
Modified TitleBlock Template.
| 
 | protected | 
This class may trigger a view update.
 1.8.18
 1.8.18