mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-04-15 21:29:58 +02:00
Implemented the common and custom title block templates collections.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1433 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -19,6 +19,8 @@
|
||||
#define TITLEBLOCK_SLASH_TEMPLATE_LOCATION_H
|
||||
#include <QtCore>
|
||||
class QETProject;
|
||||
class TitleBlockTemplate;
|
||||
class TitleBlockTemplatesCollection;
|
||||
|
||||
/**
|
||||
This class represents the location of a title block template.
|
||||
@@ -26,20 +28,24 @@ class QETProject;
|
||||
class TitleBlockTemplateLocation {
|
||||
// constructor, destructor
|
||||
public:
|
||||
TitleBlockTemplateLocation(QETProject * = 0, const QString & = QString());
|
||||
TitleBlockTemplateLocation(const QString & = QString(), TitleBlockTemplatesCollection * = 0);
|
||||
virtual ~TitleBlockTemplateLocation();
|
||||
|
||||
// methods
|
||||
public:
|
||||
QETProject *project() const;
|
||||
void setProject(QETProject *);
|
||||
TitleBlockTemplatesCollection *parentCollection() const;
|
||||
void setParentCollection(TitleBlockTemplatesCollection *);
|
||||
QString name() const;
|
||||
void setName(const QString &);
|
||||
bool isValid() const;
|
||||
QString toString() const;
|
||||
QETProject *parentProject() const;
|
||||
QString protocol() const;
|
||||
TitleBlockTemplate *getTemplate() const;
|
||||
|
||||
// attributes
|
||||
private:
|
||||
QETProject *project_; ///< Parent project of the template, if any
|
||||
QString name_; ///< Name of the template
|
||||
TitleBlockTemplatesCollection *collection_; ///< Collection the template belongs to
|
||||
QString name_; ///< Name of the template
|
||||
};
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user