QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
borderproperties.h
Go to the documentation of this file.
1/*
2 Copyright 2006-2024 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
50
55};
56#endif
The BorderProperties class This class is a container for dimensions and display properties of a diagr...
Definition borderproperties.h:29
void toXml(QDomElement &) const
BorderProperties::toXml Exports dimensions as XML attributes added to element e.
Definition borderproperties.cpp:99
bool display_columns
Whether to display column headers.
Definition borderproperties.h:49
bool operator==(const BorderProperties &)
BorderProperties::operator ==.
Definition borderproperties.cpp:63
qreal columns_header_height
Column headers height.
Definition borderproperties.h:48
qreal columns_width
Columns width.
Definition borderproperties.h:47
int rows_count
Rows count.
Definition borderproperties.h:51
qreal rows_header_width
Row headers width.
Definition borderproperties.h:53
int columns_count
Columns count.
Definition borderproperties.h:46
void fromSettings(QSettings &, const QString &=QString())
BorderProperties::fromSettings Import dimensions from a QSettings object.
Definition borderproperties.cpp:158
virtual ~BorderProperties()
BorderProperties::~BorderProperties destructor.
Definition borderproperties.cpp:51
qreal rows_height
Rows height.
Definition borderproperties.h:52
void toSettings(QSettings &, const QString &=QString()) const
BorderProperties::toSettings Export dimensions in a QSettings object.
Definition borderproperties.cpp:139
BorderProperties()
BorderProperties::BorderProperties constructor Initializes a BorderProperties object with default pro...
Definition borderproperties.cpp:35
bool operator!=(const BorderProperties &)
BorderProperties::operator !=.
Definition borderproperties.cpp:86
bool display_rows
Whether to display row headers.
Definition borderproperties.h:54
static BorderProperties defaultProperties()
BorderProperties::defaultProperties.
Definition borderproperties.cpp:172
void fromXml(QDomElement &)
BorderProperties::fromXml Import dimensions from XML attributes of element e.
Definition borderproperties.cpp:118