QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
Namespaces | Functions
qetxml.cpp File Reference

QETXML::fileSystemElementToXmlCollectionElement. More...

#include "qetxml.h"
#include "NameList/nameslist.h"
#include <QDir>
#include <QFont>
#include <QGraphicsItem>
#include <QPen>
Include dependency graph for qetxml.cpp:

Namespaces

namespace  QETXML
 

Functions

QString QETXML::boolToString (bool value)
 boolToString
 
bool QETXML::boolFromString (const QString &value, bool default_value, bool *conv_ok)
 boolFromString return value converted to bool
 
PropertyFlags QETXML::debugReadXml (PropertyFlags flag, const QDomElement &e, const QString &attribute_name, const QString &attr, const QString &type)
 
QDomElement QETXML::createXmlProperty (const QString &name, const QString value)
 Use this functions to add properties to the xml document.
 
QDomElement QETXML::createXmlProperty (const QString &name, const char *value)
 
QDomElement QETXML::createXmlProperty (const QString &name, const int value)
 propertyInteger Reads an integer from the XML element.
 
QDomElement QETXML::createXmlProperty (const QString &name, const double value)
 
QDomElement QETXML::createXmlProperty (const QString &name, const bool value)
 
QDomElement QETXML::createXmlProperty (const QString &name, const QUuid value)
 
QDomElement QETXML::createXmlProperty (const QString &name, const QColor value)
 
PropertyFlags QETXML::propertyInteger (const QDomElement &e, const QString &attribute_name, int *entier)
 PropertiesInterface::propertyInteger Reads an integer from the XML element.
 
PropertyFlags QETXML::propertyInteger (const QString &value, int *entier)
 
PropertyFlags QETXML::propertyDouble (const QDomElement &e, const QString &attribute_name, double *reel)
 
PropertyFlags QETXML::propertyDouble (const QString &value, double *reel)
 
PropertyFlags QETXML::propertyBool (const QDomElement &e, const QString &attribute_name, bool *boolean)
 
PropertyFlags QETXML::propertyBool (const QString &value, bool *boolean)
 
PropertyFlags QETXML::propertyColor (const QDomElement &e, const QString &attribute_name, QColor *color)
 
PropertyFlags QETXML::propertyColor (const QString &value, QColor *color)
 
PropertyFlags QETXML::propertyUuid (const QDomElement &e, const QString &attribute_name, QUuid *uuid)
 
PropertyFlags QETXML::propertyUuid (const QString &value, QUuid *uuid)
 
PropertyFlags QETXML::propertyString (const QDomElement &e, const QString &attribute_name, QString *string)
 
QDomElement QETXML::property (const QDomElement &e, const QString &name)
 
bool QETXML::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.
 
bool QETXML::validXmlProperty (const QDomElement &e)
 PropertiesInterface::validXmlProperty Check if the Xml element contains the needed fields.
 
QDomElement QETXML::qGraphicsItemPosToXml (QGraphicsItem *item, QDomDocument &document)
 qGraphicsItemPosToXml Save the pos of a QGraphicsItem into an xml element. The tag name of the xml element is pos and there is 3 attributes: x, y, z.
 
bool QETXML::qGraphicsItemPosFromXml (QGraphicsItem *item, const QDomElement &xml_elmt)
 

Detailed Description

QETXML::fileSystemElementToXmlCollectionElement.

Parameters
document: owner document of returned QDomElement, use to create the QDomElement.
file: file system element file to convert to QDomElement;
rename: by default the attribute "name" of the returned QDomElement is the same name of but we can override itwith rename
Returns
A file system element converted to a QDomElement ready to be inserted into a XmlElementCollection If the QDomElement can't be created, return a null QDomElement