QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
TerminalStripItemXml Class Reference

#include <terminalstripitemxml.h>

Collaboration diagram for TerminalStripItemXml:
Collaboration graph

Static Public Member Functions

static QDomElement toXml (const QVector< TerminalStripItem * > &items, QDomDocument &document)
 TerminalStripItemXml::toXml Save the vector of items as child of an xml element with tag "terminal_strip_tems".
 
static QVector< TerminalStripItem * > fromXml (Diagram *diagram, const QDomElement &xml_elmt)
 TerminalStripItemXml::fromXml Load items stored in xml_elmt into diagram xml_elmt must have a child element with tag name "terminal_strip_tems".
 
static QDomElement toXml (TerminalStripItem *item, QDomDocument &document)
 TerminalStripItemXml::toXml Save item to an xml element with tag "terminal_strip_item".
 
static bool fromXml (TerminalStripItem *item, QETProject *project, const QDomElement &xml_elmt)
 TerminalStripItemXml::fromXml Restor the state of a terminal strip item from xml_elmt. The xml_elmt tag name must be "terminal_strip_item".
 

Member Function Documentation

◆ fromXml() [1/2]

QVector< TerminalStripItem * > TerminalStripItemXml::fromXml ( Diagram diagram,
const QDomElement &  xml_elmt 
)
static

TerminalStripItemXml::fromXml Load items stored in xml_elmt into diagram xml_elmt must have a child element with tag name "terminal_strip_tems".

Parameters
diagram
xml_elmt
Returns
a vector of added terminal strip item
Here is the call graph for this function:
Here is the caller graph for this function:

◆ fromXml() [2/2]

bool TerminalStripItemXml::fromXml ( TerminalStripItem item,
QETProject project,
const QDomElement &  xml_elmt 
)
static

TerminalStripItemXml::fromXml Restor the state of a terminal strip item from xml_elmt. The xml_elmt tag name must be "terminal_strip_item".

Parameters
item
project
xml_elmt
Returns
Here is the call graph for this function:

◆ toXml() [1/2]

QDomElement TerminalStripItemXml::toXml ( const QVector< TerminalStripItem * > &  items,
QDomDocument &  document 
)
static

TerminalStripItemXml::toXml Save the vector of items as child of an xml element with tag "terminal_strip_tems".

Parameters
items: items to save in xml
document: parent document used to create the QDomElement returned by this function.
Returns
QDomElement where are saved items.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ toXml() [2/2]

QDomElement TerminalStripItemXml::toXml ( TerminalStripItem item,
QDomDocument &  document 
)
static

TerminalStripItemXml::toXml Save item to an xml element with tag "terminal_strip_item".

Parameters
item: item to save in xml
document: parent document used to create the QDomElement returned by this function.
Returns
QDomElement where are saved item, note that the returned QDomElement can be null.
Here is the call graph for this function:

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