2008-08-14 22:51:08 +00:00
|
|
|
/*
|
2024-03-29 10:09:48 +01:00
|
|
|
Copyright 2006-2024 The QElectroTech Team
|
2020-10-17 20:25:30 +02: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/>.
|
2008-08-14 22:51:08 +00:00
|
|
|
*/
|
|
|
|
#ifndef BORDER_PROPERTIES_H
|
|
|
|
#define BORDER_PROPERTIES_H
|
|
|
|
#include <QtCore>
|
2009-04-03 19:30:25 +00:00
|
|
|
#include <QtXml>
|
2020-07-15 22:25:35 +02:00
|
|
|
|
2008-08-14 22:51:08 +00:00
|
|
|
/**
|
2020-10-17 20:25:30 +02:00
|
|
|
@brief The BorderProperties class
|
|
|
|
This class is a container for dimensions and display properties of a
|
|
|
|
diagram.
|
|
|
|
@remark Attributes are public
|
2008-08-14 22:51:08 +00:00
|
|
|
*/
|
2021-03-11 19:52:50 +01:00
|
|
|
class BorderProperties {
|
2020-10-17 20:25:30 +02:00
|
|
|
public:
|
|
|
|
// constructor, destructor, operators
|
|
|
|
BorderProperties();
|
|
|
|
virtual ~BorderProperties();
|
|
|
|
|
|
|
|
bool operator==(const BorderProperties &);
|
|
|
|
bool operator!=(const BorderProperties &);
|
|
|
|
|
2021-03-11 19:52:50 +01:00
|
|
|
void toXml(QDomElement &) const;
|
|
|
|
void fromXml(QDomElement &);
|
|
|
|
void toSettings(QSettings &, const QString & = QString()) const;
|
|
|
|
void fromSettings(QSettings &, const QString & = QString());
|
2014-10-26 11:57:38 +00:00
|
|
|
|
2020-10-17 20:25:30 +02:00
|
|
|
static BorderProperties defaultProperties();
|
|
|
|
|
|
|
|
// attributes
|
2021-03-11 19:52:50 +01:00
|
|
|
int columns_count; ///< Columns count
|
|
|
|
qreal columns_width; ///< Columns width
|
|
|
|
qreal columns_header_height; ///< Column headers height
|
|
|
|
bool display_columns; ///< Whether to display column headers
|
2020-10-17 20:25:30 +02:00
|
|
|
|
2021-03-11 19:52:50 +01:00
|
|
|
int rows_count; ///< Rows count
|
|
|
|
qreal rows_height; ///< Rows height
|
|
|
|
qreal rows_header_width; ///< Row headers width
|
|
|
|
bool display_rows; ///< Whether to display row headers
|
2008-08-14 22:51:08 +00:00
|
|
|
};
|
|
|
|
#endif
|