QElectroTech
0.70
|
#include <templatescollection.h>
Signals | |
void | changed (TitleBlockTemplatesCollection *, const QString &=QString()) |
void | aboutToRemove (TitleBlockTemplatesCollection *, const QString &) |
Public Member Functions | |
TitleBlockTemplatesCollection (QObject *parent) | |
~TitleBlockTemplatesCollection () override | |
virtual QStringList | templates ()=0 |
virtual TitleBlockTemplate * | getTemplate (const QString &)=0 |
virtual QDomElement | getTemplateXmlDescription (const QString &)=0 |
virtual bool | setTemplateXmlDescription (const QString &, const QDomElement &)=0 |
virtual void | removeTemplate (const QString &)=0 |
virtual TitleBlockTemplateLocation | location (const QString &=QString())=0 |
virtual bool | hasFilePath ()=0 |
virtual QString | filePath ()=0 |
virtual bool | isReadOnly (const QString &=QString()) const =0 |
virtual QString | title () const |
virtual void | setTitle (const QString &) |
virtual QString | protocol () const |
virtual void | setProtocol (const QString &) |
virtual QET::QetCollection | collection () const |
TitleBlockTemplatesCollection::collection. More... | |
virtual void | setCollection (QET::QetCollection) |
TitleBlockTemplatesCollection::setCollection Set the storage of this collection. More... | |
virtual QETProject * | parentProject () |
virtual QList< TitleBlockTemplateLocation > | templatesLocations () |
Protected Attributes | |
QString | title_ |
Human-readable title for this collection. More... | |
QString | protocol_ |
Protocol used to designate this collection. More... | |
QET::QetCollection | m_collection |
QHash< QString, TitleBlockTemplate * > | titleblock_templates_ |
Already parsed embedded titleblock templates. More... | |
Private Member Functions | |
TitleBlockTemplatesCollection (const TitleBlockTemplatesCollection &) | |
This abstract class represents a generic collection of title block templates. Unlike elements collections, title block templates collections do not provide a tree structure. Instead, they provide a simple, flat list of available templates.
Definition at line 34 of file templatescollection.h.
TitleBlockTemplatesCollection::TitleBlockTemplatesCollection | ( | QObject * | parent | ) |
|
override |
Destructor
Definition at line 36 of file templatescollection.cpp.
|
private |
|
signal |
|
signal |
Referenced by TitleBlockTemplatesFilesCollection::fileSystemChanged(), QETProject::init(), TitleBlockTemplatesProjectCollection::removeTemplate(), TitleBlockTemplatesFilesCollection::removeTemplate(), TitleBlockTemplatesProjectCollection::setTemplateXmlDescription(), and TitleBlockTemplatesFilesCollection::setTemplateXmlDescription().
|
virtual |
TitleBlockTemplatesCollection::collection.
Definition at line 73 of file templatescollection.cpp.
References m_collection.
|
pure virtual |
Implemented in TitleBlockTemplatesFilesCollection, and TitleBlockTemplatesProjectCollection.
|
pure virtual |
Implemented in TitleBlockTemplatesFilesCollection, and TitleBlockTemplatesProjectCollection.
|
pure virtual |
Implemented in TitleBlockTemplatesFilesCollection, and TitleBlockTemplatesProjectCollection.
|
pure virtual |
Implemented in TitleBlockTemplatesFilesCollection, and TitleBlockTemplatesProjectCollection.
|
pure virtual |
Implemented in TitleBlockTemplatesFilesCollection, and TitleBlockTemplatesProjectCollection.
|
pure virtual |
Implemented in TitleBlockTemplatesFilesCollection, and TitleBlockTemplatesProjectCollection.
Referenced by TitleBlockPropertiesWidget::currentTitleBlockLocation(), and templatesLocations().
|
virtual |
Reimplemented in TitleBlockTemplatesProjectCollection.
Definition at line 90 of file templatescollection.cpp.
|
virtual |
Reimplemented in TitleBlockTemplatesProjectCollection.
Definition at line 57 of file templatescollection.cpp.
References protocol_.
Referenced by TitleBlockTemplatesProjectCollection::protocol(), and setProtocol().
|
pure virtual |
Implemented in TitleBlockTemplatesFilesCollection, and TitleBlockTemplatesProjectCollection.
|
virtual |
TitleBlockTemplatesCollection::setCollection Set the storage of this collection.
c |
Definition at line 82 of file templatescollection.cpp.
References m_collection.
|
virtual |
Define the protocol for this collection
protocol | New protocol for this collection |
Definition at line 65 of file templatescollection.cpp.
References protocol(), and protocol_.
|
pure virtual |
Implemented in TitleBlockTemplatesFilesCollection, and TitleBlockTemplatesProjectCollection.
|
virtual |
title New title for this collection
Definition at line 49 of file templatescollection.cpp.
|
pure virtual |
Implemented in TitleBlockTemplatesFilesCollection, and TitleBlockTemplatesProjectCollection.
Referenced by templatesLocations().
|
virtual |
Definition at line 99 of file templatescollection.cpp.
References location(), and templates().
|
virtual |
Reimplemented in TitleBlockTemplatesProjectCollection.
Definition at line 42 of file templatescollection.cpp.
References title_.
Referenced by setTitle().
|
protected |
Definition at line 74 of file templatescollection.h.
Referenced by collection(), setCollection(), and TitleBlockTemplatesProjectCollection::TitleBlockTemplatesProjectCollection().
|
protected |
Protocol used to designate this collection.
Definition at line 73 of file templatescollection.h.
Referenced by protocol(), and setProtocol().
|
protected |
Human-readable title for this collection.
Definition at line 71 of file templatescollection.h.
Referenced by setTitle(), title(), and TitleBlockTemplatesProjectCollection::title().
|
protected |
Already parsed embedded titleblock templates.
Definition at line 76 of file templatescollection.h.
Referenced by TitleBlockTemplatesProjectCollection::getTemplate(), TitleBlockTemplatesProjectCollection::removeTemplate(), and TitleBlockTemplatesProjectCollection::setTemplateXmlDescription().