QElectroTech 0.100.0-dev
|
#include <templatelocation.h>
Public Member Functions | |
TitleBlockTemplateLocation (const QString &=QString(), TitleBlockTemplatesCollection *=nullptr) | |
virtual | ~TitleBlockTemplateLocation () |
TitleBlockTemplateLocation | locationFromString (const QString &) |
TitleBlockTemplatesCollection * | parentCollection () const |
void | setParentCollection (TitleBlockTemplatesCollection *) |
TitleBlockTemplateLocation::setParentCollection. | |
QString | name () const |
void | setName (const QString &) |
bool | isValid () const |
void | fromString (const QString &) |
QString | toString () const |
QETProject * | parentProject () const |
QString | protocol () const |
QDomElement | getTemplateXmlDescription () const |
TitleBlockTemplate * | getTemplate () const |
bool | isReadOnly () const |
bool | operator== (const TitleBlockTemplateLocation &) const |
Static Public Attributes | |
static int | MetaTypeId = qRegisterMetaType<TitleBlockTemplateLocation>("TitleBlockTemplateLocation") |
Id of the corresponding Qt meta type. | |
Private Attributes | |
TitleBlockTemplatesCollection * | collection_ |
Collection the template belongs to. | |
QString | name_ |
Name of the template. | |
This class represents the location of a title block template.
TitleBlockTemplateLocation::TitleBlockTemplateLocation | ( | const QString & | name = QString() , |
TitleBlockTemplatesCollection * | collection = nullptr |
||
) |
Constructor
collection | Parent collection of the title block template |
name | Name of the title block template within its parent project or collection |
|
virtual |
Destructor
void TitleBlockTemplateLocation::fromString | ( | const QString & | loc_str | ) |
loc_str | String describing the location of a title block template. |
TitleBlockTemplate * TitleBlockTemplateLocation::getTemplate | ( | ) | const |
This is a convenience method equivalent to parentCollection() -> getTemplate(...).
QDomElement TitleBlockTemplateLocation::getTemplateXmlDescription | ( | ) | const |
This is a convenience method equivalent to parentCollection() -> getTemplateXmlDescription
bool TitleBlockTemplateLocation::isReadOnly | ( | ) | const |
This is a convenience method equivalent to parentCollection() -> isReadOnly(name())
bool TitleBlockTemplateLocation::isValid | ( | ) | const |
TitleBlockTemplateLocation TitleBlockTemplateLocation::locationFromString | ( | const QString & | loc_str | ) |
loc_str | String describing the location of a title block template. |
QString TitleBlockTemplateLocation::name | ( | ) | const |
bool TitleBlockTemplateLocation::operator== | ( | const TitleBlockTemplateLocation & | location | ) | const |
location | other location that should be compared to this one |
TitleBlockTemplatesCollection * TitleBlockTemplateLocation::parentCollection | ( | ) | const |
QETProject * TitleBlockTemplateLocation::parentProject | ( | ) | const |
This is a convenience method equivalent to parentCollection() -> parentProject().
QString TitleBlockTemplateLocation::protocol | ( | ) | const |
This is a convenience method equivalent to parentCollection() -> protocol().
void TitleBlockTemplateLocation::setName | ( | const QString & | name | ) |
name | The new name of this template. |
void TitleBlockTemplateLocation::setParentCollection | ( | TitleBlockTemplatesCollection * | collection | ) |
TitleBlockTemplateLocation::setParentCollection.
collection | : TitleBlockTemplatesCollection |
QString TitleBlockTemplateLocation::toString | ( | ) | const |
|
private |
Collection the template belongs to.
|
static |
Id of the corresponding Qt meta type.
|
private |
Name of the template.