QElectroTech
0.70
|
#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 |
QString | location |
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, ...
Definition at line 28 of file titleblockproperties.h.
Lists the various ways to handle the date.
Enumerator | |
---|---|
UseDateValue | use the date attribute |
CurrentDate | use the current date |
Definition at line 33 of file titleblockproperties.h.
TitleBlockProperties::TitleBlockProperties | ( | ) |
Constructeur. Initialise un objet TitleBlockProperties avec tous les champs vides (date vide + useDate a UseDateValue).
Definition at line 26 of file titleblockproperties.cpp.
|
virtual |
Destructeur
Definition at line 37 of file titleblockproperties.cpp.
|
static |
TitleBlockProperties::defaultProperties Return the default properties stored in the setting file.
Definition at line 182 of file titleblockproperties.cpp.
References fromSettings().
Referenced by NewDiagramPage::NewDiagramPage(), QETDiagramEditor::newProject(), and QETProject::readDefaultPropertiesXml().
|
private |
Definition at line 210 of file titleblockproperties.cpp.
References date, useDate, and UseDateValue.
Referenced by toSettings(), and toXml().
QDate TitleBlockProperties::finalDate | ( | ) | const |
Definition at line 195 of file titleblockproperties.cpp.
References date, useDate, and UseDateValue.
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 |
Definition at line 161 of file titleblockproperties.cpp.
References author, auto_page_num, collection, context, display_at, filename, folio, DiagramContext::fromSettings(), indexrev, locmach, plant, QET::qetCollectionFromString(), setDateFromString(), template_name, title, and version.
Referenced by defaultProperties().
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 |
Definition at line 105 of file titleblockproperties.cpp.
References author, auto_page_num, DiagramContext::clear(), collection, context, display_at, filename, QET::findInDomElement(), folio, DiagramContext::fromXml(), indexrev, locmach, plant, QET::qetCollectionFromString(), setDateFromString(), template_name, title, and version.
Referenced by QETProject::readDefaultPropertiesXml(), and BorderTitleBlock::titleBlockFromXml().
bool TitleBlockProperties::operator!= | ( | const TitleBlockProperties & | ip | ) |
ip | autre conteneur TitleBlockProperties |
Definition at line 67 of file titleblockproperties.cpp.
bool TitleBlockProperties::operator== | ( | const TitleBlockProperties & | ip | ) |
ip | autre conteneur TitleBlockProperties |
Definition at line 44 of file titleblockproperties.cpp.
References author, auto_page_num, collection, context, date, display_at, filename, folio, indexrev, locmach, plant, template_name, title, and version.
|
inline |
Definition at line 46 of file titleblockproperties.h.
References auto_page_num.
Referenced by AutoNumberingDockWidget::on_m_folio_cb_activated().
|
private |
Charge les attributs date et useDate a partir d'une chaine de caracteres.
date_string | Chaine de caracteres a analyser |
Definition at line 226 of file titleblockproperties.cpp.
References CurrentDate, date, useDate, and UseDateValue.
Referenced by fromSettings(), and fromXml().
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 |
Definition at line 139 of file titleblockproperties.cpp.
References author, auto_page_num, collection, context, display_at, exportDate(), filename, folio, indexrev, locmach, plant, QET::qetCollectionToString(), template_name, title, DiagramContext::toSettings(), and version.
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 |
Definition at line 76 of file titleblockproperties.cpp.
References author, auto_page_num, collection, context, display_at, exportDate(), filename, folio, indexrev, DiagramContext::keys(), locmach, plant, QET::qetCollectionToString(), template_name, title, DiagramContext::toXml(), and version.
Referenced by BorderTitleBlock::titleBlockToXml(), and QETProject::writeDefaultPropertiesXml().
QString TitleBlockProperties::author |
Author of the diagram/folio (displayed by the default template)
Definition at line 54 of file titleblockproperties.h.
Referenced by BorderTitleBlock::exportTitleBlock(), fromSettings(), fromXml(), BorderTitleBlock::importTitleBlock(), operator==(), TitleBlockPropertiesWidget::properties(), TitleBlockPropertiesWidget::propertiesAutoNum(), SearchAndReplaceWorker::replaceAdvanced(), SearchAndReplaceWorker::replaceDiagram(), SearchAndReplaceWidget::searchTerms(), TitleBlockPropertiesWidget::setProperties(), ReplaceFolioWidget::setTitleBlockProperties(), ReplaceFolioWidget::titleBlockProperties(), toSettings(), and toXml().
QString TitleBlockProperties::auto_page_num |
Definition at line 62 of file titleblockproperties.h.
Referenced by BorderTitleBlock::exportTitleBlock(), fromSettings(), fromXml(), BorderTitleBlock::importTitleBlock(), operator==(), TitleBlockPropertiesWidget::properties(), TitleBlockPropertiesWidget::propertiesAutoNum(), AutoNumberingDockWidget::setActive(), setAutoPageNum(), TitleBlockPropertiesWidget::setProperties(), toSettings(), and toXml().
QET::QetCollection TitleBlockProperties::collection |
Specify the location of the title block.
Definition at line 68 of file titleblockproperties.h.
Referenced by BorderTitleBlock::exportTitleBlock(), fromSettings(), fromXml(), operator==(), TitleBlockPropertiesWidget::properties(), TitleBlockPropertiesWidget::propertiesAutoNum(), QETProject::setDefaultTitleBlockProperties(), TitleBlockPropertiesWidget::setProperties(), toSettings(), and toXml().
DiagramContext TitleBlockProperties::context |
Container for the additional, user-defined fields.
Definition at line 66 of file titleblockproperties.h.
Referenced by BorderTitleBlock::exportTitleBlock(), fromSettings(), fromXml(), BorderTitleBlock::importTitleBlock(), operator==(), TitleBlockPropertiesWidget::properties(), TitleBlockPropertiesWidget::propertiesAutoNum(), SearchAndReplaceWorker::replaceDiagram(), SearchAndReplaceWidget::searchTerms(), TitleBlockPropertiesWidget::setProperties(), ReplaceFolioWidget::setTitleBlockProperties(), ReplaceFolioWidget::titleBlockProperties(), toSettings(), and toXml().
QDate TitleBlockProperties::date |
Date (displayed by the default template)
Definition at line 55 of file titleblockproperties.h.
Referenced by exportDate(), BorderTitleBlock::exportTitleBlock(), finalDate(), BorderTitleBlock::importTitleBlock(), operator==(), TitleBlockPropertiesWidget::properties(), TitleBlockPropertiesWidget::propertiesAutoNum(), SearchAndReplaceWorker::replaceDiagram(), SearchAndReplaceWidget::searchTerms(), setDateFromString(), TitleBlockPropertiesWidget::setProperties(), ReplaceFolioWidget::setTitleBlockProperties(), and ReplaceFolioWidget::titleBlockProperties().
Qt::Edge TitleBlockProperties::display_at |
Edge to display the titleblock.
Definition at line 67 of file titleblockproperties.h.
Referenced by BorderTitleBlock::exportTitleBlock(), fromSettings(), fromXml(), BorderTitleBlock::importTitleBlock(), operator==(), TitleBlockPropertiesWidget::properties(), TitleBlockPropertiesWidget::propertiesAutoNum(), TitleBlockPropertiesWidget::setProperties(), toSettings(), and toXml().
QString TitleBlockProperties::filename |
Filename (displayed by the default template)
Definition at line 56 of file titleblockproperties.h.
Referenced by BorderTitleBlock::exportTitleBlock(), fromSettings(), fromXml(), BorderTitleBlock::importTitleBlock(), operator==(), TitleBlockPropertiesWidget::properties(), TitleBlockPropertiesWidget::propertiesAutoNum(), SearchAndReplaceWorker::replaceAdvanced(), SearchAndReplaceWorker::replaceDiagram(), SearchAndReplaceWidget::searchTerms(), TitleBlockPropertiesWidget::setProperties(), ReplaceFolioWidget::setTitleBlockProperties(), ReplaceFolioWidget::titleBlockProperties(), toSettings(), and toXml().
QString TitleBlockProperties::folio |
Folio information (displayed by the default template)
Definition at line 61 of file titleblockproperties.h.
Referenced by BorderTitleBlock::exportTitleBlock(), fromSettings(), fromXml(), BorderTitleBlock::importTitleBlock(), AutoNumberingDockWidget::on_m_folio_cb_activated(), operator==(), TitleBlockPropertiesWidget::properties(), TitleBlockPropertiesWidget::propertiesAutoNum(), SearchAndReplaceWorker::replaceAdvanced(), SearchAndReplaceWorker::replaceDiagram(), SearchAndReplaceWidget::searchTerms(), AutoNumberingDockWidget::setActive(), TitleBlockPropertiesWidget::setProperties(), ReplaceFolioWidget::setTitleBlockProperties(), ReplaceFolioWidget::titleBlockProperties(), toSettings(), and toXml().
QString TitleBlockProperties::indexrev |
Revision Index (displayed by the default template)
Definition at line 59 of file titleblockproperties.h.
Referenced by BorderTitleBlock::exportTitleBlock(), fromSettings(), fromXml(), BorderTitleBlock::importTitleBlock(), operator==(), TitleBlockPropertiesWidget::properties(), TitleBlockPropertiesWidget::propertiesAutoNum(), SearchAndReplaceWorker::replaceAdvanced(), SearchAndReplaceWorker::replaceDiagram(), SearchAndReplaceWidget::searchTerms(), TitleBlockPropertiesWidget::setProperties(), ReplaceFolioWidget::setTitleBlockProperties(), ReplaceFolioWidget::titleBlockProperties(), toSettings(), and toXml().
QString TitleBlockProperties::location |
Definition at line 63 of file titleblockproperties.h.
QString TitleBlockProperties::locmach |
Location(displayed by the default template)
Definition at line 58 of file titleblockproperties.h.
Referenced by BorderTitleBlock::exportTitleBlock(), fromSettings(), fromXml(), BorderTitleBlock::importTitleBlock(), operator==(), TitleBlockPropertiesWidget::properties(), TitleBlockPropertiesWidget::propertiesAutoNum(), SearchAndReplaceWorker::replaceAdvanced(), SearchAndReplaceWorker::replaceDiagram(), SearchAndReplaceWidget::searchTerms(), TitleBlockPropertiesWidget::setProperties(), ReplaceFolioWidget::setTitleBlockProperties(), ReplaceFolioWidget::titleBlockProperties(), toSettings(), and toXml().
QString TitleBlockProperties::plant |
Plant (displayed by the default template)
Definition at line 57 of file titleblockproperties.h.
Referenced by BorderTitleBlock::exportTitleBlock(), fromSettings(), fromXml(), BorderTitleBlock::importTitleBlock(), operator==(), TitleBlockPropertiesWidget::properties(), TitleBlockPropertiesWidget::propertiesAutoNum(), SearchAndReplaceWorker::replaceAdvanced(), SearchAndReplaceWorker::replaceDiagram(), SearchAndReplaceWidget::searchTerms(), TitleBlockPropertiesWidget::setProperties(), ReplaceFolioWidget::setTitleBlockProperties(), ReplaceFolioWidget::titleBlockProperties(), toSettings(), and toXml().
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".
Definition at line 65 of file titleblockproperties.h.
Referenced by BorderTitleBlock::exportTitleBlock(), fromSettings(), fromXml(), DiagramView::handleTitleBlockDrop(), BorderTitleBlock::importTitleBlock(), operator==(), TitleBlockPropertiesWidget::properties(), TitleBlockPropertiesWidget::propertiesAutoNum(), QETProject::setDefaultTitleBlockProperties(), TitleBlockPropertiesWidget::setProperties(), toSettings(), and toXml().
QString TitleBlockProperties::title |
Folio title (displayed by the default template)
Definition at line 53 of file titleblockproperties.h.
Referenced by BorderTitleBlock::exportTitleBlock(), fromSettings(), fromXml(), BorderTitleBlock::importTitleBlock(), operator==(), TitleBlockPropertiesWidget::properties(), TitleBlockPropertiesWidget::propertiesAutoNum(), SearchAndReplaceWorker::replaceAdvanced(), SearchAndReplaceWorker::replaceDiagram(), SearchAndReplaceWidget::searchTerms(), TitleBlockPropertiesWidget::setProperties(), ReplaceFolioWidget::setTitleBlockProperties(), ReplaceFolioWidget::titleBlockProperties(), toSettings(), and toXml().
DateManagement TitleBlockProperties::useDate |
Wheter to use the date attribute.
Definition at line 64 of file titleblockproperties.h.
Referenced by exportDate(), finalDate(), TitleBlockPropertiesWidget::properties(), TitleBlockPropertiesWidget::propertiesAutoNum(), setDateFromString(), TitleBlockPropertiesWidget::setProperties(), ReplaceFolioWidget::setTitleBlockProperties(), and ReplaceFolioWidget::titleBlockProperties().
QString TitleBlockProperties::version |
Version (displayed by the default template)
Definition at line 60 of file titleblockproperties.h.
Referenced by BorderTitleBlock::exportTitleBlock(), fromSettings(), fromXml(), operator==(), toSettings(), and toXml().