diff --git a/sources/titleblock/templatescollection.cpp b/sources/titleblock/templatescollection.cpp index e038e0d92..d2ccb5c1f 100644 --- a/sources/titleblock/templatescollection.cpp +++ b/sources/titleblock/templatescollection.cpp @@ -74,6 +74,19 @@ QETProject *TitleBlockTemplatesCollection::parentProject() { return(0); } +/** + @return the templates contained within this collection, as a list of location + objects. + @see templates() +*/ +QList TitleBlockTemplatesCollection::templatesLocations() { + QList locations; + foreach (QString template_name, templates()) { + locations << location(template_name); + } + return(locations); +} + /** Constructor @param project Parent project diff --git a/sources/titleblock/templatescollection.h b/sources/titleblock/templatescollection.h index 26e10d704..4009814b8 100644 --- a/sources/titleblock/templatescollection.h +++ b/sources/titleblock/templatescollection.h @@ -54,6 +54,7 @@ class TitleBlockTemplatesCollection : public QObject { virtual QString protocol() const; virtual void setProtocol(const QString &); virtual QETProject *parentProject(); + virtual QList templatesLocations(); signals: void changed(TitleBlockTemplatesCollection *, const QString & = QString());