18#ifndef TITLEBLOCK_SLASH_TEMPLATES_COLLECTION_H
19#define TITLEBLOCK_SLASH_TEMPLATES_COLLECTION_H
20#define TITLEBLOCKS_FILE_EXTENSION ".titleblock"
55 virtual bool isReadOnly(
const QString & = QString())
const = 0;
56 virtual QString
title()
const;
57 virtual void setTitle(
const QString &);
96 QString
title()
const override;
107 bool isReadOnly(
const QString & = QString())
const override;
108 virtual void fromXml(
const QDomElement &);
137 QString
path(
const QString & = QString())
const;
146 bool isReadOnly(
const QString & = QString())
const override;
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
Definition templatescollection.h:35
virtual QString protocol() const
Definition templatescollection.cpp:63
virtual bool isReadOnly(const QString &=QString()) const =0
QET::QetCollection m_collection
Definition templatescollection.h:75
virtual QDomElement getTemplateXmlDescription(const QString &)=0
virtual TitleBlockTemplateLocation location(const QString &=QString())=0
TitleBlockTemplatesCollection(const TitleBlockTemplatesCollection &)
virtual bool hasFilePath()=0
virtual void setTitle(const QString &)
TitleBlockTemplatesCollection::setTitle.
Definition templatescollection.cpp:55
virtual bool setTemplateXmlDescription(const QString &, const QDomElement &)=0
virtual void removeTemplate(const QString &)=0
void changed(TitleBlockTemplatesCollection *, const QString &=QString())
virtual void setCollection(QET::QetCollection)
TitleBlockTemplatesCollection::setCollection Set the storage of this collection.
Definition templatescollection.cpp:90
virtual QETProject * parentProject()
Definition templatescollection.cpp:98
virtual QET::QetCollection collection() const
TitleBlockTemplatesCollection::collection.
Definition templatescollection.cpp:80
~TitleBlockTemplatesCollection() override
Definition templatescollection.cpp:39
virtual QString filePath()=0
virtual QStringList templates()=0
virtual QString title() const
Definition templatescollection.cpp:46
QString title_
Human-readable title for this collection.
Definition templatescollection.h:72
void aboutToRemove(TitleBlockTemplatesCollection *, const QString &)
virtual void setProtocol(const QString &)
Definition templatescollection.cpp:72
virtual QList< TitleBlockTemplateLocation > templatesLocations()
Definition templatescollection.cpp:108
virtual TitleBlockTemplate * getTemplate(const QString &)=0
QString protocol_
Protocol used to designate this collection.
Definition templatescollection.h:74
QHash< QString, TitleBlockTemplate * > titleblock_templates_
Already parsed embedded titleblock templates.
Definition templatescollection.h:77
Definition templatescollection.h:125
QDir dir_
Collection real directory.
Definition templatescollection.h:159
QFileSystemWatcher watcher_
File System Watcher object to track the files changes made outside the application.
Definition templatescollection.h:157
bool hasFilePath() override
Definition templatescollection.cpp:516
void removeTemplate(const QString &) override
Definition templatescollection.cpp:491
static QString toTemplateName(const QString &)
Definition templatescollection.cpp:549
void fileSystemChanged(const QString &str)
Definition templatescollection.cpp:567
bool isReadOnly(const QString &=QString()) const override
Definition templatescollection.cpp:534
QString filePath() override
Definition templatescollection.cpp:524
bool setTemplateXmlDescription(const QString &, const QDomElement &) override
Definition templatescollection.cpp:470
static QString toFileName(const QString &)
Definition templatescollection.cpp:559
TitleBlockTemplate * getTemplate(const QString &) override
Definition templatescollection.cpp:425
QString path(const QString &=QString()) const
Definition templatescollection.cpp:399
QDomElement getTemplateXmlDescription(const QString &) override
Definition templatescollection.cpp:443
QStringList templates() override
Definition templatescollection.cpp:411
TitleBlockTemplatesFilesCollection(const TitleBlockTemplatesFilesCollection &)
~TitleBlockTemplatesFilesCollection() override
Definition templatescollection.cpp:392
TitleBlockTemplateLocation location(const QString &=QString()) override
Definition templatescollection.cpp:508
Definition templatescollection.h:84
QHash< QString, QDomElement > titleblock_templates_xml_
XML descriptions of embedded titleblock templates.
Definition templatescollection.h:118
TitleBlockTemplatesProjectCollection(const TitleBlockTemplatesProjectCollection &)
TitleBlockTemplateLocation location(const QString &=QString()) override
Definition templatescollection.cpp:301
virtual void deleteUnusedTitleBlocKTemplates()
Definition templatescollection.cpp:358
TitleBlockTemplate * getTemplate(const QString &) override
Definition templatescollection.cpp:205
QDomDocument xml_document_
Parent QDomDocument for stored QDomElements.
Definition templatescollection.h:116
~TitleBlockTemplatesProjectCollection() override
Definition templatescollection.cpp:132
QETProject * parentProject() override
Definition templatescollection.cpp:187
QDomElement getTemplateXmlDescription(const QString &) override
Definition templatescollection.cpp:231
bool isReadOnly(const QString &=QString()) const override
Definition templatescollection.cpp:328
bool setTemplateXmlDescription(const QString &, const QDomElement &) override
Definition templatescollection.cpp:249
bool hasFilePath() override
Definition templatescollection.cpp:309
void removeTemplate(const QString &) override
Definition templatescollection.cpp:286
QETProject * project_
Parent project.
Definition templatescollection.h:114
QString title() const override
Definition templatescollection.cpp:139
QStringList templates() override
Definition templatescollection.cpp:195
QString protocol() const override
Definition templatescollection.cpp:172
virtual void fromXml(const QDomElement &)
Definition templatescollection.cpp:340
QString filePath() override
Definition templatescollection.cpp:318
QetCollection
Enum used to specify the origin of a collection of thing (title block, element etc....
Definition qet.h:148