QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Member Functions | Private Member Functions | List of all members
CutTemplateCellsCommand Class Reference

#include <templatecommands.h>

Inheritance diagram for CutTemplateCellsCommand:
Inheritance graph
Collaboration diagram for CutTemplateCellsCommand:
Collaboration graph

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
 
TitleBlockTemplatetitleBlockTemplate () const
 
void setTitleBlockTemplate (TitleBlockTemplate *)
 
TitleBlockTemplateViewview () const
 
void setView (TitleBlockTemplateView *)
 
void refreshView ()
 
void refreshLayout ()
 

Public Attributes

QHash< TitleBlockCell *, TitleBlockCell::TemplateCellTypecut_cells_
 Cut cells.
 

Protected Member Functions

virtual void updateText ()
 

Private Member Functions

 CutTemplateCellsCommand (const CutTemplateCellsCommand &)
 

Additional Inherited Members

- Protected Attributes inherited from TitleBlockTemplateCommand
TitleBlockTemplatetbtemplate_
 Modified TitleBlock Template.
 
TitleBlockTemplateViewview_
 This class may trigger a view update.
 

Detailed Description

This class represents the action of cutting a cells set.

Constructor & Destructor Documentation

◆ CutTemplateCellsCommand() [1/2]

CutTemplateCellsCommand::CutTemplateCellsCommand ( TitleBlockTemplate tb_template,
QUndoCommand *  parent = nullptr 
)

Constructor

◆ ~CutTemplateCellsCommand()

CutTemplateCellsCommand::~CutTemplateCellsCommand ( )
override

Destructor

◆ CutTemplateCellsCommand() [2/2]

CutTemplateCellsCommand::CutTemplateCellsCommand ( const CutTemplateCellsCommand )
private

Member Function Documentation

◆ redo()

void CutTemplateCellsCommand::redo ( )
override

Redo a cut operation

Here is the call graph for this function:

◆ setCutCells()

void CutTemplateCellsCommand::setCutCells ( const QList< TitleBlockCell * > &  cells)
virtual
Here is the call graph for this function:

◆ undo()

void CutTemplateCellsCommand::undo ( )
override

Undo a cut operation

Here is the call graph for this function:

◆ updateText()

void CutTemplateCellsCommand::updateText ( )
protectedvirtual

Update the label describing this command

Here is the caller graph for this function:

Member Data Documentation

◆ cut_cells_

QHash<TitleBlockCell *, TitleBlockCell::TemplateCellType> CutTemplateCellsCommand::cut_cells_

Cut cells.


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