18#ifndef ADDELEMENTTEXTCOMMAND_H
19#define ADDELEMENTTEXTCOMMAND_H
21#include <QUndoCommand>
39 QUndoCommand *parent =
nullptr);
59 QUndoCommand *parent =
nullptr);
61 const QDomElement& dom_element,
62 QUndoCommand *parent =
nullptr);
65 QList<DynamicElementTextItem *> texts_list,
66 QUndoCommand *parent =
nullptr);
90 QUndoCommand *parent =
nullptr);
110 QUndoCommand *parent =
nullptr);
113 void undo()
override;
114 void redo()
override;
130 QUndoCommand *parent =
nullptr);
133 void undo()
override;
134 void redo()
override;
149 Qt::Alignment new_alignment,
150 QUndoCommand *parent =
nullptr);
153 int id()
const override{
return 6;}
154 bool mergeWith(
const QUndoCommand *other)
override;
155 void undo()
override;
156 void redo()
override;
The AddElementTextCommand class Manage the adding of element text.
Definition addelementtextcommand.h:35
void redo() override
AddElementTextCommand::redo.
Definition addelementtextcommand.cpp:72
void undo() override
AddElementTextCommand::undo.
Definition addelementtextcommand.cpp:62
Element * m_element
Definition addelementtextcommand.h:46
~AddElementTextCommand() override
AddElementTextCommand::~AddElementTextCommand.
Definition addelementtextcommand.cpp:50
DynamicElementTextItem * m_text
Definition addelementtextcommand.h:47
The AddTextToGroupCommand class.
Definition addelementtextcommand.h:106
~AddTextToGroupCommand() override
AddTextToGroupCommand::~AddTextToGroupCommand Destructor.
Definition addelementtextcommand.cpp:290
QPointer< DynamicElementTextItem > m_text
Definition addelementtextcommand.h:117
QPointer< Element > m_element
Definition addelementtextcommand.h:119
void undo() override
AddTextToGroupCommand::undo.
Definition addelementtextcommand.cpp:303
void redo() override
AddTextToGroupCommand::redo.
Definition addelementtextcommand.cpp:312
QPointer< ElementTextItemGroup > m_group
Definition addelementtextcommand.h:118
The AddTextsGroupCommand class Manage the adding of a texts group.
Definition addelementtextcommand.h:55
QList< DynamicElementTextItem * > m_deti_list
Definition addelementtextcommand.h:75
void redo() override
AddTextsGroupCommand::redo.
Definition addelementtextcommand.cpp:165
QString m_name
Definition addelementtextcommand.h:77
QPointer< Element > m_element
Definition addelementtextcommand.h:73
QDomElement m_dom_element
Definition addelementtextcommand.h:76
~AddTextsGroupCommand() override
AddTextsGroupCommand::~AddTextsGroupCommand Destructor.
Definition addelementtextcommand.cpp:150
bool m_first_undo
Definition addelementtextcommand.h:78
QPointer< ElementTextItemGroup > m_group
Definition addelementtextcommand.h:74
void undo() override
AddTextsGroupCommand::undo.
Definition addelementtextcommand.cpp:156
The AlignmentTextsGroupCommand class.
Definition addelementtextcommand.h:146
void redo() override
AlignmentTextsGroupCommand::redo.
Definition addelementtextcommand.cpp:460
bool mergeWith(const QUndoCommand *other) override
AlignmentTextsGroupCommand::mergeWith Try to merge this command with other command.
Definition addelementtextcommand.cpp:422
int id() const override
Definition addelementtextcommand.h:153
void undo() override
AlignmentTextsGroupCommand::undo.
Definition addelementtextcommand.cpp:439
Qt::Alignment m_previous_alignment
Definition addelementtextcommand.h:160
QHash< DynamicElementTextItem *, QPointF > m_texts_pos
Definition addelementtextcommand.h:162
~AlignmentTextsGroupCommand() override
AlignmentTextsGroupCommand::~AlignmentTextsGroupCommand Destructor.
Definition addelementtextcommand.cpp:413
QPointer< ElementTextItemGroup > m_group
Definition addelementtextcommand.h:159
Qt::Alignment m_new_alignment
Definition addelementtextcommand.h:161
The DynamicElementTextItem class This class provide a simple text field of element who can be added o...
Definition dynamicelementtextitem.h:40
The ElementTextItemGroup class This class represent a group of element text Texts in the group can be...
Definition elementtextitemgroup.h:36
The RemoveTextFromGroupCommand class.
Definition addelementtextcommand.h:126
void redo() override
RemoveTextFromGroupCommand::redo.
Definition addelementtextcommand.cpp:372
void undo() override
RemoveTextFromGroupCommand::undo.
Definition addelementtextcommand.cpp:363
QPointer< ElementTextItemGroup > m_group
Definition addelementtextcommand.h:138
QPointer< Element > m_element
Definition addelementtextcommand.h:139
~RemoveTextFromGroupCommand() override
RemoveTextFromGroupCommand::~RemoveTextFromGroupCommand Destructor.
Definition addelementtextcommand.cpp:350
QPointer< DynamicElementTextItem > m_text
Definition addelementtextcommand.h:137
The RemoveTextsGroupCommand class Manage the removinf of a texts group.
Definition addelementtextcommand.h:86
void redo() override
RemoveTextsGroupCommand::redo.
Definition addelementtextcommand.cpp:251
~RemoveTextsGroupCommand() override
RemoveTextsGroupCommand::~RemoveTextsGroupCommand.
Definition addelementtextcommand.cpp:228
QPointer< ElementTextItemGroup > m_group
Definition addelementtextcommand.h:98
QList< QPointer< DynamicElementTextItem > > m_text_list
Definition addelementtextcommand.h:99
void undo() override
RemoveTextsGroupCommand::undo.
Definition addelementtextcommand.cpp:234
QPointer< Element > m_element
Definition addelementtextcommand.h:97