QElectroTech  0.8-dev
Public Member Functions | Protected Attributes | Private Member Functions | List of all members
TitleBlockTemplateCommand Class Reference

#include <templatecommands.h>

Inheritance diagram for TitleBlockTemplateCommand:
Inheritance graph
Collaboration diagram for TitleBlockTemplateCommand:
Collaboration graph

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.

Constructor & Destructor Documentation

◆ TitleBlockTemplateCommand() [1/2]

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

Constructor

Parameters
tbtemplateModified title block template
parentParent QUndoCommand

◆ ~TitleBlockTemplateCommand()

TitleBlockTemplateCommand::~TitleBlockTemplateCommand ( )
override

Destructor

◆ TitleBlockTemplateCommand() [2/2]

TitleBlockTemplateCommand::TitleBlockTemplateCommand ( const TitleBlockTemplateCommand )
private

Member Function Documentation

◆ refreshLayout()

void TitleBlockTemplateCommand::refreshLayout ( )

Refresh the view, including layout reloading, if any.

Here is the caller graph for this function:

◆ refreshView()

void TitleBlockTemplateCommand::refreshView ( )

Refresh the view, if any.

Here is the caller graph for this function:

◆ setTitleBlockTemplate()

void TitleBlockTemplateCommand::setTitleBlockTemplate ( TitleBlockTemplate tbtemplate)

Set the modified title block template.

Parameters
tbtemplateNew modified title block template.

◆ 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
Here is the call graph for this function:

◆ titleBlockTemplate()

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

◆ view()

TitleBlockTemplateView * TitleBlockTemplateCommand::view ( ) const
Returns
the view to be updated after the template modification
Here is the caller graph for this function:

Member Data Documentation

◆ tbtemplate_

TitleBlockTemplate* TitleBlockTemplateCommand::tbtemplate_
protected

Modified TitleBlock Template.

◆ view_

TitleBlockTemplateView* TitleBlockTemplateCommand::view_
protected

This class may trigger a view update.


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