2008-08-14 22:51:08 +00:00
|
|
|
/*
|
2010-01-03 16:25:37 +00:00
|
|
|
Copyright 2006-2010 Xavier Guerrin
|
2008-08-14 22:51:08 +00:00
|
|
|
This file is part of QElectroTech.
|
|
|
|
|
|
|
|
QElectroTech is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation, either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
QElectroTech is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
#ifndef BORDER_PROPERTIES_H
|
|
|
|
#define BORDER_PROPERTIES_H
|
|
|
|
#include <QtCore>
|
2009-04-03 19:30:25 +00:00
|
|
|
#include <QtXml>
|
2008-08-14 22:51:08 +00:00
|
|
|
/**
|
|
|
|
Cette classe est un conteneur pour les dimensions et proprietes d'affichage
|
|
|
|
d'un schema : affichage, nombre et dimensions des colonnes et lignes, ...
|
|
|
|
*/
|
|
|
|
class BorderProperties {
|
|
|
|
public:
|
|
|
|
// constructeur, destructeur, operateurs
|
|
|
|
BorderProperties();
|
|
|
|
virtual ~BorderProperties();
|
|
|
|
|
|
|
|
bool operator==(const BorderProperties &);
|
|
|
|
bool operator!=(const BorderProperties &);
|
|
|
|
|
2009-04-03 19:30:25 +00:00
|
|
|
void toXml(QDomElement &) const;
|
|
|
|
void fromXml(QDomElement &);
|
|
|
|
void toSettings(QSettings &, const QString & = QString()) const;
|
|
|
|
void fromSettings(QSettings &, const QString & = QString());
|
|
|
|
|
2008-08-14 22:51:08 +00:00
|
|
|
// attributs
|
|
|
|
int columns_count; ///< Nombre de colonnes
|
|
|
|
qreal columns_width; ///< Largeur des colonnes
|
|
|
|
qreal columns_header_height; ///< Hauteur des entetes des colonnes
|
|
|
|
bool display_columns; ///< Afficher ou non les entetes des colonnes
|
|
|
|
|
|
|
|
int rows_count; ///< Nombre de lignes
|
|
|
|
qreal rows_height; ///< Hauteur des lignes
|
|
|
|
qreal rows_header_width; ///< Largeur des entetes des lignes
|
|
|
|
bool display_rows; ///< Afficher ou non les entetes des lignes
|
|
|
|
};
|
|
|
|
#endif
|