QElectroTech 0.100.0-dev
|
The ElementData class WARNING This class inherit from PropertiesInterface but only fromXml is actually reimplemented. More...
#include <elementdata.h>
Public Types | |
enum | Type { Simple = 1 , NextReport = 2 , PreviousReport = 4 , AllReport = 6 , Master = 8 , Slave = 16 , Terminale = 32 , Thumbnail = 64 } |
enum | MasterType { Coil , Protection , Commutator } |
enum | SlaveType { SSimple , Power , DelayOn , DelayOff , delayOnOff } |
enum | SlaveState { NO , NC , SW , Other } |
enum | TerminalType { TTGeneric , TTFuse , TTSectional , TTDiode , TTGround } |
enum | TerminalFunction { TFGeneric , TFPhase , TFNeutral } |
Public Member Functions | |
ElementData () | |
~ElementData () override | |
void | toSettings (QSettings &settings, const QString prefix=QString()) const override |
toSettings Save properties to setting file. | |
void | fromSettings (const QSettings &settings, const QString prefix=QString()) override |
fromSettings load properties to setting file. | |
QDomElement | toXml (QDomDocument &xml_element) const override |
toXml Save properties to xml element | |
bool | fromXml (const QDomElement &xml_element) override |
ElementData::fromXml load properties from xml element. The tag name of xml_element must be definition and have an attribute "type". | |
QDomElement | kindInfoToXml (QDomDocument &document) |
void | setTerminalType (ElementData::TerminalType t_type) |
ElementData::setTerminalType Override the terminal type by t_type . | |
ElementData::TerminalType | terminalType () const |
ElementData::terminalType. | |
void | setTerminalFunction (ElementData::TerminalFunction t_function) |
ElementData::setTerminalFunction Override the terminal function by t_function . | |
ElementData::TerminalFunction | terminalFunction () const |
ElementData::terminalFunction. | |
void | setTerminalLED (bool led) |
ElementData::setTerminalLED Override the terminal led by led . | |
bool | terminalLed () const |
ElementData::terminalLed. | |
bool | terminalPropertiesIsOverrided () const |
ElementData::terminalPropertiesIsOverrided. | |
bool | operator== (const ElementData &data) const |
bool | operator!= (const ElementData &data) const |
QString | typeToString () const |
QString | masterTypeToString () const |
Public Member Functions inherited from PropertiesInterface | |
PropertiesInterface () | |
PropertiesInterface::PropertiesInterface. | |
virtual | ~PropertiesInterface () |
PropertiesInterface::~PropertiesInterface. | |
Private Member Functions | |
void | kindInfoFromXml (const QDomElement &xml_element) |
Private Attributes | |
ElementData::TerminalType | m_override_terminal_type = ElementData::TTGeneric |
bool | m_terminal_type_is_override = false |
ElementData::TerminalFunction | m_override_terminal_function = ElementData::TFGeneric |
bool | m_terminal_function_is_override = false |
bool | m_terminal_led = false |
bool | m_terminal_led_is_override = false |
bool | m_override_terminal_led = false |
The ElementData class WARNING This class inherit from PropertiesInterface but only fromXml is actually reimplemented.
enum ElementData::Type |
|
inline |
|
inlineoverride |
|
overridevirtual |
fromSettings load properties to setting file.
settings | : is use for prefix a word before the name of each parameter |
QString |
Implements PropertiesInterface.
|
overridevirtual |
ElementData::fromXml load properties from xml element. The tag name of xml_element must be definition and have an attribute "type".
xml_element | : tagName must be 'definition' |
Implements PropertiesInterface.
|
private |
QDomElement ElementData::kindInfoToXml | ( | QDomDocument & | document | ) |
|
static |
QString ElementData::masterTypeToString | ( | ) | const |
|
static |
bool ElementData::operator!= | ( | const ElementData & | data | ) | const |
bool ElementData::operator== | ( | const ElementData & | data | ) | const |
void ElementData::setTerminalFunction | ( | ElementData::TerminalFunction | t_function | ) |
ElementData::setTerminalFunction Override the terminal function by t_function
.
t_function |
void ElementData::setTerminalLED | ( | bool | led | ) |
ElementData::setTerminalLED Override the terminal led by led
.
led |
void ElementData::setTerminalType | ( | ElementData::TerminalType | t_type | ) |
ElementData::setTerminalType Override the terminal type by t_type
.
t_type |
|
static |
|
static |
|
static |
|
static |
ElementData::TerminalFunction ElementData::terminalFunction | ( | ) | const |
ElementData::terminalFunction.
|
static |
|
static |
bool ElementData::terminalLed | ( | ) | const |
bool ElementData::terminalPropertiesIsOverrided | ( | ) | const |
ElementData::terminalPropertiesIsOverrided.
ElementData::TerminalType ElementData::terminalType | ( | ) | const |
|
static |
|
static |
|
overridevirtual |
toSettings Save properties to setting file.
settings | : is use for prefix a word before the name of each parameter |
QString |
Implements PropertiesInterface.
|
overridevirtual |
toXml Save properties to xml element
xml_document |
Implements PropertiesInterface.
|
static |
|
static |
|
static |
QString ElementData::typeToString | ( | ) | const |
|
static |
int ElementData::m_contact_count = 1 |
QString ElementData::m_drawing_information |
DiagramContext ElementData::m_informations |
ElementData::MasterType ElementData::m_master_type = ElementData::Coil |
NamesList ElementData::m_names_list |
|
private |
|
private |
|
private |
ElementData::SlaveState ElementData::m_slave_state = ElementData::NO |
ElementData::SlaveType ElementData::m_slave_type = ElementData::SSimple |
ElementData::TerminalFunction ElementData::m_terminal_function = ElementData::TFGeneric |
|
private |
|
private |
|
private |
ElementData::TerminalType ElementData::m_terminal_type = ElementData::TTGeneric |
|
private |
ElementData::Type ElementData::m_type = ElementData::Simple |