18 #ifndef ADDELEMENTTEXTCOMMAND_H 19 #define ADDELEMENTTEXTCOMMAND_H 21 #include <QUndoCommand> 23 #include <QDomElement> 56 AddTextsGroupCommand(
Element *element, QString groupe_name, QList<DynamicElementTextItem *> texts_list, QUndoCommand *parent =
nullptr);
111 void undo()
override;
112 void redo()
override;
126 int id()
const override{
return 6;}
127 bool mergeWith(
const QUndoCommand *other)
override;
128 void undo()
override;
129 void redo()
override;
138 #endif // ADDELEMENTTEXTCOMMAND_H
QPointer< ElementTextItemGroup > m_group
~RemoveTextsGroupCommand() override
Qt::Alignment m_new_alignment
The DynamicElementTextItem class This class provide a simple text field of element who can be added o...
QPointer< Element > m_element
QPointer< ElementTextItemGroup > m_group
AddElementTextCommand(Element *element, DynamicElementTextItem *deti, QUndoCommand *parent=nullptr)
QPointer< DynamicElementTextItem > m_text
~AddTextToGroupCommand() override
AddTextToGroupCommand::~AddTextToGroupCommand Destructor.
~AddTextsGroupCommand() override
AddTextsGroupCommand::~AddTextsGroupCommand Destructor.
QList< DynamicElementTextItem * > m_deti_list
QPointer< Element > m_element
QList< QPointer< DynamicElementTextItem > > m_text_list
QHash< DynamicElementTextItem *, QPointF > m_texts_pos
QPointer< Element > m_element
AlignmentTextsGroupCommand(ElementTextItemGroup *group, Qt::Alignment new_alignment, QUndoCommand *parent=nullptr)
AlignmentTextsGroupCommand::AlignmentTextsGroupCommand.
QPointer< ElementTextItemGroup > m_group
AddTextToGroupCommand(DynamicElementTextItem *text, ElementTextItemGroup *group, QUndoCommand *parent=nullptr)
AddTextToGroupCommand::AddTextToGroupCommand.
~AddElementTextCommand() override
The ElementTextItemGroup class This class represent a group of element text Texts in the group can be...
QPointer< ElementTextItemGroup > m_group
AddTextsGroupCommand(Element *element, QString groupe_name, QUndoCommand *parent=nullptr)
AddTextsGroupCommand::AddTextsGroupCommand.
QPointer< Element > m_element
bool mergeWith(const QUndoCommand *other) override
AlignmentTextsGroupCommand::mergeWith Try to merge this command with other command.
QDomElement m_dom_element
Qt::Alignment m_previous_alignment
RemoveTextFromGroupCommand(DynamicElementTextItem *text, ElementTextItemGroup *group, QUndoCommand *parent=nullptr)
RemoveTextFromGroupCommand::RemoveTextFromGroupCommand.
The RemoveTextsGroupCommand class Manage the removinf of a texts group.
RemoveTextsGroupCommand(Element *element, ElementTextItemGroup *group, QUndoCommand *parent=nullptr)
RemoveTextsGroupCommand::RemoveTextsGroupCommand.
QPointer< ElementTextItemGroup > m_group
The AddTextsGroupCommand class Manage the adding of a texts group.
void redo() override
AlignmentTextsGroupCommand::redo.
DynamicElementTextItem * m_text
The AddElementTextCommand class Manage the adding of element text.
~AlignmentTextsGroupCommand() override
AlignmentTextsGroupCommand::~AlignmentTextsGroupCommand Destructor.
QPointer< DynamicElementTextItem > m_text
~RemoveTextFromGroupCommand() override
RemoveTextFromGroupCommand::~RemoveTextFromGroupCommand Destructor.
void undo() override
AlignmentTextsGroupCommand::undo.