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

The ConductorProperties class This class represents the functional properties of a particular conductor, i.e. properties other than path and terminals. More...

#include <conductorproperties.h>

Collaboration diagram for ConductorProperties:
Collaboration graph

Public Types

enum  ConductorType { Single , Multi }
 The ConductorType enum Represents the kind of a particular conductor: Single: singleline symbols, no text input Multi: text input, no symbol. More...
 

Public Member Functions

 ConductorProperties ()
 
virtual ~ConductorProperties ()
 
void toXml (QDomElement &) const
 ConductorProperties::toXml Export conductor properties to the XML element 'e'.
 
void fromXml (QDomElement &)
 ConductorProperties::fromXml Import conductor properties from the attribute of the xml element 'e'.
 
void toSettings (QSettings &, const QString &=QString()) const
 
void fromSettings (QSettings &, const QString &=QString())
 
void applyForEqualAttributes (QList< ConductorProperties > list)
 ConductorProperties::applyForEqualAttributes Test each attribute of properties in the list separatly. For each attributes, if is equal, the attribute is apply to this.
 
bool operator== (const ConductorProperties &) const
 ConductorProperties::operator ==.
 
bool operator!= (const ConductorProperties &) const
 

Static Public Member Functions

static QString typeToString (ConductorType)
 
static ConductorProperties defaultProperties ()
 ConductorProperties::defaultProperties.
 

Public Attributes

ConductorType type
 
QColor color
 
QColor m_color_2
 
QColor text_color
 
QString text
 
QString m_function
 
QString m_tension_protocol
 
QString m_wire_color
 
QString m_wire_section
 
QString m_formula
 
QString m_bus
 
QString m_cable
 
int text_size
 
int m_dash_size = 1
 
double cond_size
 
double verti_rotate_text
 
double horiz_rotate_text
 
bool m_show_text
 
bool m_one_text_per_folio
 
bool m_bicolor = false
 
Qt::Alignment m_horizontal_alignment = Qt::AlignBottom
 
Qt::Alignment m_vertical_alignment = Qt::AlignRight
 
Qt::PenStyle style
 
SingleLineProperties singleLineProperties
 

Private Member Functions

void readStyle (const QString &)
 
QString writeStyle () const
 

Detailed Description

The ConductorProperties class This class represents the functional properties of a particular conductor, i.e. properties other than path and terminals.

Member Enumeration Documentation

◆ ConductorType

The ConductorType enum Represents the kind of a particular conductor: Single: singleline symbols, no text input Multi: text input, no symbol.

Enumerator
Single 
Multi 

Constructor & Destructor Documentation

◆ ConductorProperties()

ConductorProperties::ConductorProperties ( )

Constructeur : par defaut, les proprietes font un conducteur multifilaire noir dont le texte est "_"

◆ ~ConductorProperties()

ConductorProperties::~ConductorProperties ( )
virtual

Destructeur

Member Function Documentation

◆ applyForEqualAttributes()

void ConductorProperties::applyForEqualAttributes ( QList< ConductorProperties list)

ConductorProperties::applyForEqualAttributes Test each attribute of properties in the list separatly. For each attributes, if is equal, the attribute is apply to this.

Parameters
list
Here is the caller graph for this function:

◆ defaultProperties()

ConductorProperties ConductorProperties::defaultProperties ( )
static

ConductorProperties::defaultProperties.

Returns
the default properties stored in the setting file
Here is the call graph for this function:
Here is the caller graph for this function:

◆ fromSettings()

void ConductorProperties::fromSettings ( QSettings &  settings,
const QString &  prefix = QString() 
)
Parameters
settingsParametres a lire
prefixprefixe a ajouter devant les noms des parametres
Here is the call graph for this function:
Here is the caller graph for this function:

◆ fromXml()

void ConductorProperties::fromXml ( QDomElement &  e)

ConductorProperties::fromXml Import conductor properties from the attribute of the xml element 'e'.

Parameters
ethe xml document
Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator!=()

bool ConductorProperties::operator!= ( const ConductorProperties other) const
Parameters
otherl'autre ensemble de proprietes avec lequel il faut effectuer la comparaison
Returns
true si les deux ensembles de proprietes sont differents, false sinon

◆ operator==()

bool ConductorProperties::operator== ( const ConductorProperties other) const

ConductorProperties::operator ==.

Parameters
other
Returns
true if other == this

◆ readStyle()

void ConductorProperties::readStyle ( const QString &  style_string)
private

Applique les styles passes en parametre dans cet objet

Parameters
style_stringChaine decrivant le style du conducteur
Here is the caller graph for this function:

◆ toSettings()

void ConductorProperties::toSettings ( QSettings &  settings,
const QString &  prefix = QString() 
) const
Parameters
settingsParametres a ecrire
prefixprefixe a ajouter devant les noms des parametres
Here is the call graph for this function:

◆ toXml()

void ConductorProperties::toXml ( QDomElement &  e) const

ConductorProperties::toXml Export conductor properties to the XML element 'e'.

Parameters
ethe xml element
Here is the call graph for this function:
Here is the caller graph for this function:

◆ typeToString()

QString ConductorProperties::typeToString ( ConductorType  t)
static
Parameters
ttype du conducteur
Here is the caller graph for this function:

◆ writeStyle()

QString ConductorProperties::writeStyle ( ) const
private

Exporte le style du conducteur sous forme d'une chaine de caracteres

Returns
une chaine de caracteres decrivant le style du conducteur
Here is the caller graph for this function:

Member Data Documentation

◆ color

QColor ConductorProperties::color

◆ cond_size

double ConductorProperties::cond_size

◆ horiz_rotate_text

double ConductorProperties::horiz_rotate_text

◆ m_bicolor

bool ConductorProperties::m_bicolor = false

◆ m_bus

QString ConductorProperties::m_bus

◆ m_cable

QString ConductorProperties::m_cable

◆ m_color_2

QColor ConductorProperties::m_color_2

◆ m_dash_size

int ConductorProperties::m_dash_size = 1

◆ m_formula

QString ConductorProperties::m_formula

◆ m_function

QString ConductorProperties::m_function

◆ m_horizontal_alignment

Qt::Alignment ConductorProperties::m_horizontal_alignment = Qt::AlignBottom

◆ m_one_text_per_folio

bool ConductorProperties::m_one_text_per_folio

◆ m_show_text

bool ConductorProperties::m_show_text

◆ m_tension_protocol

QString ConductorProperties::m_tension_protocol

◆ m_vertical_alignment

Qt::Alignment ConductorProperties::m_vertical_alignment = Qt::AlignRight

◆ m_wire_color

QString ConductorProperties::m_wire_color

◆ m_wire_section

QString ConductorProperties::m_wire_section

◆ singleLineProperties

SingleLineProperties ConductorProperties::singleLineProperties

◆ style

Qt::PenStyle ConductorProperties::style

◆ text

QString ConductorProperties::text

◆ text_color

QColor ConductorProperties::text_color

◆ text_size

int ConductorProperties::text_size

◆ type

ConductorType ConductorProperties::type

◆ verti_rotate_text

double ConductorProperties::verti_rotate_text

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