QElectroTech  0.70
Public Member Functions | Protected Attributes | Private Member Functions | List of all members
TitleBlockTemplateCommand Class Reference

#include <templatecommands.h>

Public Member Functions

 TitleBlockTemplateCommand (TitleBlockTemplate *=nullptr, QUndoCommand *=nullptr)
 
 ~TitleBlockTemplateCommand () override
 
TitleBlockTemplatetitleBlockTemplate () const
 
void setTitleBlockTemplate (TitleBlockTemplate *)
 
TitleBlockTemplateViewview () const
 
void setView (TitleBlockTemplateView *)
 
void refreshView ()
 
void refreshLayout ()
 

Protected Attributes

TitleBlockTemplatetbtemplate_
 Modified TitleBlock Template. More...
 
TitleBlockTemplateViewview_
 This class may trigger a view update. More...
 

Private Member Functions

 TitleBlockTemplateCommand (const TitleBlockTemplateCommand &)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ TitleBlockTemplateCommand() [1/2]

TitleBlockTemplateCommand::TitleBlockTemplateCommand ( TitleBlockTemplate tbtemplate = nullptr,
QUndoCommand *  parent = nullptr 
)

Constructor

Parameters
tbtemplateModified title block template
parentParent QUndoCommand

Definition at line 159 of file templatecommands.cpp.

◆ ~TitleBlockTemplateCommand()

TitleBlockTemplateCommand::~TitleBlockTemplateCommand ( )
override

Destructor

Definition at line 169 of file templatecommands.cpp.

◆ TitleBlockTemplateCommand() [2/2]

TitleBlockTemplateCommand::TitleBlockTemplateCommand ( const TitleBlockTemplateCommand )
private

Member Function Documentation

◆ refreshLayout()

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().

◆ refreshView()

void TitleBlockTemplateCommand::refreshView ( )

◆ setTitleBlockTemplate()

void TitleBlockTemplateCommand::setTitleBlockTemplate ( TitleBlockTemplate tbtemplate)

Set the modified title block template.

Parameters
tbtemplateNew modified title block template.

Definition at line 183 of file templatecommands.cpp.

References tbtemplate_.

◆ setView()

void TitleBlockTemplateCommand::setView ( TitleBlockTemplateView view)

Set the view to be updated after the template modification

Parameters
viewthe view to be updated after the template modification

Definition at line 198 of file templatecommands.cpp.

References view(), and view_.

◆ titleBlockTemplate()

TitleBlockTemplate * TitleBlockTemplateCommand::titleBlockTemplate ( ) const
Returns
the modified title block template.

Definition at line 175 of file templatecommands.cpp.

References tbtemplate_.

◆ view()

TitleBlockTemplateView * TitleBlockTemplateCommand::view ( ) const
Returns
the view to be updated after the template modification

Definition at line 190 of file templatecommands.cpp.

References view_.

Referenced by setView().

Member Data Documentation

◆ tbtemplate_

TitleBlockTemplate* TitleBlockTemplateCommand::tbtemplate_
protected

◆ view_

TitleBlockTemplateView* TitleBlockTemplateCommand::view_
protected

The documentation for this class was generated from the following files: