QElectroTech  0.8-dev
borderproperties.h
Go to the documentation of this file.
1 /*
2  Copyright 2006-2020 The QElectroTech Team
3  This file is part of QElectroTech.
4 
5  QElectroTech is free software: you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation, either version 2 of the License, or
8  (at your option) any later version.
9 
10  QElectroTech is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
17 */
18 #ifndef BORDER_PROPERTIES_H
19 #define BORDER_PROPERTIES_H
20 #include <QtCore>
21 #include <QtXml>
22 
30  public:
31  // constructor, destructor, operators
33  virtual ~BorderProperties();
34 
35  bool operator==(const BorderProperties &);
36  bool operator!=(const BorderProperties &);
37 
38  void toXml(QDomElement &) const;
39  void fromXml(QDomElement &);
40  void toSettings(QSettings &, const QString & = QString()) const;
41  void fromSettings(QSettings &, const QString & = QString());
42 
44 
45  // attributes
47  qreal columns_width;
50 
51  int rows_count;
52  qreal rows_height;
54  bool display_rows;
55 };
56 #endif
BorderProperties::rows_count
int rows_count
Rows count.
Definition: borderproperties.h:51
BorderProperties
The BorderProperties class This class is a container for dimensions and display properties of a diagr...
Definition: borderproperties.h:29
BorderProperties::rows_header_width
qreal rows_header_width
Row headers width.
Definition: borderproperties.h:53
BorderProperties::BorderProperties
BorderProperties()
BorderProperties::BorderProperties constructor Initializes a BorderProperties object with default pro...
Definition: borderproperties.cpp:35
BorderProperties::~BorderProperties
virtual ~BorderProperties()
BorderProperties::~BorderProperties destructor.
Definition: borderproperties.cpp:51
BorderProperties::display_rows
bool display_rows
Whether to display row headers.
Definition: borderproperties.h:54
borderproperties.h
BorderProperties::rows_height
qreal rows_height
Rows height.
Definition: borderproperties.h:52
BorderProperties::toSettings
void toSettings(QSettings &, const QString &=QString()) const
BorderProperties::toSettings Export dimensions in a QSettings object.
Definition: borderproperties.cpp:137
BorderProperties::columns_header_height
qreal columns_header_height
Column headers height.
Definition: borderproperties.h:48
BorderProperties::display_columns
bool display_columns
Whether to display column headers.
Definition: borderproperties.h:49
BorderProperties::toXml
void toXml(QDomElement &) const
BorderProperties::toXml Exports dimensions as XML attributes added to element e.
Definition: borderproperties.cpp:98
BorderProperties::fromSettings
void fromSettings(QSettings &, const QString &=QString())
BorderProperties::fromSettings Import dimensions from a QSettings object.
Definition: borderproperties.cpp:155
BorderProperties::operator==
bool operator==(const BorderProperties &)
BorderProperties::operator ==.
Definition: borderproperties.cpp:62
BorderProperties::defaultProperties
static BorderProperties defaultProperties()
BorderProperties::defaultProperties.
Definition: borderproperties.cpp:169
BorderProperties::fromXml
void fromXml(QDomElement &)
BorderProperties::fromXml Import dimensions from XML attributes of element e.
Definition: borderproperties.cpp:116
BorderProperties::columns_count
int columns_count
Columns count.
Definition: borderproperties.h:46
BorderProperties::columns_width
qreal columns_width
Columns width.
Definition: borderproperties.h:47
BorderProperties::operator!=
bool operator!=(const BorderProperties &)
BorderProperties::operator !=.
Definition: borderproperties.cpp:85