QElectroTech  0.70
Public Member Functions | Private Attributes | List of all members
RemoveTextsGroupCommand Class Reference

The RemoveTextsGroupCommand class Manage the removinf of a texts group. More...

#include <addelementtextcommand.h>

Public Member Functions

 RemoveTextsGroupCommand (Element *element, ElementTextItemGroup *group, QUndoCommand *parent=nullptr)
 RemoveTextsGroupCommand::RemoveTextsGroupCommand. More...
 
 ~RemoveTextsGroupCommand () override
 
void undo () override
 
void redo () override
 

Private Attributes

QPointer< Elementm_element
 
QPointer< ElementTextItemGroupm_group
 
QList< QPointer< DynamicElementTextItem > > m_text_list
 

Detailed Description

The RemoveTextsGroupCommand class Manage the removinf of a texts group.

Definition at line 75 of file addelementtextcommand.h.

Constructor & Destructor Documentation

◆ RemoveTextsGroupCommand()

RemoveTextsGroupCommand::RemoveTextsGroupCommand ( Element element,
ElementTextItemGroup group,
QUndoCommand *  parent = nullptr 
)

RemoveTextsGroupCommand::RemoveTextsGroupCommand.

Parameters
element: The element where we remove a group
group: the group to remove
parent: the parent undo command

Definition at line 172 of file addelementtextcommand.cpp.

References m_text_list, ElementTextItemGroup::texts(), and QET::Icons::tr.

◆ ~RemoveTextsGroupCommand()

RemoveTextsGroupCommand::~RemoveTextsGroupCommand ( )
override

Definition at line 183 of file addelementtextcommand.cpp.

Member Function Documentation

◆ redo()

void RemoveTextsGroupCommand::redo ( )
override

Definition at line 198 of file addelementtextcommand.cpp.

References m_element, m_group, and m_text_list.

◆ undo()

void RemoveTextsGroupCommand::undo ( )
override

Definition at line 186 of file addelementtextcommand.cpp.

References m_element, m_group, and m_text_list.

Member Data Documentation

◆ m_element

QPointer<Element> RemoveTextsGroupCommand::m_element
private

Definition at line 85 of file addelementtextcommand.h.

Referenced by redo(), and undo().

◆ m_group

QPointer<ElementTextItemGroup> RemoveTextsGroupCommand::m_group
private

Definition at line 86 of file addelementtextcommand.h.

Referenced by redo(), and undo().

◆ m_text_list

QList<QPointer<DynamicElementTextItem> > RemoveTextsGroupCommand::m_text_list
private

Definition at line 87 of file addelementtextcommand.h.

Referenced by redo(), RemoveTextsGroupCommand(), and undo().


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