QElectroTech  0.70
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
BorderProperties Class Reference

#include <borderproperties.h>

Public Member Functions

 BorderProperties ()
 
virtual ~BorderProperties ()
 
bool operator== (const BorderProperties &)
 
bool operator!= (const BorderProperties &)
 
void toXml (QDomElement &) const
 
void fromXml (QDomElement &)
 
void toSettings (QSettings &, const QString &=QString()) const
 
void fromSettings (QSettings &, const QString &=QString())
 

Static Public Member Functions

static BorderProperties defaultProperties ()
 BorderProperties::defaultProperties. More...
 

Public Attributes

int columns_count
 Columns count. More...
 
qreal columns_width
 Columns width. More...
 
qreal columns_header_height
 Column headers height. More...
 
bool display_columns
 Whether to display column headers. More...
 
int rows_count
 Rows count. More...
 
qreal rows_height
 Rows height. More...
 
qreal rows_header_width
 Row headers width. More...
 
bool display_rows
 Whether to display row headers. More...
 

Detailed Description

This class is a container for dimensions and display properties of a diagram.

Definition at line 26 of file borderproperties.h.

Constructor & Destructor Documentation

◆ BorderProperties()

BorderProperties::BorderProperties ( )

Constructeur. Initialise un objet BorderProperties avec les proprietes par defaut suivantes : 17 colonnes affichees de 60.0 px de large pour 20.0px de haut 8 lignes affichees de 80.0 px de haut pour 20.0px de large

Definition at line 26 of file borderproperties.cpp.

◆ ~BorderProperties()

BorderProperties::~BorderProperties ( )
virtual

Destructeur

Definition at line 41 of file borderproperties.cpp.

Member Function Documentation

◆ defaultProperties()

BorderProperties BorderProperties::defaultProperties ( )
static

BorderProperties::defaultProperties.

Returns
the default properties stored in the setting file

Definition at line 128 of file borderproperties.cpp.

References fromSettings().

Referenced by NewDiagramPage::NewDiagramPage(), and QETProject::readDefaultPropertiesXml().

◆ fromSettings()

void BorderProperties::fromSettings ( QSettings &  settings,
const QString &  prefix = QString() 
)

Importe les dimensions depuis une configuration.

Parameters
settingsParametres a lire
prefixprefixe a ajouter devant les noms des parametres

Definition at line 114 of file borderproperties.cpp.

References columns_count, columns_width, display_columns, display_rows, rows_count, and rows_height.

Referenced by defaultProperties().

◆ fromXml()

void BorderProperties::fromXml ( QDomElement &  e)

Importe les dimensions a partir des attributs XML de l'element e

Parameters
eElement XML dont les attributs seront lus

Definition at line 86 of file borderproperties.cpp.

References columns_count, columns_width, display_columns, display_rows, rows_count, and rows_height.

Referenced by QETProject::readDefaultPropertiesXml().

◆ operator!=()

bool BorderProperties::operator!= ( const BorderProperties bp)
Parameters
bpautre conteneur BorderProperties
Returns
false si bp et ce conteneur sont identiques, true sinon

Definition at line 65 of file borderproperties.cpp.

◆ operator==()

bool BorderProperties::operator== ( const BorderProperties bp)
Parameters
bpautre conteneur BorderProperties
Returns
true si ip et ce conteneur sont identiques, false sinon

Definition at line 48 of file borderproperties.cpp.

References columns_count, columns_header_height, columns_width, display_columns, display_rows, rows_count, rows_header_width, and rows_height.

◆ toSettings()

void BorderProperties::toSettings ( QSettings &  settings,
const QString &  prefix = QString() 
) const

Exporte les dimensions dans une configuration.

Parameters
settingsParametres a ecrire
prefixprefixe a ajouter devant les noms des parametres

Definition at line 100 of file borderproperties.cpp.

References columns_count, columns_width, display_columns, display_rows, rows_count, and rows_height.

◆ toXml()

void BorderProperties::toXml ( QDomElement &  e) const

Exporte les dimensions sous formes d'attributs XML ajoutes a l'element e.

Parameters
eElement XML auquel seront ajoutes des attributs

Definition at line 73 of file borderproperties.cpp.

References columns_count, columns_width, display_columns, display_rows, rows_count, and rows_height.

Referenced by QETProject::writeDefaultPropertiesXml().

Member Data Documentation

◆ columns_count

int BorderProperties::columns_count

◆ columns_header_height

qreal BorderProperties::columns_header_height

Column headers height.

Definition at line 45 of file borderproperties.h.

Referenced by BorderTitleBlock::exportBorder(), BorderTitleBlock::importBorder(), and operator==().

◆ columns_width

qreal BorderProperties::columns_width

◆ display_columns

bool BorderProperties::display_columns

◆ display_rows

bool BorderProperties::display_rows

◆ rows_count

int BorderProperties::rows_count

◆ rows_header_width

qreal BorderProperties::rows_header_width

Row headers width.

Definition at line 50 of file borderproperties.h.

Referenced by BorderTitleBlock::exportBorder(), BorderTitleBlock::importBorder(), and operator==().

◆ rows_height

qreal BorderProperties::rows_height

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