QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
terminalstripdata.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 TERMINALSTRIPDATA_H
19#define TERMINALSTRIPDATA_H
20
21#include "../properties/propertiesinterface.h"
22
23#include <QUuid>
24
26{
27 friend class TerminalStrip;
28 friend class TerminalStripEditor;
29
30 public:
33
34 void toSettings(QSettings &/*settings*/, const QString = QString()) const override {}
35 void fromSettings (const QSettings &/*settings*/, const QString = QString()) override {}
36
37 QDomElement toXml (QDomDocument &xml_document) const override;
38 bool fromXml (const QDomElement &xml_element) override;
39
40 static QString xmlTagName() {return QStringLiteral("terminal_strip_data");}
41
43
44 private :
45 static QDomElement infoToXml(QDomDocument &xml_doc, const QString &name, const QString &value);
46
47 QString m_installation = QStringLiteral("="),
48 m_location = QStringLiteral("+"),
52 QUuid m_uuid = QUuid::createUuid();
53
54};
55
56#endif // TERMINALSTRIPDATA_H
The PropertiesInterface class This class is an interface for have common way to use properties in QEl...
Definition propertiesinterface.h:31
Definition terminalstripdata.h:26
TerminalStripData()
Definition terminalstripdata.cpp:22
TerminalStripData & operator=(const TerminalStripData &other)
Definition terminalstripdata.cpp:90
QString m_comment
Definition terminalstripdata.h:50
static QDomElement infoToXml(QDomDocument &xml_doc, const QString &name, const QString &value)
Definition terminalstripdata.cpp:102
QString m_description
Definition terminalstripdata.h:51
static QString xmlTagName()
Definition terminalstripdata.h:40
QDomElement toXml(QDomDocument &xml_document) const override
toXml Save properties to xml element
Definition terminalstripdata.cpp:31
void toSettings(QSettings &, const QString=QString()) const override
toSettings Save properties to setting file.
Definition terminalstripdata.h:34
QString m_name
Definition terminalstripdata.h:49
void fromSettings(const QSettings &, const QString=QString()) override
fromSettings load properties to setting file.
Definition terminalstripdata.h:35
QString m_location
Definition terminalstripdata.h:48
bool fromXml(const QDomElement &xml_element) override
fromXml load properties to xml element
Definition terminalstripdata.cpp:59
QString m_installation
Definition terminalstripdata.h:47
QUuid m_uuid
Definition terminalstripdata.h:52
The TerminalStripEditor class Main dialog used to edit terminal strip of a project.
Definition terminalstripeditor.h:38
The TerminalStrip class This class hold all the datas and configurations of a terminal strip (but the...
Definition terminalstrip.h:45