QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
titleblockproperties.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_PROPERTIES_H
19#define TITLEBLOCK_PROPERTIES_H
20#include <QtXml>
21#include "diagramcontext.h"
22#include "qet.h"
23
30 public:
32 virtual ~TitleBlockProperties();
38
39 bool operator==(const TitleBlockProperties &);
40 bool operator!=(const TitleBlockProperties &);
41
42 void toXml(QDomElement &) const;
43 void fromXml(const QDomElement &);
44 void toSettings(QSettings &, const QString & = QString()) const;
45 void fromSettings(QSettings &, const QString & = QString());
46
48
50
51 QDate finalDate() const ;
52
53 // attributes
54 QString title;
55 QString author;
56 QDate date;
57 QString filename;
58 QString plant;
59 QString locmach;
60 QString indexrev;
61 QString version;
62 QString folio;
65 QString template_name;
67 Qt::Edge display_at;
69
70 private:
71 QString exportDate() const;
72 void setDateFromString(const QString &);
73};
74#endif
Definition diagramcontext.h:57
Definition titleblockproperties.h:29
DateManagement
Lists the various ways to handle the date.
Definition titleblockproperties.h:34
@ CurrentDate
use the current date
Definition titleblockproperties.h:36
@ UseDateValue
use the date attribute
Definition titleblockproperties.h:35
QDate date
Date (displayed by the default template)
Definition titleblockproperties.h:56
bool operator==(const TitleBlockProperties &)
Definition titleblockproperties.cpp:45
void toXml(QDomElement &) const
Definition titleblockproperties.cpp:77
DiagramContext context
Container for the additional, user-defined fields.
Definition titleblockproperties.h:66
QET::QetCollection collection
Specify the location of the title block.
Definition titleblockproperties.h:68
QString indexrev
Revision Index (displayed by the default template)
Definition titleblockproperties.h:60
void fromSettings(QSettings &, const QString &=QString())
Definition titleblockproperties.cpp:164
QString auto_page_num
Definition titleblockproperties.h:63
static TitleBlockProperties defaultProperties()
TitleBlockProperties::defaultProperties Return the default properties stored in the setting file.
Definition titleblockproperties.cpp:185
TitleBlockProperties()
Definition titleblockproperties.cpp:26
void fromXml(const QDomElement &)
Definition titleblockproperties.cpp:107
QDate finalDate() const
Definition titleblockproperties.cpp:198
virtual ~TitleBlockProperties()
Definition titleblockproperties.cpp:37
QString locmach
Location(displayed by the default template)
Definition titleblockproperties.h:59
QString author
Author of the diagram/folio (displayed by the default template)
Definition titleblockproperties.h:55
void setDateFromString(const QString &)
Definition titleblockproperties.cpp:231
bool operator!=(const TitleBlockProperties &)
Definition titleblockproperties.cpp:68
QString filename
Filename (displayed by the default template)
Definition titleblockproperties.h:57
QString plant
Plant (displayed by the default template)
Definition titleblockproperties.h:58
Qt::Edge display_at
Edge to display the titleblock.
Definition titleblockproperties.h:67
QString version
Version (displayed by the default template)
Definition titleblockproperties.h:61
QString template_name
Name of the template used to render the title block - an empty string means "the default template pro...
Definition titleblockproperties.h:65
DateManagement useDate
Wheter to use the date attribute.
Definition titleblockproperties.h:64
void toSettings(QSettings &, const QString &=QString()) const
TitleBlockProperties::toSettings Export the TitleBlockProperties into a QSettings.
Definition titleblockproperties.cpp:141
QString exportDate() const
Definition titleblockproperties.cpp:214
QString title
Folio title (displayed by the default template)
Definition titleblockproperties.h:54
QString folio
Folio information (displayed by the default template)
Definition titleblockproperties.h:62
void setAutoPageNum(QString autonum)
Definition titleblockproperties.h:47
QetCollection
Enum used to specify the origin of a collection of thing (title block, element etc....
Definition qet.h:148
Definition assignvariables.cpp:31