QElectroTech 0.200.1-dev
Loading...
Searching...
No Matches
PropertiesInterface Class Referenceabstract

The PropertiesInterface class This class is an interface for have common way to use properties in QElectroTech. More...

#include <propertiesinterface.h>

Inheritance diagram for PropertiesInterface:
Inheritance graph
Collaboration diagram for PropertiesInterface:
Collaboration graph

Public Member Functions

 PropertiesInterface ()
 PropertiesInterface::PropertiesInterface.
virtual ~PropertiesInterface ()
 PropertiesInterface::~PropertiesInterface.
virtual void toSettings (QSettings &settings, const QString=QString()) const =0
 toSettings Save properties to setting file.
virtual void fromSettings (const QSettings &settings, const QString=QString())=0
 fromSettings load properties to setting file.
virtual QDomElement toXml (QDomDocument &xml_document) const =0
 toXml Save properties to xml element
virtual bool fromXml (const QDomElement &xml_element)=0
 fromXml load properties to xml element

Detailed Description

The PropertiesInterface class This class is an interface for have common way to use properties in QElectroTech.

Constructor & Destructor Documentation

◆ PropertiesInterface()

PropertiesInterface::PropertiesInterface ( )

PropertiesInterface::PropertiesInterface.

Here is the caller graph for this function:

◆ ~PropertiesInterface()

PropertiesInterface::~PropertiesInterface ( )
virtual

Member Function Documentation

◆ fromSettings()

virtual void PropertiesInterface::fromSettings ( const QSettings & settings,
const QString = QString() )
pure virtual

fromSettings load properties to setting file.

Parameters
settings: is use for prefix a word before the name of each parameter
QString

Implemented in ElementData, TerminalData, TerminalStripData, UserProperties, and XRefProperties.

◆ fromXml()

virtual bool PropertiesInterface::fromXml ( const QDomElement & xml_element)
pure virtual

fromXml load properties to xml element

Parameters
xml_element
Returns
true / false

Implemented in ElementData, TerminalData, TerminalStripData, UserProperties, and XRefProperties.

◆ toSettings()

virtual void PropertiesInterface::toSettings ( QSettings & settings,
const QString = QString() ) const
pure virtual

toSettings Save properties to setting file.

Parameters
settings: is use for prefix a word before the name of each parameter
QString

Implemented in ElementData, TerminalData, TerminalStripData, UserProperties, and XRefProperties.

◆ toXml()

virtual QDomElement PropertiesInterface::toXml ( QDomDocument & xml_document) const
pure virtual

toXml Save properties to xml element

Parameters
xml_document
Returns
QDomElement

Implemented in ElementData, TerminalData, TerminalStripData, UserProperties, and XRefProperties.


The documentation for this class was generated from the following files: