QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
templatelocation.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 TITLEBLOCK_SLASH_TEMPLATE_LOCATION_H
19#define TITLEBLOCK_SLASH_TEMPLATE_LOCATION_H
20#include <QtCore>
21#include <QDomElement>
22class QETProject;
25
30 // constructor, destructor
31 public:
32 TitleBlockTemplateLocation(const QString & = QString(),
35
36 // static methods
37 public:
39
40 // methods
41 public:
44 QString name() const;
45 void setName(const QString &);
46 bool isValid() const;
47 void fromString(const QString &);
48 QString toString() const;
50 QString protocol() const;
51 QDomElement getTemplateXmlDescription() const;
53 bool isReadOnly() const;
54 bool operator==(const TitleBlockTemplateLocation &) const;
55
56 // attributes
57 private:
60 QString name_;
61
62 public:
63 static int MetaTypeId;
64};
67#endif
Definition qetproject.h:62
The TitleBlockTemplate class This class represents an title block template for an electric diagram....
Definition titleblocktemplate.h:37
Definition templatelocation.h:29
QETProject * parentProject() const
Definition templatelocation.cpp:138
TitleBlockTemplate * getTemplate() const
Definition templatelocation.cpp:172
TitleBlockTemplateLocation locationFromString(const QString &)
Definition templatelocation.cpp:51
void setParentCollection(TitleBlockTemplatesCollection *)
TitleBlockTemplateLocation::setParentCollection.
Definition templatelocation.cpp:70
bool isReadOnly() const
Definition templatelocation.cpp:182
QDomElement getTemplateXmlDescription() const
Definition templatelocation.cpp:162
QString protocol() const
Definition templatelocation.cpp:150
static int MetaTypeId
Id of the corresponding Qt meta type.
Definition templatelocation.h:63
bool isValid() const
Definition templatelocation.cpp:93
QString toString() const
Definition templatelocation.cpp:129
void setName(const QString &)
Definition templatelocation.cpp:86
void fromString(const QString &)
Definition templatelocation.cpp:101
bool operator==(const TitleBlockTemplateLocation &) const
Definition templatelocation.cpp:192
QString name() const
Definition templatelocation.cpp:78
virtual ~TitleBlockTemplateLocation()
Definition templatelocation.cpp:44
TitleBlockTemplatesCollection * collection_
Collection the template belongs to.
Definition templatelocation.h:59
TitleBlockTemplatesCollection * parentCollection() const
Definition templatelocation.cpp:61
QString name_
Name of the template.
Definition templatelocation.h:60
Definition templatescollection.h:35
Q_DECLARE_METATYPE(NamesList)
uint qHash(const TitleBlockTemplateLocation &)
Definition templatelocation.cpp:202