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