QElectroTech  0.70
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>

Public Member Functions

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

Private Attributes

Elementm_element = nullptr
 
DynamicElementTextItemm_text = nullptr
 

Detailed Description

The AddElementTextCommand class Manage the adding of element text.

Definition at line 33 of file addelementtextcommand.h.

Constructor & Destructor Documentation

◆ AddElementTextCommand()

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

Definition at line 31 of file addelementtextcommand.cpp.

References QET::Icons::tr.

◆ ~AddElementTextCommand()

AddElementTextCommand::~AddElementTextCommand ( )
override

Member Function Documentation

◆ redo()

void AddElementTextCommand::redo ( )
override

Definition at line 55 of file addelementtextcommand.cpp.

References Element::addDynamicTextItem(), m_element, and m_text.

◆ undo()

void AddElementTextCommand::undo ( )
override

Definition at line 48 of file addelementtextcommand.cpp.

References m_element, m_text, and Element::removeDynamicTextItem().

Member Data Documentation

◆ m_element

Element* AddElementTextCommand::m_element = nullptr
private

Definition at line 43 of file addelementtextcommand.h.

Referenced by redo(), undo(), and ~AddElementTextCommand().

◆ m_text

DynamicElementTextItem* AddElementTextCommand::m_text = nullptr
private

Definition at line 44 of file addelementtextcommand.h.

Referenced by redo(), undo(), and ~AddElementTextCommand().


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