mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
rebase XMLProperties_New (c0d9bf9) to master
This commit is contained in:
committed by
Martin Marmsoler
parent
73b394527d
commit
f3097fc537
@@ -20,13 +20,15 @@
|
||||
#include <QtCore>
|
||||
#include <QtXml>
|
||||
|
||||
#include "propertiesinterface.h"
|
||||
|
||||
/**
|
||||
@brief The BorderProperties class
|
||||
This class is a container for dimensions and display properties of a
|
||||
diagram.
|
||||
@remark Attributes are public
|
||||
*/
|
||||
class BorderProperties {
|
||||
class BorderProperties : public PropertiesInterface {
|
||||
public:
|
||||
// constructor, destructor, operators
|
||||
BorderProperties();
|
||||
@@ -35,22 +37,23 @@ class BorderProperties {
|
||||
bool operator==(const BorderProperties &);
|
||||
bool operator!=(const BorderProperties &);
|
||||
|
||||
void toXml(QDomElement &) const;
|
||||
void fromXml(QDomElement &);
|
||||
QDomElement toXml(QDomDocument &dom_doc) const override;
|
||||
bool fromXml(const QDomElement &) override;
|
||||
static bool valideXml(QDomElement& e);
|
||||
void toSettings(QSettings &, const QString & = QString()) const;
|
||||
void fromSettings(QSettings &, const QString & = QString());
|
||||
|
||||
static BorderProperties defaultProperties();
|
||||
|
||||
// attributes
|
||||
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
|
||||
int columns_count{17}; ///< Columns count
|
||||
qreal columns_width{60.0}; ///< Columns width
|
||||
qreal columns_header_height{20.0}; ///< Column headers height
|
||||
bool display_columns{true}; ///< Whether to display column headers
|
||||
|
||||
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
|
||||
int rows_count{8}; ///< Rows count
|
||||
qreal rows_height{80.0}; ///< Rows height
|
||||
qreal rows_header_width{20.0}; ///< Row headers width
|
||||
bool display_rows{true}; ///< Whether to display row headers
|
||||
};
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user