QElectroTech 0.100.0-dev
|
#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 &) |
TitleBlockTemplatesCollection::setTitle. | |
virtual QString | protocol () const |
virtual void | setProtocol (const QString &) |
virtual QET::QetCollection | collection () const |
TitleBlockTemplatesCollection::collection. | |
virtual void | setCollection (QET::QetCollection) |
TitleBlockTemplatesCollection::setCollection Set the storage of this collection. | |
virtual QETProject * | parentProject () |
virtual QList< TitleBlockTemplateLocation > | templatesLocations () |
Protected Attributes | |
QString | title_ |
Human-readable title for this collection. | |
QString | protocol_ |
Protocol used to designate this collection. | |
QET::QetCollection | m_collection |
QHash< QString, TitleBlockTemplate * > | titleblock_templates_ |
Already parsed embedded titleblock templates. | |
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.
TitleBlockTemplatesCollection::TitleBlockTemplatesCollection | ( | QObject * | parent | ) |
Constructor
parent | Parent QObject |
|
override |
Destructor
|
private |
|
signal |
|
signal |
|
virtual |
TitleBlockTemplatesCollection::collection.
|
pure virtual |
Implemented in TitleBlockTemplatesProjectCollection, and TitleBlockTemplatesFilesCollection.
|
pure virtual |
Implemented in TitleBlockTemplatesProjectCollection, and TitleBlockTemplatesFilesCollection.
|
pure virtual |
Implemented in TitleBlockTemplatesProjectCollection, and TitleBlockTemplatesFilesCollection.
|
pure virtual |
Implemented in TitleBlockTemplatesProjectCollection, and TitleBlockTemplatesFilesCollection.
|
pure virtual |
Implemented in TitleBlockTemplatesProjectCollection, and TitleBlockTemplatesFilesCollection.
|
pure virtual |
Implemented in TitleBlockTemplatesProjectCollection, and TitleBlockTemplatesFilesCollection.
|
virtual |
Reimplemented in TitleBlockTemplatesProjectCollection.
|
virtual |
Reimplemented in TitleBlockTemplatesProjectCollection.
|
pure virtual |
Implemented in TitleBlockTemplatesProjectCollection, and TitleBlockTemplatesFilesCollection.
|
virtual |
TitleBlockTemplatesCollection::setCollection Set the storage of this collection.
c |
|
virtual |
Define the protocol for this collection
protocol | New protocol for this collection |
|
pure virtual |
Implemented in TitleBlockTemplatesProjectCollection, and TitleBlockTemplatesFilesCollection.
|
virtual |
TitleBlockTemplatesCollection::setTitle.
title | : New title for this collection |
|
pure virtual |
Implemented in TitleBlockTemplatesProjectCollection, and TitleBlockTemplatesFilesCollection.
|
virtual |
|
virtual |
Reimplemented in TitleBlockTemplatesProjectCollection.
|
protected |
|
protected |
Protocol used to designate this collection.
|
protected |
Human-readable title for this collection.
|
protected |
Already parsed embedded titleblock templates.