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

The AddElementTextCommand class Manage the adding of element text. More...

#include <addelementtextcommand.h>

Inherits QUndoCommand.

Collaboration diagram for AddElementTextCommand:
Collaboration graph

Public Member Functions

 AddElementTextCommand (Element *element, DynamicElementTextItem *deti, QUndoCommand *parent=nullptr)
 AddElementTextCommand::AddElementTextCommand. More...
 
 ~AddElementTextCommand () override
 AddElementTextCommand::~AddElementTextCommand. More...
 
void undo () override
 AddElementTextCommand::undo. More...
 
void redo () override
 AddElementTextCommand::redo. More...
 

Private Attributes

Elementm_element = nullptr
 
DynamicElementTextItemm_text = nullptr
 

Detailed Description

The AddElementTextCommand class Manage the adding of element text.

Constructor & Destructor Documentation

◆ AddElementTextCommand()

AddElementTextCommand::AddElementTextCommand ( Element element,
DynamicElementTextItem deti,
QUndoCommand *  parent = nullptr 
)

AddElementTextCommand::AddElementTextCommand.

Parameters
element
deti
parent

◆ ~AddElementTextCommand()

AddElementTextCommand::~AddElementTextCommand ( )
override

AddElementTextCommand::~AddElementTextCommand.

Here is the call graph for this function:

Member Function Documentation

◆ redo()

void AddElementTextCommand::redo ( )
override

AddElementTextCommand::redo.

Here is the call graph for this function:

◆ undo()

void AddElementTextCommand::undo ( )
override

AddElementTextCommand::undo.

Here is the call graph for this function:

Member Data Documentation

◆ m_element

Element* AddElementTextCommand::m_element = nullptr
private

◆ m_text

DynamicElementTextItem* AddElementTextCommand::m_text = nullptr
private

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