mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
The user can now specify his own name/value pairs at three levels:
* user configuration level (qelectrotech.conf): default configuration for new projects * project level (.qet file): default configuration for new diagrams * diagram level (title block properties): names and values may be used by the title block template git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1142 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
#define TITLEBLOCK_PROPERTIES_H
|
||||
#include <QtCore>
|
||||
#include <QtXml>
|
||||
#include "diagramcontext.h"
|
||||
/**
|
||||
Cette classe est un conteneur pour les proprietes d'un cartouche de schema
|
||||
: titre, auteur, date, nom de fichier et folio
|
||||
@@ -37,7 +38,7 @@ class TitleBlockProperties {
|
||||
bool operator!=(const TitleBlockProperties &);
|
||||
|
||||
void toXml(QDomElement &) const;
|
||||
void fromXml(QDomElement &);
|
||||
void fromXml(const QDomElement &);
|
||||
void toSettings(QSettings &, const QString & = QString()) const;
|
||||
void fromSettings(QSettings &, const QString & = QString());
|
||||
|
||||
@@ -51,6 +52,7 @@ class TitleBlockProperties {
|
||||
QString folio; ///< Folio affiche par le cartouche
|
||||
DateManagement useDate; ///< Indique s'il faut utiliser ou non l'attribut date
|
||||
QString template_name; ///< Name of the template used to render the title block - an empty string means "the default template provided by the application"
|
||||
DiagramContext context; ///< Container for the additional, user-defined fields
|
||||
|
||||
private:
|
||||
QString exportDate() const;
|
||||
|
||||
Reference in New Issue
Block a user