![]() |
QElectroTech 0.100.0-dev
|
#include <titleblockproperties.h>

Public Types | |
| enum | DateManagement { UseDateValue , CurrentDate } |
| Lists the various ways to handle the date. More... | |
Public Member Functions | |
| TitleBlockProperties () | |
| virtual | ~TitleBlockProperties () |
| bool | operator== (const TitleBlockProperties &) |
| bool | operator!= (const TitleBlockProperties &) |
| void | toXml (QDomElement &) const |
| void | fromXml (const QDomElement &) |
| void | toSettings (QSettings &, const QString &=QString()) const |
| TitleBlockProperties::toSettings Export the TitleBlockProperties into a QSettings. | |
| void | fromSettings (QSettings &, const QString &=QString()) |
| void | setAutoPageNum (QString autonum) |
| QDate | finalDate () const |
Static Public Member Functions | |
| static TitleBlockProperties | defaultProperties () |
| TitleBlockProperties::defaultProperties Return the default properties stored in the setting file. | |
Public Attributes | |
| QString | title |
| Folio title (displayed by the default template) | |
| QString | author |
| Author of the diagram/folio (displayed by the default template) | |
| QDate | date |
| Date (displayed by the default template) | |
| QString | filename |
| Filename (displayed by the default template) | |
| QString | plant |
| Plant (displayed by the default template) | |
| QString | locmach |
| Location(displayed by the default template) | |
| QString | indexrev |
| Revision Index (displayed by the default template) | |
| QString | version |
| Version (displayed by the default template) | |
| QString | folio |
| Folio information (displayed by the default template) | |
| QString | auto_page_num |
| DateManagement | useDate |
| Wheter to use the date attribute. | |
| 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. | |
| Qt::Edge | display_at |
| Edge to display the titleblock. | |
| QET::QetCollection | collection |
| Specify the location of the title block. | |
Private Member Functions | |
| QString | exportDate () const |
| void | setDateFromString (const QString &) |
This class provides a container for the properties of a particular title block, i.e. title, author, date, filename, folio, template, custom properties, ...
| TitleBlockProperties::TitleBlockProperties | ( | ) |
Constructeur. Initialise un objet TitleBlockProperties avec tous les champs vides (date vide + useDate a UseDateValue).
|
virtual |
Destructeur
|
static |
TitleBlockProperties::defaultProperties Return the default properties stored in the setting file.


|
private |

| QDate TitleBlockProperties::finalDate | ( | ) | const |
| void TitleBlockProperties::fromSettings | ( | QSettings & | settings, |
| const QString & | prefix = QString() |
||
| ) |
Importe le cartouche depuis une configuration.
| settings | Parametres a lire |
| prefix | prefixe a ajouter devant les noms des parametres |


| void TitleBlockProperties::fromXml | ( | const QDomElement & | e | ) |
Importe le cartouche a partir des attributs XML de l'element e
| e | Element XML dont les attributs seront lus |


| bool TitleBlockProperties::operator!= | ( | const TitleBlockProperties & | ip | ) |
| ip | autre conteneur TitleBlockProperties |
| bool TitleBlockProperties::operator== | ( | const TitleBlockProperties & | ip | ) |
| ip | autre conteneur TitleBlockProperties |
|
inline |

|
private |
Charge les attributs date et useDate a partir d'une chaine de caracteres.
| date_string | Chaine de caracteres a analyser |

| void TitleBlockProperties::toSettings | ( | QSettings & | settings, |
| const QString & | prefix = QString() |
||
| ) | const |
TitleBlockProperties::toSettings Export the TitleBlockProperties into a QSettings.
| settings | : setting to use |
| prefix | : name to use as prefix for this property |

| void TitleBlockProperties::toXml | ( | QDomElement & | e | ) | const |
Exporte le cartouche sous formes d'attributs XML ajoutes a l'element e.
| e | Element XML auquel seront ajoutes des attributs |


| QString TitleBlockProperties::author |
Author of the diagram/folio (displayed by the default template)
| QString TitleBlockProperties::auto_page_num |
| QET::QetCollection TitleBlockProperties::collection |
Specify the location of the title block.
| DiagramContext TitleBlockProperties::context |
Container for the additional, user-defined fields.
| QDate TitleBlockProperties::date |
Date (displayed by the default template)
| Qt::Edge TitleBlockProperties::display_at |
Edge to display the titleblock.
| QString TitleBlockProperties::filename |
Filename (displayed by the default template)
| QString TitleBlockProperties::folio |
Folio information (displayed by the default template)
| QString TitleBlockProperties::indexrev |
Revision Index (displayed by the default template)
| QString TitleBlockProperties::locmach |
Location(displayed by the default template)
| QString TitleBlockProperties::plant |
Plant (displayed by the default template)
| QString TitleBlockProperties::template_name |
Name of the template used to render the title block - an empty string means "the default template provided by the application".
| QString TitleBlockProperties::title |
Folio title (displayed by the default template)
| DateManagement TitleBlockProperties::useDate |
Wheter to use the date attribute.
| QString TitleBlockProperties::version |
Version (displayed by the default template)