The AddTextsGroupCommand class Manage the adding of a texts group.
More...
#include <addelementtextcommand.h>
Inherits QUndoCommand.
The AddTextsGroupCommand class Manage the adding of a texts group.
◆ AddTextsGroupCommand() [1/3]
AddTextsGroupCommand::AddTextsGroupCommand |
( |
Element * |
element, |
|
|
QString |
groupe_name, |
|
|
QUndoCommand * |
parent = nullptr |
|
) |
| |
◆ AddTextsGroupCommand() [2/3]
AddTextsGroupCommand::AddTextsGroupCommand |
( |
Element * |
element, |
|
|
const QDomElement & |
dom_element, |
|
|
QUndoCommand * |
parent = nullptr |
|
) |
| |
AddTextsGroupCommand::AddTextsGroupCommand.
- Parameters
-
element | : The element to add a new group |
dom_element | : the first time the group is created, we call the function fromXml of the group, and give dom_element has argument. |
parent | : parent undo |
◆ AddTextsGroupCommand() [3/3]
AddTextsGroupCommand::AddTextsGroupCommand |
( |
Element * |
element, |
|
|
QString |
groupe_name, |
|
|
QList< DynamicElementTextItem * > |
texts_list, |
|
|
QUndoCommand * |
parent = nullptr |
|
) |
| |
AddTextsGroupCommand::AddTextsGroupCommand.
- Parameters
-
element | : The element to add a new group |
groupe_name | |
texts_list | : a list of texts to add to the created group (texts must be child of element) |
parent | : parent undo |
◆ ~AddTextsGroupCommand()
AddTextsGroupCommand::~AddTextsGroupCommand |
( |
| ) |
|
|
override |
◆ redo()
void AddTextsGroupCommand::redo |
( |
| ) |
|
|
override |
◆ undo()
void AddTextsGroupCommand::undo |
( |
| ) |
|
|
override |
◆ m_deti_list
◆ m_dom_element
QDomElement AddTextsGroupCommand::m_dom_element |
|
private |
◆ m_element
QPointer<Element> AddTextsGroupCommand::m_element |
|
private |
◆ m_first_undo
bool AddTextsGroupCommand::m_first_undo = true |
|
private |
◆ m_group
◆ m_name
QString AddTextsGroupCommand::m_name |
|
private |
The documentation for this class was generated from the following files: