QElectroTech 0.200.1-dev
Loading...
Searching...
No Matches
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

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ~CutTemplateCellsCommand()

CutTemplateCellsCommand::~CutTemplateCellsCommand ( )
override

Destructor

◆ CutTemplateCellsCommand() [2/2]

CutTemplateCellsCommand::CutTemplateCellsCommand ( const CutTemplateCellsCommand & )
private
Here is the call graph for this function:

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: