27class QAbstractItemModel;
 
   35        QDomElement 
penToXml(QDomDocument &parent_document, 
const QPen& pen);
 
   39                        QDomDocument &parent_document,
 
   45                        QDomDocument &document,
 
   47                        const QString& rename = QString());
 
   50                        QDomDocument &document,
 
   52                        const QString& rename = QString());
 
   55                        const QDomDocument &xml_document,
 
   56                        const QString &file_path,
 
   57                        QString *error_message = 
nullptr);
 
   60                        QDomDocument &document,
 
   61                        const QString& tag_name,
 
   62                        const QString& value);
 
   65                        const QDomElement &element,
 
   66                        const QString &tag_name);
 
   69                        const QDomElement &element,
 
   70                        const QString parent_tag_name,
 
   71                        const QString &children_tag_name);
 
   74                        QDomDocument &parent_document,
 
   75                        const QMargins &margins);
 
   80                        QDomDocument &parent_document,
 
   81                        const QAbstractItemModel *model,
 
   83                        QList<int>> horizontal_section_role,
 
   85                        QList<int>> vertical_section_role);
 
   88                        const QDomElement &element,
 
   89                        QAbstractItemModel *model);
 
   92                                                                                  const QString &tag_name);
 
   99                                         bool default_value = 
true,
 
  100                                         bool *conv_ok = 
nullptr);
 
  139        QDomElement 
property(
const QDomElement& e, 
const QString& name);
 
  140        bool attribute(
const QDomElement& e, 
const QString& attribute_name, 
const QString& type, QString* attr);
 
Definition qetxml.cpp:586
 
PropertyFlags propertyInteger(const QDomElement &e, const QString &attribute_name, int *entier)
PropertiesInterface::propertyInteger Reads an integer from the XML element.
Definition qetxml.cpp:721
 
QDomElement fileSystemElementToXmlCollectionElement(QDomDocument &document, QFile &file, const QString &rename=QString())
Definition qetxml.cpp:221
 
PropertyFlags
Definition qetxml.h:109
 
@ NoValidConversion
Definition qetxml.h:112
 
@ NotFound
Definition qetxml.h:111
 
@ Success
Definition qetxml.h:110
 
QDomElement fileSystemDirToXmlCollectionDir(QDomDocument &document, const QDir &dir, const QString &rename=QString())
Definition qetxml.cpp:177
 
const QString boolS
Definition qetxml.h:104
 
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:256
 
bool qGraphicsItemPosFromXml(QGraphicsItem *item, const QDomElement &xml_elmt)
Definition qetxml.cpp:943
 
QDomElement qGraphicsItemPosToXml(QGraphicsItem *item, QDomDocument &document)
qGraphicsItemPosToXml Save the pos of a QGraphicsItem into an xml element. The tag name of the xml el...
Definition qetxml.cpp:933
 
QMargins marginsFromXml(const QDomElement &element)
QETXML::marginsFromXml.
Definition qetxml.cpp:408
 
void modelHeaderDataFromXml(const QDomElement &element, QAbstractItemModel *model)
QETXML::modelHeaderDataFromXml Restore from xml modele header data.
Definition qetxml.cpp:510
 
const QString colorS
Definition qetxml.h:107
 
QVector< QDomElement > directChild(const QDomElement &element, const QString &tag_name)
QETXML::directChild.
Definition qetxml.cpp:321
 
QString boolToString(bool value)
boolToString
Definition qetxml.cpp:593
 
QVector< QDomElement > findInDomElement(const QDomElement &dom_elmt, const QString &tag_name)
QETXML::findInDomElement.
Definition qetxml.cpp:565
 
QDomElement brushToXml(QDomDocument &parent_document, const QBrush &brush)
QETXML::brushToXml Write attribute of a QBrush in xml element.
Definition qetxml.cpp:99
 
bool attribute(const QDomElement &e, const QString &attribute_name, const QString &type, QString *attr)
PropertiesInterface::attribute Returns the property with the name attribute_name and type type.
Definition qetxml.cpp:887
 
QDomElement marginsToXml(QDomDocument &parent_document, const QMargins &margins)
QETXML::marginsToXml Save a QMargins to xml. the xml tag name is 'margins'.
Definition qetxml.cpp:386
 
const QString doubleS
Definition qetxml.h:103
 
bool validXmlProperty(const QDomElement &e)
PropertiesInterface::validXmlProperty Check if the Xml element contains the needed fields.
Definition qetxml.cpp:911
 
const QString integerS
Definition qetxml.h:102
 
PropertyFlags propertyUuid(const QDomElement &e, const QString &attribute_name, QUuid *uuid)
Definition qetxml.cpp:829
 
bool boolFromString(const QString &value, bool default_value, bool *conv_ok)
boolFromString return value converted to bool
Definition qetxml.cpp:606
 
const QString stringS
Definition qetxml.h:105
 
QPen penFromXml(const QDomElement &element)
QETXML::penFromXml Build a QPen from a xml description.
Definition qetxml.cpp:64
 
PropertyFlags propertyString(const QDomElement &e, const QString &attribute_name, QString *string)
Definition qetxml.cpp:852
 
QBrush brushFromXml(const QDomElement &element)
QETXML::brushFromXml Build a QBrush from a xml description.
Definition qetxml.cpp:137
 
QDomElement property(const QDomElement &e, const QString &name)
Definition qetxml.cpp:866
 
QDomElement penToXml(QDomDocument &parent_document, const QPen &pen)
QETXML::penToXml Write attribute of a QPen in xml element.
Definition qetxml.cpp:35
 
QVector< QDomElement > subChild(const QDomElement &element, const QString parent_tag_name, const QString &children_tag_name)
QETXML::subChild.
Definition qetxml.cpp:349
 
const QString uuidS
Definition qetxml.h:106
 
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:303
 
PropertyFlags propertyDouble(const QDomElement &e, const QString &attribute_name, double *reel)
Definition qetxml.cpp:746
 
QDomElement createXmlProperty(const QString &name, const QString value)
Use this functions to add properties to the xml document.
Definition qetxml.cpp:640
 
PropertyFlags propertyColor(const QDomElement &e, const QString &attribute_name, QColor *color)
Definition qetxml.cpp:804
 
PropertyFlags propertyBool(const QDomElement &e, const QString &attribute_name, bool *boolean)
Definition qetxml.cpp:772
 
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:438