QElectroTech
0.70
|
#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... | |
This class is a container for dimensions and display properties of a diagram.
Definition at line 26 of file borderproperties.h.
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.
|
virtual |
Destructeur
Definition at line 41 of file borderproperties.cpp.
|
static |
BorderProperties::defaultProperties.
Definition at line 128 of file borderproperties.cpp.
References fromSettings().
Referenced by NewDiagramPage::NewDiagramPage(), and QETProject::readDefaultPropertiesXml().
void BorderProperties::fromSettings | ( | QSettings & | settings, |
const QString & | prefix = QString() |
||
) |
Importe les dimensions depuis une configuration.
settings | Parametres a lire |
prefix | prefixe 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().
void BorderProperties::fromXml | ( | QDomElement & | e | ) |
Importe les dimensions a partir des attributs XML de l'element e
e | Element 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().
bool BorderProperties::operator!= | ( | const BorderProperties & | bp | ) |
bp | autre conteneur BorderProperties |
Definition at line 65 of file borderproperties.cpp.
bool BorderProperties::operator== | ( | const BorderProperties & | bp | ) |
bp | autre conteneur BorderProperties |
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.
void BorderProperties::toSettings | ( | QSettings & | settings, |
const QString & | prefix = QString() |
||
) | const |
Exporte les dimensions dans une configuration.
settings | Parametres a ecrire |
prefix | prefixe 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.
void BorderProperties::toXml | ( | QDomElement & | e | ) | const |
Exporte les dimensions sous formes d'attributs XML ajoutes a l'element e.
e | Element 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().
int BorderProperties::columns_count |
Columns count.
Definition at line 43 of file borderproperties.h.
Referenced by BorderTitleBlock::exportBorder(), fromSettings(), fromXml(), BorderTitleBlock::importBorder(), operator==(), BorderPropertiesWidget::properties(), QETDiagramEditor::rowColumnGroupTriggered(), BorderPropertiesWidget::setProperties(), toSettings(), and toXml().
qreal BorderProperties::columns_header_height |
Column headers height.
Definition at line 45 of file borderproperties.h.
Referenced by BorderTitleBlock::exportBorder(), BorderTitleBlock::importBorder(), and operator==().
qreal BorderProperties::columns_width |
Columns width.
Definition at line 44 of file borderproperties.h.
Referenced by BorderTitleBlock::exportBorder(), fromSettings(), fromXml(), BorderTitleBlock::importBorder(), operator==(), BorderPropertiesWidget::properties(), BorderPropertiesWidget::setProperties(), toSettings(), and toXml().
bool BorderProperties::display_columns |
Whether to display column headers.
Definition at line 46 of file borderproperties.h.
Referenced by BorderTitleBlock::exportBorder(), fromSettings(), fromXml(), BorderTitleBlock::importBorder(), operator==(), BorderPropertiesWidget::properties(), BorderPropertiesWidget::setProperties(), toSettings(), and toXml().
bool BorderProperties::display_rows |
Whether to display row headers.
Definition at line 51 of file borderproperties.h.
Referenced by BorderTitleBlock::exportBorder(), fromSettings(), fromXml(), BorderTitleBlock::importBorder(), operator==(), BorderPropertiesWidget::properties(), BorderPropertiesWidget::setProperties(), toSettings(), and toXml().
int BorderProperties::rows_count |
Rows count.
Definition at line 48 of file borderproperties.h.
Referenced by BorderTitleBlock::exportBorder(), fromSettings(), fromXml(), BorderTitleBlock::importBorder(), operator==(), BorderPropertiesWidget::properties(), QETDiagramEditor::rowColumnGroupTriggered(), BorderPropertiesWidget::setProperties(), toSettings(), and toXml().
qreal BorderProperties::rows_header_width |
Row headers width.
Definition at line 50 of file borderproperties.h.
Referenced by BorderTitleBlock::exportBorder(), BorderTitleBlock::importBorder(), and operator==().
qreal BorderProperties::rows_height |
Rows height.
Definition at line 49 of file borderproperties.h.
Referenced by BorderTitleBlock::exportBorder(), fromSettings(), fromXml(), BorderTitleBlock::importBorder(), operator==(), BorderPropertiesWidget::properties(), BorderPropertiesWidget::setProperties(), toSettings(), and toXml().