mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-24 03:10:52 +01:00
Project files now load and save inset templates.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1131 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -29,6 +29,7 @@ class ElementsCollection;
|
||||
class ElementsCategory;
|
||||
class ElementDefinition;
|
||||
class ElementsLocation;
|
||||
class InsetTemplate;
|
||||
class XmlElementsCollection;
|
||||
class MoveElementsHandler;
|
||||
/**
|
||||
@@ -79,6 +80,9 @@ class QETProject : public QObject {
|
||||
QString title() const;
|
||||
qreal declaredQElectroTechVersion();
|
||||
void setTitle(const QString &);
|
||||
QList<QString> embeddedInsetTemplates() const;
|
||||
const InsetTemplate *getTemplateByName(const QString &template_name);
|
||||
QDomElement getTemplateXmlDescriptionByName(const QString &);
|
||||
BorderProperties defaultBorderProperties() const;
|
||||
void setDefaultBorderProperties(const BorderProperties &);
|
||||
InsetProperties defaultInsetProperties() const;
|
||||
@@ -124,6 +128,7 @@ class QETProject : public QObject {
|
||||
void readProjectXml();
|
||||
void readDiagramsXml();
|
||||
void readElementsCollectionXml();
|
||||
void readEmbeddedTemplatesXml();
|
||||
void readDefaultPropertiesXml();
|
||||
void writeDefaultPropertiesXml(QDomElement &);
|
||||
void addDiagram(Diagram *);
|
||||
@@ -158,5 +163,9 @@ class QETProject : public QObject {
|
||||
ConductorProperties default_conductor_properties_;
|
||||
/// Proprietes par defaut du cartouche pour les nouveaux schemas dans ce projet
|
||||
InsetProperties default_inset_properties_;
|
||||
/// XML descriptions of embedded inset templates
|
||||
QHash<QString, QDomElement> inset_templates_xml_;
|
||||
/// Already parsed embedded inset templates
|
||||
QHash<QString, InsetTemplate *> inset_templates_;
|
||||
};
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user