QElectroTech
0.70
|
The AddTextsGroupCommand class Manage the adding of a texts group. More...
#include <addelementtextcommand.h>
Public Member Functions | |
AddTextsGroupCommand (Element *element, QString groupe_name, QUndoCommand *parent=nullptr) | |
AddTextsGroupCommand::AddTextsGroupCommand. More... | |
AddTextsGroupCommand (Element *element, const QDomElement &dom_element, QUndoCommand *parent=nullptr) | |
AddTextsGroupCommand::AddTextsGroupCommand. More... | |
AddTextsGroupCommand (Element *element, QString groupe_name, QList< DynamicElementTextItem *> texts_list, QUndoCommand *parent=nullptr) | |
AddTextsGroupCommand::AddTextsGroupCommand. More... | |
~AddTextsGroupCommand () override | |
AddTextsGroupCommand::~AddTextsGroupCommand Destructor. More... | |
void | undo () override |
void | redo () override |
Private Attributes | |
QPointer< Element > | m_element |
QPointer< ElementTextItemGroup > | m_group |
QList< DynamicElementTextItem * > | m_deti_list |
QDomElement | m_dom_element |
QString | m_name |
bool | m_first_undo = true |
The AddTextsGroupCommand class Manage the adding of a texts group.
Definition at line 51 of file addelementtextcommand.h.
AddTextsGroupCommand::AddTextsGroupCommand | ( | Element * | element, |
QString | groupe_name, | ||
QUndoCommand * | parent = nullptr |
||
) |
AddTextsGroupCommand::AddTextsGroupCommand.
element | : the element to add a new group |
groupe_name | : the name of the group |
parent | : parent undo |
Definition at line 71 of file addelementtextcommand.cpp.
References QET::Icons::tr.
AddTextsGroupCommand::AddTextsGroupCommand | ( | Element * | element, |
const QDomElement & | dom_element, | ||
QUndoCommand * | parent = nullptr |
||
) |
AddTextsGroupCommand::AddTextsGroupCommand.
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 has argument. |
parent | : parent undo |
Definition at line 85 of file addelementtextcommand.cpp.
References QET::Icons::tr.
AddTextsGroupCommand::AddTextsGroupCommand | ( | Element * | element, |
QString | groupe_name, | ||
QList< DynamicElementTextItem *> | texts_list, | ||
QUndoCommand * | parent = nullptr |
||
) |
AddTextsGroupCommand::AddTextsGroupCommand.
element | : The element to add a new group |
texts_list | : a list of texts to add to the created group (texts must be child of element) |
parent | : parent undo |
Definition at line 99 of file addelementtextcommand.cpp.
References m_deti_list, and QET::Icons::tr.
|
override |
AddTextsGroupCommand::~AddTextsGroupCommand Destructor.
Definition at line 121 of file addelementtextcommand.cpp.
|
override |
Definition at line 130 of file addelementtextcommand.cpp.
References m_deti_list, m_dom_element, m_element, m_first_undo, m_group, and m_name.
|
override |
Definition at line 124 of file addelementtextcommand.cpp.
|
private |
Definition at line 65 of file addelementtextcommand.h.
Referenced by AddTextsGroupCommand(), and redo().
|
private |
Definition at line 66 of file addelementtextcommand.h.
Referenced by redo().
|
private |
Definition at line 63 of file addelementtextcommand.h.
|
private |
Definition at line 68 of file addelementtextcommand.h.
Referenced by redo().
|
private |
Definition at line 64 of file addelementtextcommand.h.
|
private |
Definition at line 67 of file addelementtextcommand.h.
Referenced by redo().