|
QElectroTech
0.8-dev
|
Go to the documentation of this file.
18 #ifndef ELEMENTTEXTPATTERN_H
19 #define ELEMENTTEXTPATTERN_H
22 #include <QDomDocument>
33 QString
getName(
bool &ok)
const;
48 QString
getName(
const QStringList& list,
52 void apply(QString name,
bool erase =
false)
const;
58 #endif // ELEMENTTEXTCONFIGURATION_H
QDomDocument xmlConf() const
Definition: elementtextpattern.cpp:104
ExportElementTextPattern(Element *elmt)
ExportElementTextPattern::ExportElementTextPattern Constructor.
Definition: elementtextpattern.cpp:42
The DynamicElementTextItem class This class provide a simple text field of element who can be added o...
Definition: dynamicelementtextitem.h:39
QWidget * parentWidget() const
Definition: elementtextpattern.cpp:95
Diagram * diagram() const
Definition: qetgraphicsitem.cpp:40
Definition: deleteqgraphicsitemcommand.h:31
Definition: diagramcontent.h:46
void fromXml(const QDomElement &dom_elmt) override
DynamicElementTextItem::fromXml Import this text from xml.
Definition: dynamicelementtextitem.cpp:154
QList< QDomElement > findInDomElement(const QDomElement &, const QString &)
Definition: qet.cpp:333
void apply(QString name, bool erase=false) const
ImportElementTextPattern::apply Apply the user choice.
Definition: elementtextpattern.cpp:199
The AddTextsGroupCommand class Manage the adding of a texts group.
Definition: addelementtextcommand.h:54
Definition: elementtextpattern.h:43
QMessageBox::StandardButton question(QWidget *, const QString &, const QString &, QMessageBox::StandardButtons=QMessageBox::Ok, QMessageBox::StandardButton=QMessageBox::NoButton)
Definition: qetmessagebox.cpp:53
QMessageBox::StandardButton information(QWidget *, const QString &, const QString &, QMessageBox::StandardButtons=QMessageBox::Ok, QMessageBox::StandardButton=QMessageBox::NoButton)
Definition: qetmessagebox.cpp:38
bool writeXmlFile(QDomDocument &xml_doc, const QString &filepath, QString *error_message=nullptr)
Definition: qet.cpp:584
QWidget * parentWidget() const
Definition: elementtextpattern.cpp:183
The RemoveTextsGroupCommand class Manage the removinf of a texts group.
Definition: addelementtextcommand.h:85
ImportElementTextPattern(Element *elmt)
Definition: elementtextpattern.cpp:127
QUndoStack & undoStack()
Diagram::undoStack.
Definition: diagram.h:397
static QString getItem(QWidget *parent, const QString &title, const QString &label, const QStringList &items, bool *ok=nullptr, bool *erase=nullptr)
ImportElementTextPatternDialog::getItem For all arguments see QInputDialog::getItem,...
Definition: importelementtextpatterndialog.cpp:43
Definition: elementtextpattern.h:28
QSet< DynamicElementTextItem * > m_element_texts
Definition: diagramcontent.h:77
Element * m_element
Definition: elementtextpattern.h:38
The ElementTextItemGroup class This class represent a group of element text Texts in the group can be...
Definition: elementtextitemgroup.h:36
QString getName(bool &ok) const
ExportElementTextConf::getName Open a dialog to let user set the name of the conf and return it.
Definition: elementtextpattern.cpp:81
Element * m_element
Definition: elementtextpattern.h:55
QString getName(const QStringList &list, bool *ok, bool *erase) const
ImportElementTextPattern::getName Open a dialog to let user select a conf.
Definition: elementtextpattern.cpp:170
QString m_name
Definition: elementtextpattern.h:39
virtual QDomElement toXml(QDomDocument &, QHash< Terminal *, int > &) const
Element::toXml Allows to export the element in XML.
Definition: element.cpp:1130
QList< ElementTextItemGroup * > textGroups() const
Element::textGroups.
Definition: element.cpp:1420
QIcon tr
Definition: qeticons.cpp:206
QList< DynamicElementTextItem * > dynamicTextItems() const
Element::dynamicTextItems.
Definition: element.cpp:1316
static QString configDir()
QETApp::configDir Return the QET configuration folder, i.e. the path to the folder in which QET will ...
Definition: qetapp.cpp:805
The AddElementTextCommand class Manage the adding of element text.
Definition: addelementtextcommand.h:34