|
QElectroTech
0.70
|
#include <conductorproperties.h>
Public Member Functions | |
| SingleLineProperties () | |
| virtual | ~SingleLineProperties () |
| Destructeur. More... | |
| void | setPhasesCount (int) |
| unsigned short int | phasesCount () |
| bool | isPen () const |
| void | draw (QPainter *, QET::ConductorSegmentType, const QRectF &) |
| void | toXml (QDomElement &) const |
| void | fromXml (QDomElement &) |
| void | toSettings (QSettings &, const QString &=QString()) const |
| void | fromSettings (QSettings &, const QString &=QString()) |
| int | operator== (const SingleLineProperties &) const |
| int | operator!= (const SingleLineProperties &) const |
Public Attributes | |
| bool | hasGround |
| Whether the singleline conductor should display the ground symbol. More... | |
| bool | hasNeutral |
| Whether the singleline conductor should display the neutral symbol. More... | |
| bool | is_pen |
| Protective Earth Neutral: visually merge neutral and ground. More... | |
Private Member Functions | |
| void | drawGround (QPainter *, QET::ConductorSegmentType, QPointF, qreal) |
| void | drawNeutral (QPainter *, QET::ConductorSegmentType, QPointF, qreal) |
| void | drawPen (QPainter *, QET::ConductorSegmentType, QPointF, qreal) |
Private Attributes | |
| unsigned short int | phases |
This class represents the properties of a singleline conductor.
Definition at line 29 of file conductorproperties.h.
| SingleLineProperties::SingleLineProperties | ( | ) |
Constructeur par defaut
Definition at line 25 of file conductorproperties.cpp.
|
virtual |
Destructeur.
Definition at line 34 of file conductorproperties.cpp.
| void SingleLineProperties::draw | ( | QPainter * | painter, |
| QET::ConductorSegmentType | direction, | ||
| const QRectF & | rect | ||
| ) |
Dessine les symboles propres a un conducteur unifilaire
| painter | QPainter a utiliser pour dessiner les symboles |
| direction | direction du segment sur lequel les symboles apparaitront |
| rect | rectangle englobant le dessin ; utilise pour specifier a la fois la position et la taille du dessin |
Definition at line 65 of file conductorproperties.cpp.
References drawGround(), drawNeutral(), drawPen(), hasGround, hasNeutral, QET::Horizontal, isPen(), and phases.
Referenced by Conductor::paint(), ReplaceConductorDialog::updatePreview(), and ConductorPropertiesWidget::updatePreview().
|
private |
Dessine le segment correspondant au symbole de la terre sur un conducteur unifilaire
| painter | QPainter a utiliser pour dessiner le segment |
| direction | direction du segment sur lequel le symbole apparaitra |
| center | centre du segment |
| size | taille du segment |
Definition at line 119 of file conductorproperties.cpp.
References QET::Horizontal.
|
private |
Dessine le cercle correspondant au symbole du neutre sur un conducteur unifilaire
| painter | QPainter a utiliser pour dessiner le segment |
| direction | direction du segment sur lequel le symbole apparaitra |
| center | centre du cercle |
| size | diametre du cercle |
Definition at line 151 of file conductorproperties.cpp.
|
private |
Draw the PEN (Protective Earth Neutral) symbol using painter at position center, using a size hint of size.
| direction | Indicate the direction of the underlying conductor segment |
Definition at line 175 of file conductorproperties.cpp.
References drawGround(), drawNeutral(), and QET::Horizontal.
Referenced by draw().
| void SingleLineProperties::fromSettings | ( | QSettings & | settings, |
| const QString & | prefix = QString() |
||
| ) |
| settings | Parametres a lire |
| prefix | prefix a ajouter devant les noms des parametres |
Definition at line 764 of file conductorproperties.cpp.
References hasGround, hasNeutral, is_pen, and phases.
Referenced by ConductorProperties::fromSettings().
| void SingleLineProperties::fromXml | ( | QDomElement & | e | ) |
Importe les parametres du conducteur unifilaire a partir des attributs XML de l'element e
| e | Element XML dont les attributs seront lus |
Definition at line 211 of file conductorproperties.cpp.
References hasGround, hasNeutral, is_pen, and setPhasesCount().
Referenced by ConductorProperties::fromXml().
| bool SingleLineProperties::isPen | ( | ) | const |
Definition at line 55 of file conductorproperties.cpp.
References hasGround, hasNeutral, and is_pen.
Referenced by draw(), ReplaceConductorDialog::setProperties(), ConductorPropertiesWidget::setProperties(), and toXml().
| int SingleLineProperties::operator!= | ( | const SingleLineProperties & | other | ) | const |
| other | l'autre ensemble de proprietes avec lequel il faut effectuer la comparaison |
Definition at line 745 of file conductorproperties.cpp.
| int SingleLineProperties::operator== | ( | const SingleLineProperties & | other | ) | const |
| other | l'autre ensemble de proprietes avec lequel il faut effectuer la comparaison |
Definition at line 732 of file conductorproperties.cpp.
References hasGround, hasNeutral, is_pen, and phases.
| unsigned short int SingleLineProperties::phasesCount | ( | ) |
Definition at line 46 of file conductorproperties.cpp.
References phases.
Referenced by ConductorPropertiesWidget::setProperties(), and ReplaceConductorDialog::setProperties().
| void SingleLineProperties::setPhasesCount | ( | int | n | ) |
Definit le nombre de phases (0, 1, 2, ou 3)
| n | Nombre de phases |
Definition at line 41 of file conductorproperties.cpp.
References phases.
Referenced by fromXml(), ReplaceConductorDialog::properties(), and ConductorPropertiesWidget::properties().
| void SingleLineProperties::toSettings | ( | QSettings & | settings, |
| const QString & | prefix = QString() |
||
| ) | const |
| settings | Parametres a ecrire |
| prefix | prefix a ajouter devant les noms des parametres |
Definition at line 753 of file conductorproperties.cpp.
References hasGround, hasNeutral, is_pen, and phases.
Referenced by ConductorProperties::toSettings().
| void SingleLineProperties::toXml | ( | QDomElement & | e | ) | const |
Exporte les parametres du conducteur unifilaire sous formes d'attributs XML ajoutes a l'element e.
| e | Element XML auquel seront ajoutes des attributs |
Definition at line 199 of file conductorproperties.cpp.
References hasGround, hasNeutral, isPen(), and phases.
Referenced by ConductorProperties::toXml().
| bool SingleLineProperties::hasGround |
Whether the singleline conductor should display the ground symbol.
Definition at line 44 of file conductorproperties.h.
Referenced by draw(), fromSettings(), fromXml(), isPen(), operator==(), ConductorPropertiesWidget::properties(), ReplaceConductorDialog::properties(), ReplaceConductorDialog::setProperties(), ConductorPropertiesWidget::setProperties(), toSettings(), and toXml().
| bool SingleLineProperties::hasNeutral |
Whether the singleline conductor should display the neutral symbol.
Definition at line 46 of file conductorproperties.h.
Referenced by draw(), fromSettings(), fromXml(), isPen(), operator==(), ConductorPropertiesWidget::properties(), ReplaceConductorDialog::properties(), ReplaceConductorDialog::setProperties(), ConductorPropertiesWidget::setProperties(), toSettings(), and toXml().
| bool SingleLineProperties::is_pen |
Protective Earth Neutral: visually merge neutral and ground.
Definition at line 48 of file conductorproperties.h.
Referenced by fromSettings(), fromXml(), isPen(), operator==(), ConductorPropertiesWidget::properties(), ReplaceConductorDialog::properties(), and toSettings().
|
private |
Definition at line 54 of file conductorproperties.h.
Referenced by draw(), fromSettings(), operator==(), phasesCount(), setPhasesCount(), toSettings(), and toXml().
1.8.15