mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-23 18:50:52 +01:00
User can export / import the configuration of the texts and texts group of an element.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5195 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
|
||||
#include <QUndoCommand>
|
||||
#include <QPointer>
|
||||
#include <QDomElement>
|
||||
|
||||
class Element;
|
||||
class DynamicElementTextItem;
|
||||
@@ -51,6 +52,7 @@ class AddTextsGroupCommand : public QUndoCommand
|
||||
{
|
||||
public:
|
||||
AddTextsGroupCommand(Element *element, QString groupe_name, QUndoCommand *parent = nullptr);
|
||||
AddTextsGroupCommand(Element *element, QDomElement dom_element, QUndoCommand *parent = nullptr);
|
||||
~AddTextsGroupCommand() override;
|
||||
|
||||
void undo() override;
|
||||
@@ -59,6 +61,8 @@ class AddTextsGroupCommand : public QUndoCommand
|
||||
private:
|
||||
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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user