|
QElectroTech
0.8-dev
|
Go to the documentation of this file.
21 #include <QDomElement>
27 class QAbstractItemModel;
34 QDomElement
penToXml(QDomDocument &parent_document,
const QPen& pen);
37 QDomElement
brushToXml (QDomDocument &parent_document,
42 QDomDocument &document,
44 const QString& rename = QString());
46 QDomDocument &document,
48 const QString& rename = QString());
51 const QString &file_path,
52 QString *error_message =
nullptr);
55 const QString& tag_name,
56 const QString& value);
58 QVector <QDomElement>
directChild(
const QDomElement &element,
59 const QString &tag_name);
60 QVector <QDomElement>
subChild(
const QDomElement &element,
61 const QString parent_tag_name,
62 const QString &children_tag_name);
65 const QMargins &margins);
69 const QAbstractItemModel *model,
71 QList<int>> horizontal_section_role,
73 QList<int>> vertical_section_role);
75 QAbstractItemModel *model);
void modelHeaderDataFromXml(const QDomElement &element, QAbstractItemModel *model)
QETXML::modelHeaderDataFromXml Restore from xml modele header data.
Definition: qetxml.cpp:501
QDomElement marginsToXml(QDomDocument &parent_document, const QMargins &margins)
QETXML::marginsToXml Save a QMargins to xml. the xml tag name is 'margins'.
Definition: qetxml.cpp:377
QIcon nl
Definition: qeticons.cpp:203
QBrush brushFromXml(const QDomElement &element)
QETXML::brushFromXml Build a QBrush from a xml description.
Definition: qetxml.cpp:135
QMargins marginsFromXml(const QDomElement &element)
QETXML::marginsFromXml.
Definition: qetxml.cpp:399
QDomElement brushToXml(QDomDocument &parent_document, const QBrush &brush)
QETXML::brushToXml Write attribute of a QBrush in xml element.
Definition: qetxml.cpp:97
QDomElement penToXml(QDomDocument &parent_document, const QPen &pen)
QETXML::penToXml Write attribute of a QPen in xml element.
Definition: qetxml.cpp:33
bool writeXmlFile(const QDomDocument &xml_document, const QString &file_path, QString *error_message=nullptr)
QETXML::writeXmlFile Export an XML document to an UTF-8 text file indented with 4 spaces,...
Definition: qetxml.cpp:257
QDomElement textToDomElement(QDomDocument &document, const QString &tag_name, const QString &value)
QETXML::textToDomElement Return a QDomElement, created from document, with tag name tag_name and text...
Definition: qetxml.cpp:296
QVector< QDomElement > subChild(const QDomElement &element, const QString parent_tag_name, const QString &children_tag_name)
QETXML::subChild.
Definition: qetxml.cpp:341
QDomElement fileSystemElementToXmlCollectionElement(QDomDocument &document, QFile &file, const QString &rename=QString())
Definition: qetxml.cpp:220
QVector< QDomElement > directChild(const QDomElement &element, const QString &tag_name)
QETXML::directChild.
Definition: qetxml.cpp:313
QPen penFromXml(const QDomElement &element)
QETXML::penFromXml Build a QPen from a xml description.
Definition: qetxml.cpp:62
Definition: nameslist.h:30
QDomElement modelHeaderDataToXml(QDomDocument &parent_document, const QAbstractItemModel *model, QHash< int, QList< int >> horizontal_section_role, QHash< int, QList< int >> vertical_section_role)
QETXML::modelHeaderDataToXml Save to xml element all header data specified by horizontal_section_role...
Definition: qetxml.cpp:429
QDomElement fileSystemDirToXmlCollectionDir(QDomDocument &document, const QDir &dir, const QString &rename=QString())
Definition: qetxml.cpp:175
@ Vertical
Vertical segment.
Definition: qet.h:90
@ Horizontal
Horizontal segment.
Definition: qet.h:89
QIcon tr
Definition: qeticons.cpp:206