QElectroTech
0.70
|
#include <qetproject.h>
Public Types | |
enum | ProjectState { Ok = 0, FileOpenFailed = 1, XmlParsingFailed = 2, ProjectParsingRunning = 3, ProjectParsingFailed = 4, FileOpenDiscard = 5 } |
Public Slots | |
Diagram * | addNewDiagram () |
QList< Diagram * > | addNewDiagramFolioList () |
QETProject::addNewDiagramFolioList Add new diagram folio list. More... | |
void | removeDiagram (Diagram *) |
void | diagramOrderChanged (int, int) |
void | setModified (bool) |
Signals | |
void | projectFilePathChanged (QETProject *, const QString &) |
void | projectTitleChanged (QETProject *, const QString &) |
void | projectInformationsChanged (QETProject *) |
void | diagramAdded (QETProject *, Diagram *) |
void | diagramRemoved (QETProject *, Diagram *) |
void | projectModified (QETProject *, bool) |
void | projectDiagramsOrderChanged (QETProject *, int, int) |
void | diagramUsedTemplate (TitleBlockTemplatesCollection *, const QString &) |
void | readOnlyChanged (QETProject *, bool) |
void | reportPropertiesChanged (const QString &old_str, const QString &new_str) |
void | XRefPropertiesChanged () |
void | addAutoNumDiagram () |
void | elementAutoNumAdded (QString name) |
void | elementAutoNumRemoved (QString name) |
void | conductorAutoNumAdded () |
void | conductorAutoNumRemoved () |
void | folioAutoNumAdded () |
void | folioAutoNumRemoved () |
void | folioAutoNumChanged (QString) |
void | defaultTitleBlockPropertiesChanged () |
void | conductorAutoNumChanged () |
Public Member Functions | |
QETProject (QObject *parent=nullptr) | |
QETProject::QETProject Create a empty project. More... | |
QETProject (const QString &path, QObject *=nullptr) | |
QETProject::QETProject Construct a project from a .qet file. More... | |
QETProject (KAutoSaveFile *backup, QObject *parent=nullptr) | |
QETProject::QETProject. More... | |
~QETProject () override | |
QETProject::~QETProject Destructor. More... | |
ProjectState | state () const |
QList< Diagram * > | diagrams () const |
int | getFolioSheetsQuantity () const |
void | setFolioSheetsQuantity (int) |
get the folio sheets quantity for this project More... | |
int | folioIndex (const Diagram *) const |
set the folio sheets quantity for this project More... | |
XmlElementCollection * | embeddedElementCollection () const |
QETProject::embeddedCollection. More... | |
TitleBlockTemplatesProjectCollection * | embeddedTitleBlockTemplatesCollection () |
QString | filePath () |
void | setFilePath (const QString &) |
QETProject::setFilePath Set the filepath of this project file Set a file path also create a backup file according to the path. If a previous path was set, the previous backup file is deleted and a new one is created according to the path. More... | |
QString | currentDir () const |
QString | pathNameTitle () const |
QString | title () const |
qreal | declaredQElectroTechVersion () |
void | setTitle (const QString &) |
BorderProperties | defaultBorderProperties () const |
DEFAULT PROPERTIES. More... | |
void | setDefaultBorderProperties (const BorderProperties &) |
TitleBlockProperties | defaultTitleBlockProperties () const |
void | setDefaultTitleBlockProperties (const TitleBlockProperties &) |
QETProject::setDefaultTitleBlockProperties Specify the title block to be used at the creation of a new diagram for this project. More... | |
ConductorProperties | defaultConductorProperties () const |
void | setDefaultConductorProperties (const ConductorProperties &) |
QString | defaultReportProperties () const |
void | setDefaultReportProperties (const QString &properties) |
XRefProperties | defaultXRefProperties (const QString &type) const |
QHash< QString, XRefProperties > | defaultXRefProperties () const |
void | setDefaultXRefProperties (const QString &type, const XRefProperties &properties) |
void | setDefaultXRefProperties (QHash< QString, XRefProperties > hash) |
QHash< QString, NumerotationContext > | conductorAutoNum () const |
QETProject::conductorAutoNum. More... | |
QHash< QString, NumerotationContext > | elementAutoNum () const |
QETProject::elementAutoNum. More... | |
QHash< QString, NumerotationContext > | folioAutoNum () const |
QETProject::folioAutoNum. More... | |
void | addConductorAutoNum (const QString &key, const NumerotationContext &context) |
QETProject::addConductorAutoNum Add a new conductor numerotation context. If key already exist, replace old context by the new context. More... | |
void | addElementAutoNum (const QString &key, const NumerotationContext &context) |
QETProject::addElementAutoNum Add a new element numerotation context. If key already exist, replace old context by the new context. More... | |
void | addFolioAutoNum (const QString &key, const NumerotationContext &context) |
QETProject::addFolioAutoNum Add a new folio numerotation context. If key already exist, replace old context by the new context. More... | |
void | removeConductorAutoNum (const QString &key) |
QETProject::removeConductorAutoNum Remove Conductor Numerotation Context stored with key. More... | |
void | removeElementAutoNum (const QString &key) |
QETProject::removeElementAutonum Remove Element Numerotation Context stored with key. More... | |
void | removeFolioAutoNum (const QString &key) |
QETProject::removeFolioAutonum Remove Folio Numerotation Context stored with key. More... | |
NumerotationContext | conductorAutoNum (const QString &key) const |
QETProject::conductorAutoNum Return conductor numerotation context stored with . If key is not found, return an empty numerotation context. More... | |
NumerotationContext | folioAutoNum (const QString &key) const |
QETProject::folioAutoNum Return folio numerotation context stored with . If key is not found, return an empty numerotation context. More... | |
NumerotationContext | elementAutoNum (const QString &key) |
QETProject::elementAutoNum Return element numerotation context stored with . If key is not found, return an empty numerotation context. More... | |
QString | conductorAutoNumFormula (const QString &key) const |
QETProject::conductorAutoNumFormula. More... | |
QString | conductorCurrentAutoNum () const |
QETProject::conductorCurrentAutoNum. More... | |
void | setCurrentConductorAutoNum (QString autoNum) |
QETProject::setCurrentConductorAutoNum. More... | |
QString | elementAutoNumFormula (const QString &key) const |
QETProject::elementAutoNumFormula. More... | |
QString | elementAutoNumCurrentFormula () const |
QETProject::elementAutoNumCurrentFormula. More... | |
QString | elementCurrentAutoNum () const |
QETProject::elementCurrentAutoNum. More... | |
void | setCurrrentElementAutonum (QString autoNum) |
QETProject::setCurrrentElementAutonum. More... | |
void | freezeExistentElementLabel (bool freeze, int from, int to) |
QETProject::freezeExistentElementLabel Freeze Existent Elements in the selected folios. More... | |
void | freezeNewElementLabel (bool freeze, int from, int to) |
QETProject::freezeNewElementLabel Freeze New Elements in the selected folios. More... | |
bool | isFreezeNewElements () |
QETProject::freezeNewElements. More... | |
void | setFreezeNewElements (bool) |
QETProject::setfreezeNewElements Set Project Wide freeze new elements. More... | |
void | freezeExistentConductorLabel (bool freeze, int from, int to) |
QETProject::freezeExistentConductorLabel Freeze Existent Conductors in the selected folios. More... | |
void | freezeNewConductorLabel (bool freeze, int from, int to) |
QETProject::freezeNewConductorLabel Freeze New Conductors in the selected folios. More... | |
bool | isFreezeNewConductors () |
QETProject::isFreezeNewConductors. More... | |
void | setFreezeNewConductors (bool) |
QETProject::setfreezeNewConductors Set Project Wide freeze new conductors. More... | |
bool | autoConductor () const |
bool | autoElement () const |
bool | autoFolio () const |
void | setAutoConductor (bool ac) |
QETProject::setAutoConductor. More... | |
void | setAutoElement (bool ae) |
void | autoFolioNumberingNewFolios () |
QETProject::autoFolioNumberingNewFolios emit Signal to add new Diagram with autonum properties. More... | |
void | autoFolioNumberingSelectedFolios (int, int, const QString &) |
QETProject::autoFolioNumberingNewFolios. More... | |
QDomDocument | toXml () |
bool | close () |
QETResult | write () |
QETProject::write Save the project in a file. More... | |
bool | isReadOnly () const |
void | setReadOnly (bool) |
QETProject::setReadOnly Set this project to read only if = true. More... | |
bool | isEmpty () const |
ElementsLocation | importElement (ElementsLocation &location) |
QETProject::importElement Import the element represented by to the embbeded collection of this project. More... | |
QString | integrateTitleBlockTemplate (const TitleBlockTemplateLocation &, MoveTitleBlockTemplatesHandler *handler) |
bool | usesElement (const ElementsLocation &) const |
QList< ElementsLocation > | unusedElements () const |
QETProject::unusedElements. More... | |
bool | usesTitleBlockTemplate (const TitleBlockTemplateLocation &) |
bool | projectWasModified () |
bool | projectOptionsWereModified () |
DiagramContext | projectProperties () |
void | setProjectProperties (const DiagramContext &) |
QUndoStack * | undoStack () |
Properties | |
bool | autoConductor |
QETProject::autoConductor. More... | |
Private Slots | |
void | updateDiagramsFolioData () |
void | updateDiagramsTitleBlockTemplate (TitleBlockTemplatesCollection *, const QString &) |
void | removeDiagramsTitleBlockTemplate (TitleBlockTemplatesCollection *, const QString &) |
void | usedTitleBlockTemplateChanged (const QString &) |
void | undoStackChanged (bool a) |
Private Member Functions | |
QETProject (const QETProject &) | |
void | readProjectXml (QDomDocument &xml_project) |
QETProject::readProjectXml Read and make the project from an xml description. More... | |
void | readDiagramsXml (QDomDocument &xml_project) |
QETProject::readDiagramsXml Load the diagrams from the xml description of the project. Note a project can have 0 diagram. More... | |
void | readElementsCollectionXml (QDomDocument &xml_project) |
QETProject::readElementsCollectionXml Load the diagrams from the xml description of the project. More... | |
void | readProjectPropertiesXml (QDomDocument &xml_project) |
QETProject::readProjectPropertiesXml Load project properties from the XML description of the project. More... | |
void | readDefaultPropertiesXml (QDomDocument &xml_project) |
QETProject::readDefaultPropertiesXml load default properties for new diagram, found in the xml of this project or by default find in the QElectroTech global conf. More... | |
void | writeProjectPropertiesXml (QDomElement &) |
void | writeDefaultPropertiesXml (QDomElement &) |
QETProject::writeDefaultPropertiesXml Export all defaults properties used by a new diagram and his content #size of border #content of titleblock #default conductor #defaut folio report #default Xref. More... | |
void | addDiagram (Diagram *) |
QETProject::addDiagram Add a diagram in this project. More... | |
NamesList | namesListForIntegrationCategory () |
void | writeBackup () |
QETProject::writeBackup Write a backup file of this project, in the case that QET crash. More... | |
void | init () |
QETProject::init. More... | |
ProjectState | openFile (QFile *file) |
QETProject::openFile. More... | |
Private Attributes | |
QString | m_file_path |
File path this project is saved to. More... | |
ProjectState | m_state |
Current state of the project. More... | |
QList< Diagram * > | m_diagrams_list |
Diagrams carried by the project. More... | |
QString | project_title_ |
Project title. More... | |
qreal | m_project_qet_version = -1 |
QElectroTech version declared in the XML document at opening time. More... | |
bool | m_modified = false |
Whether options were modified. More... | |
bool | m_read_only = false |
Whether the project is read only. More... | |
QString | read_only_file_path_ |
Filepath for which this project is considered read only. More... | |
BorderProperties | default_border_properties_ |
Default dimensions and properties for new diagrams created within the project. More... | |
ConductorProperties | default_conductor_properties_ |
Default conductor properties for new diagrams created within the project. More... | |
TitleBlockProperties | default_titleblock_properties_ |
Default title block properties for new diagrams created within the project. More... | |
QString | m_default_report_properties |
Default report properties. More... | |
QHash< QString, XRefProperties > | m_default_xref_properties |
Default xref properties. More... | |
TitleBlockTemplatesProjectCollection | m_titleblocks_collection |
Embedded title block templates collection. More... | |
DiagramContext | m_project_properties |
project-wide variables that will be made available to child diagrams More... | |
QUndoStack * | m_undo_stack |
undo stack for this project More... | |
QHash< QString, NumerotationContext > | m_conductor_autonum |
Conductor auto numerotation. More... | |
QString | m_current_conductor_autonum |
QHash< QString, NumerotationContext > | m_folio_autonum |
Folio auto numbering. More... | |
QHash< QString, NumerotationContext > | m_element_autonum |
Element Auto Numbering. More... | |
QString | m_current_element_autonum |
int | m_folio_sheets_quantity = 0 |
Folio List Sheets quantity for this project. More... | |
bool | m_auto_conductor = true |
XmlElementCollection * | m_elements_collection = nullptr |
bool | m_freeze_new_elements = false |
bool | m_freeze_new_conductors = false |
QTimer | m_save_backup_timer |
QTimer | m_autosave_timer |
KAutoSaveFile * | m_backup_file = nullptr |
This class represents a QET project. Typically saved as a .qet file, it consists in an XML document grouping 0 to n diagrams and embedding an elements collection. This collection enables users to export diagrams on remote machines without wondering whether required elements are available to them.
Definition at line 46 of file qetproject.h.
Enumerator | |
---|---|
Ok | |
FileOpenFailed | no error |
XmlParsingFailed | file opening failed |
ProjectParsingRunning | XML parsing failed. |
ProjectParsingFailed | the XML content is currently being processed |
FileOpenDiscard | the parsing of the XML content failed |
Definition at line 51 of file qetproject.h.
QETProject::QETProject | ( | QObject * | parent = nullptr | ) |
QETProject::QETProject Create a empty project.
parent |
Definition at line 47 of file qetproject.cpp.
References init(), and m_elements_collection.
QETProject::QETProject | ( | const QString & | path, |
QObject * | parent = nullptr |
||
) |
QETProject::QETProject Construct a project from a .qet file.
path | : path of the file |
parent | : parent QObject |
Definition at line 61 of file qetproject.cpp.
References init(), m_state, and openFile().
QETProject::QETProject | ( | KAutoSaveFile * | backup, |
QObject * | parent = nullptr |
||
) |
backup | : backup file to open, QETProject take ownership of backup. |
parent | : parent QObject |
Definition at line 79 of file qetproject.cpp.
References init(), m_file_path, m_state, openFile(), setFilePath(), and setReadOnly().
|
override |
QETProject::~QETProject Destructor.
Definition at line 111 of file qetproject.cpp.
References m_diagrams_list.
|
private |
|
signal |
Referenced by autoFolioNumberingNewFolios().
void QETProject::addConductorAutoNum | ( | const QString & | key, |
const NumerotationContext & | context | ||
) |
QETProject::addConductorAutoNum Add a new conductor numerotation context. If key already exist, replace old context by the new context.
key | |
context |
Definition at line 588 of file qetproject.cpp.
References m_conductor_autonum.
Referenced by Diagram::loadCndFolioSeq(), ConductorAutoNumerotation::newProperties(), ConductorAutoNumerotation::numerateNewConductor(), and ProjectAutoNumConfigPage::saveContextConductor().
|
private |
QETProject::addDiagram Add a diagram in this project.
Cette methode ajoute un schema donne au projet
diagram | Schema a ajouter |
diagram | added diagram |
position | postion of the new diagram, by default at the end |
Definition at line 1619 of file qetproject.cpp.
References m_diagrams_list, updateDiagramsFolioData(), and usedTitleBlockTemplateChanged().
Referenced by addNewDiagram(), addNewDiagramFolioList(), and readDiagramsXml().
void QETProject::addElementAutoNum | ( | const QString & | key, |
const NumerotationContext & | context | ||
) |
QETProject::addElementAutoNum Add a new element numerotation context. If key already exist, replace old context by the new context.
key | |
context |
Definition at line 599 of file qetproject.cpp.
References elementAutoNumAdded(), and m_element_autonum.
Referenced by Diagram::loadElmtFolioSeq(), ProjectAutoNumConfigPage::saveContextElement(), and Element::setUpFormula().
void QETProject::addFolioAutoNum | ( | const QString & | key, |
const NumerotationContext & | context | ||
) |
QETProject::addFolioAutoNum Add a new folio numerotation context. If key already exist, replace old context by the new context.
key | |
context |
Definition at line 612 of file qetproject.cpp.
References m_folio_autonum.
Referenced by autoFolioNumberingSelectedFolios(), and ProjectAutoNumConfigPage::saveContextFolio().
|
slot |
Ajoute un nouveau schema au projet et emet le signal diagramAdded
Definition at line 1135 of file qetproject.cpp.
References addDiagram(), defaultBorderProperties(), defaultConductorProperties(), defaultTitleBlockProperties(), QET::Diagram, diagramAdded(), and isReadOnly().
|
slot |
QETProject::addNewDiagramFolioList Add new diagram folio list.
Definition at line 1157 of file qetproject.cpp.
References addDiagram(), defaultBorderProperties(), defaultConductorProperties(), defaultTitleBlockProperties(), diagramAdded(), diagrams(), getFolioSheetsQuantity(), isReadOnly(), setFolioSheetsQuantity(), and QET::Icons::tr.
Referenced by readProjectXml().
bool QETProject::autoConductor | ( | ) | const |
bool QETProject::autoElement | ( | ) | const |
bool QETProject::autoFolio | ( | ) | const |
void QETProject::autoFolioNumberingNewFolios | ( | ) |
QETProject::autoFolioNumberingNewFolios emit Signal to add new Diagram with autonum properties.
Definition at line 785 of file qetproject.cpp.
References addAutoNumDiagram().
Referenced by ProjectAutoNumConfigPage::applyAutoNum().
void QETProject::autoFolioNumberingSelectedFolios | ( | int | from, |
int | to, | ||
const QString & | autonum | ||
) |
QETProject::autoFolioNumberingNewFolios.
autonum | used, index from selected tabs "from" and "to" rename folios with selected autonum |
Definition at line 794 of file qetproject.cpp.
References addFolioAutoNum(), folioAutoNum(), m_diagrams_list, m_project_properties, NumerotationContextCommands::next(), title(), and NumerotationContextCommands::toRepresentedString().
Referenced by ProjectAutoNumConfigPage::applyAutoNum().
bool QETProject::close | ( | ) |
Ferme le projet
Definition at line 871 of file qetproject.cpp.
QHash< QString, NumerotationContext > QETProject::conductorAutoNum | ( | ) | const |
Definition at line 494 of file qetproject.cpp.
References m_conductor_autonum.
Referenced by AutoNumberingDockWidget::conductorAutoNumChanged(), DiagramPropertiesDialog::DiagramPropertiesDialog(), DiagramPropertiesDialog::editAutonum(), Diagram::loadCndFolioSeq(), ConductorAutoNumerotation::newProperties(), ConductorAutoNumerotation::numerateNewConductor(), MultiPasteDialog::on_m_button_box_accepted(), ProjectAutoNumConfigPage::readValuesFromProject(), AutoNumberingDockWidget::setContext(), ProjectAutoNumConfigPage::updateContextConductor(), and writeDefaultPropertiesXml().
NumerotationContext QETProject::conductorAutoNum | ( | const QString & | key | ) | const |
QETProject::conductorAutoNum Return conductor numerotation context stored with . If key is not found, return an empty numerotation context.
key |
Definition at line 651 of file qetproject.cpp.
References m_conductor_autonum.
|
signal |
Referenced by ProjectAutoNumConfigPage::saveContextConductor().
|
signal |
Referenced by DiagramPropertiesDialog::DiagramPropertiesDialog().
QString QETProject::conductorAutoNumFormula | ( | const QString & | key | ) | const |
QETProject::conductorAutoNumFormula.
conductor | autonum title |
Definition at line 549 of file qetproject.cpp.
References m_conductor_autonum, and autonum::numerotationContextToFormula().
Referenced by writeDefaultPropertiesXml().
|
signal |
Referenced by ProjectAutoNumConfigPage::removeContextConductor().
QString QETProject::conductorCurrentAutoNum | ( | ) | const |
QETProject::conductorCurrentAutoNum.
Definition at line 561 of file qetproject.cpp.
References m_current_conductor_autonum.
Referenced by Diagram::loadCndFolioSeq(), ConductorAutoNumerotation::newProperties(), and ConductorAutoNumerotation::numerateNewConductor().
QString QETProject::currentDir | ( | ) | const |
Definition at line 297 of file qetproject.cpp.
References m_file_path.
qreal QETProject::declaredQElectroTechVersion | ( | ) |
Definition at line 374 of file qetproject.cpp.
References m_project_qet_version.
BorderProperties QETProject::defaultBorderProperties | ( | ) | const |
DEFAULT PROPERTIES.
Definition at line 398 of file qetproject.cpp.
References default_border_properties_.
Referenced by addNewDiagram(), and addNewDiagramFolioList().
ConductorProperties QETProject::defaultConductorProperties | ( | ) | const |
Definition at line 455 of file qetproject.cpp.
References default_conductor_properties_.
Referenced by addNewDiagram(), and addNewDiagramFolioList().
QString QETProject::defaultReportProperties | ( | ) | const |
Definition at line 467 of file qetproject.cpp.
References m_default_report_properties.
Referenced by DynamicElementTextItem::reportChanged(), DynamicElementTextItem::reportFormulaChanged(), and writeDefaultPropertiesXml().
TitleBlockProperties QETProject::defaultTitleBlockProperties | ( | ) | const |
Definition at line 415 of file qetproject.cpp.
References default_titleblock_properties_.
Referenced by addNewDiagram(), addNewDiagramFolioList(), and AutoNumberingDockWidget::setActive().
|
signal |
Referenced by setDefaultTitleBlockProperties().
|
inline |
Definition at line 102 of file qetproject.h.
References m_default_xref_properties.
Referenced by MasterElement::aboutDeleteXref(), ElementTextItemGroup::autoPos(), CrossRefItem::elementPositionText(), CrossRefItem::init(), MasterElement::linkToElement(), CrossRefItem::updateProperties(), ElementTextItemGroup::updateXref(), DynamicElementTextItem::updateXref(), and MasterElement::xrefPropertiesChanged().
|
inline |
Definition at line 103 of file qetproject.h.
References m_default_xref_properties.
Referenced by writeDefaultPropertiesXml().
|
signal |
Referenced by addNewDiagram(), and addNewDiagramFolioList().
|
slot |
Gere le fait que l'ordre des schemas ait change
old_index | ancien indice du schema deplace |
new_index | nouvel indice du schema deplace Si l'ancien ou le nouvel index est negatif ou superieur au nombre de schemas dans le projet, cette methode ne fait rien. Les index vont de 0 a "nombre de schemas - 1" |
Definition at line 1218 of file qetproject.cpp.
References m_diagrams_list, projectDiagramsOrderChanged(), setModified(), and updateDiagramsFolioData().
Referenced by ProjectView::tabMoved().
|
signal |
QList< Diagram * > QETProject::diagrams | ( | ) | const |
Definition at line 210 of file qetproject.cpp.
References m_diagrams_list.
Referenced by addNewDiagramFolioList(), ProjectAutoNumConfigPage::applyManagement(), ElementProvider::ElementProvider(), SearchAndReplaceWidget::fillItemsList(), ProjectView::loadDiagrams(), AutoNumberingManagementW::on_m_apply_folios_rb_clicked(), FolioAutonumberingW::on_m_autonumber_tabs_rb_clicked(), FolioAutonumberingW::on_m_from_cb_currentIndexChanged(), AutoNumberingManagementW::on_m_from_folios_cb_currentIndexChanged(), readDiagramsXml(), QETDiagramEditor::setUpActions(), usesElement(), and usesTitleBlockTemplate().
|
signal |
Referenced by usedTitleBlockTemplateChanged().
QHash< QString, NumerotationContext > QETProject::elementAutoNum | ( | ) | const |
Definition at line 502 of file qetproject.cpp.
References m_element_autonum.
Referenced by AutoNumberingDockWidget::elementAutoNumChanged(), Diagram::loadElmtFolioSeq(), MultiPasteDialog::on_m_button_box_accepted(), ProjectAutoNumConfigPage::readValuesFromProject(), AutoNumberingDockWidget::setContext(), Element::setUpFormula(), ProjectAutoNumConfigPage::updateContextElement(), and writeDefaultPropertiesXml().
NumerotationContext QETProject::elementAutoNum | ( | const QString & | key | ) |
QETProject::elementAutoNum Return element numerotation context stored with . If key is not found, return an empty numerotation context.
key |
Definition at line 662 of file qetproject.cpp.
References m_element_autonum.
|
signal |
Referenced by addElementAutoNum().
QString QETProject::elementAutoNumCurrentFormula | ( | ) | const |
QETProject::elementAutoNumCurrentFormula.
Definition at line 524 of file qetproject.cpp.
References elementAutoNumFormula(), and m_current_element_autonum.
Referenced by Diagram::loadElmtFolioSeq(), AutoNumberingDockWidget::setActive(), and Element::setUpFormula().
QString QETProject::elementAutoNumFormula | ( | const QString & | key | ) | const |
QETProject::elementAutoNumFormula.
element | autonum title |
Definition at line 511 of file qetproject.cpp.
References m_element_autonum, and autonum::numerotationContextToFormula().
Referenced by elementAutoNumCurrentFormula(), and writeDefaultPropertiesXml().
|
signal |
Referenced by removeElementAutoNum().
QString QETProject::elementCurrentAutoNum | ( | ) | const |
QETProject::elementCurrentAutoNum.
Definition at line 532 of file qetproject.cpp.
References m_current_element_autonum.
Referenced by Diagram::loadElmtFolioSeq(), AutoNumberingDockWidget::setActive(), and Element::setUpFormula().
XmlElementCollection * QETProject::embeddedElementCollection | ( | ) | const |
QETProject::embeddedCollection.
Definition at line 229 of file qetproject.cpp.
References m_elements_collection.
Referenced by ProjectView::cleanProject(), ElementsCollectionModel::elementIntegratedToCollection(), ElementsLocation::exist(), ElementCollectionHandler::importFromProject(), ElementsCollectionModel::itemRemovedFromCollection(), ElementsLocation::nameList(), XmlProjectElementCollectionItem::populate(), ElementsLocation::projectCollection(), XmlProjectElementCollectionItem::setProject(), ElementsLocation::setXml(), ElementsCollectionModel::updateItem(), and ElementsLocation::xml().
TitleBlockTemplatesProjectCollection * QETProject::embeddedTitleBlockTemplatesCollection | ( | ) |
Definition at line 236 of file qetproject.cpp.
References m_titleblocks_collection.
Referenced by ProjectView::cleanProject(), QETTitleBlockTemplateEditor::edit(), NewDiagramPage::NewDiagramPage(), Diagram::setTitleBlockTemplate(), Diagram::titleBlockTemplateRemoved(), and usedTitleBlockTemplateChanged().
QString QETProject::filePath | ( | ) |
Definition at line 243 of file qetproject.cpp.
References m_file_path.
Referenced by QETApp::checkBackupFiles(), QETDiagramEditor::generateTerminalBlock(), setFilePath(), updateDiagramsFolioData(), and write().
QHash< QString, NumerotationContext > QETProject::folioAutoNum | ( | ) | const |
Definition at line 577 of file qetproject.cpp.
References m_folio_autonum.
Referenced by autoFolioNumberingSelectedFolios(), AutoNumberingDockWidget::folioAutoNumChanged(), ProjectAutoNumConfigPage::readValuesFromProject(), AutoNumberingDockWidget::setContext(), ProjectAutoNumConfigPage::updateContextFolio(), updateDiagramsFolioData(), and writeDefaultPropertiesXml().
NumerotationContext QETProject::folioAutoNum | ( | const QString & | key | ) | const |
QETProject::folioAutoNum Return folio numerotation context stored with . If key is not found, return an empty numerotation context.
key |
Definition at line 673 of file qetproject.cpp.
References m_folio_autonum.
|
signal |
Referenced by ProjectAutoNumConfigPage::saveContextFolio().
|
signal |
|
signal |
Referenced by ProjectAutoNumConfigPage::removeContextFolio().
int QETProject::folioIndex | ( | const Diagram * | diagram | ) | const |
set the folio sheets quantity for this project
diagram | Pointer to a Diagram object |
Definition at line 220 of file qetproject.cpp.
References m_diagrams_list.
void QETProject::freezeExistentConductorLabel | ( | bool | freeze, |
int | from, | ||
int | to | ||
) |
QETProject::freezeExistentConductorLabel Freeze Existent Conductors in the selected folios.
from | - first folio index to apply freeze |
to | - last folio index to apply freeze |
Definition at line 684 of file qetproject.cpp.
References m_diagrams_list.
Referenced by ProjectAutoNumConfigPage::applyManagement().
void QETProject::freezeExistentElementLabel | ( | bool | freeze, |
int | from, | ||
int | to | ||
) |
QETProject::freezeExistentElementLabel Freeze Existent Elements in the selected folios.
from | - first folio index to apply freeze |
to | - last folio index to apply freeze |
Definition at line 724 of file qetproject.cpp.
References m_diagrams_list.
Referenced by ProjectAutoNumConfigPage::applyManagement().
void QETProject::freezeNewConductorLabel | ( | bool | freeze, |
int | from, | ||
int | to | ||
) |
QETProject::freezeNewConductorLabel Freeze New Conductors in the selected folios.
from | - first folio index to apply freeze |
to | - last folio index to apply freeze |
Definition at line 696 of file qetproject.cpp.
References m_diagrams_list.
Referenced by ProjectAutoNumConfigPage::applyManagement().
void QETProject::freezeNewElementLabel | ( | bool | freeze, |
int | from, | ||
int | to | ||
) |
QETProject::freezeNewElementLabel Freeze New Elements in the selected folios.
from | - first folio index to apply freeze |
to | - last folio index to apply freeze |
Definition at line 736 of file qetproject.cpp.
References m_diagrams_list.
Referenced by ProjectAutoNumConfigPage::applyManagement().
int QETProject::getFolioSheetsQuantity | ( | ) | const |
Get the folioSheetQuantity
Definition at line 195 of file qetproject.cpp.
References m_folio_sheets_quantity.
Referenced by addNewDiagramFolioList(), and ProjectView::loadDiagrams().
ElementsLocation QETProject::importElement | ( | ElementsLocation & | location | ) |
QETProject::importElement Import the element represented by to the embbeded collection of this project.
location |
Definition at line 962 of file qetproject.cpp.
References ImportElementDialog::action(), XmlElementCollection::addElement(), ElementsLocation::collectionPath(), XmlElementCollection::copy(), QET::Erase, XmlElementCollection::exist(), ElementsLocation::exist(), ElementsLocation::fileName(), QET::Ignore, ElementsLocation::isElement(), ElementsLocation::isFileSystem(), ElementsLocation::isProject(), m_elements_collection, ElementsLocation::parent(), ElementsLocation::project(), ElementsLocation::projectCollectionPath(), QET::Rename, and ElementsLocation::uuid().
Referenced by DiagramEventAddElement::buildElement().
|
private |
Definition at line 118 of file qetproject.cpp.
References TitleBlockTemplatesCollection::aboutToRemove(), BACKUP_INTERVAL, TitleBlockTemplatesCollection::changed(), m_autosave_timer, m_file_path, m_save_backup_timer, m_titleblocks_collection, m_undo_stack, removeDiagramsTitleBlockTemplate(), undoStackChanged(), updateDiagramsTitleBlockTemplate(), write(), and writeBackup().
Referenced by QETProject().
QString QETProject::integrateTitleBlockTemplate | ( | const TitleBlockTemplateLocation & | src_tbt, |
MoveTitleBlockTemplatesHandler * | handler | ||
) |
Integrate a title block template into this project.
src_tbt | The location of the title block template to be integrated into this project |
handler |
Definition at line 1052 of file qetproject.cpp.
References QET::Abort, QET::Erase, TitleBlockTemplateLocation::getTemplateXmlDescription(), QET::Ignore, m_titleblocks_collection, QET::Managed, TitleBlockTemplateLocation::name(), QET::Rename, QET::Retry, TitleBlockTemplatesProjectCollection::setTemplateXmlDescription(), TitleBlockTemplatesProjectCollection::templates(), and QET::Icons::tr.
Referenced by DiagramView::handleTitleBlockDrop(), and setDefaultTitleBlockProperties().
bool QETProject::isEmpty | ( | ) | const |
Definition at line 941 of file qetproject.cpp.
References m_diagrams_list, and project_title_.
bool QETProject::isFreezeNewConductors | ( | ) |
QETProject::isFreezeNewConductors.
Definition at line 706 of file qetproject.cpp.
References m_freeze_new_conductors.
Referenced by DiagramEventAddElement::addElement(), and MultiPasteDialog::on_m_button_box_accepted().
bool QETProject::isFreezeNewElements | ( | ) |
QETProject::freezeNewElements.
Definition at line 746 of file qetproject.cpp.
References m_freeze_new_elements.
bool QETProject::isReadOnly | ( | ) | const |
Definition at line 915 of file qetproject.cpp.
References m_file_path, m_read_only, and read_only_file_path_.
Referenced by addNewDiagram(), addNewDiagramFolioList(), ElementsLocation::isWritable(), pathNameTitle(), removeDiagram(), setTitle(), and write().
|
private |
Definition at line 1647 of file qetproject.cpp.
References NamesList::addName().
|
private |
file |
Definition at line 151 of file qetproject.cpp.
References FileOpenFailed, readProjectXml(), setFilePath(), setReadOnly(), and XmlParsingFailed.
Referenced by QETProject().
QString QETProject::pathNameTitle | ( | ) | const |
Definition at line 316 of file qetproject.cpp.
References isReadOnly(), m_file_path, m_modified, project_title_, and QET::Icons::tr.
|
signal |
Referenced by diagramOrderChanged(), DynamicElementTextItem::removeConnectionForReportFormula(), DynamicElementTextItem::setConnectionForReportFormula(), CrossRefItem::setUpConnection(), Conductor::setUpConnectionForFormula(), DynamicElementTextItem::setupFormulaConnection(), ElementTextItemGroup::updateXref(), and DynamicElementTextItem::updateXref().
|
signal |
Referenced by setFilePath().
|
signal |
Referenced by setFilePath(), setModified(), setTitle(), and write().
|
signal |
Referenced by setModified().
bool QETProject::projectOptionsWereModified | ( | ) |
Definition at line 1691 of file qetproject.cpp.
References m_modified.
Referenced by projectWasModified().
DiagramContext QETProject::projectProperties | ( | ) |
Definition at line 1700 of file qetproject.cpp.
References m_project_properties.
Referenced by autonum::AssignVariables::assignProjectVar().
|
signal |
Referenced by setTitle().
bool QETProject::projectWasModified | ( | ) |
Cette methode sert a reperer un projet vide, c-a-d un projet identique a ce que l'on obtient en faisant Fichier > Nouveau.
Definition at line 1721 of file qetproject.cpp.
References m_titleblocks_collection, m_undo_stack, projectOptionsWereModified(), and TitleBlockTemplatesProjectCollection::templates().
|
private |
QETProject::readDefaultPropertiesXml load default properties for new diagram, found in the xml of this project or by default find in the QElectroTech global conf.
xml_project | : the xml description of the project |
Definition at line 1433 of file qetproject.cpp.
References default_border_properties_, default_conductor_properties_, default_titleblock_properties_, ReportProperties::defaultProperties(), BorderProperties::defaultProperties(), TitleBlockProperties::defaultProperties(), XRefProperties::defaultProperties(), ConductorProperties::defaultProperties(), QET::findInDomElement(), BorderProperties::fromXml(), TitleBlockProperties::fromXml(), XRefProperties::fromXml(), NumerotationContext::fromXml(), ConductorProperties::fromXml(), m_conductor_autonum, m_current_conductor_autonum, m_current_element_autonum, m_default_report_properties, m_default_xref_properties, m_element_autonum, m_folio_autonum, m_freeze_new_conductors, m_freeze_new_elements, and setDefaultReportProperties().
Referenced by readProjectXml().
|
private |
QETProject::readDiagramsXml Load the diagrams from the xml description of the project. Note a project can have 0 diagram.
xml_project |
Definition at line 1315 of file qetproject.cpp.
References addDiagram(), QET::attributeIsAnInteger(), QET::Diagram, diagrams(), DialogWaiting::hasInstance(), DialogWaiting::instance(), DialogWaiting::progressBarValue(), DialogWaiting::setDetail(), DialogWaiting::setProgressBar(), DialogWaiting::setProgressBarRange(), DialogWaiting::setTitle(), setTitle(), Diagram::title(), and QET::Icons::tr.
Referenced by readProjectXml().
|
private |
QETProject::readElementsCollectionXml Load the diagrams from the xml description of the project.
xml_project | : the xml description of the project |
Definition at line 1395 of file qetproject.cpp.
References m_elements_collection.
Referenced by readProjectXml().
|
signal |
Referenced by setReadOnly().
|
private |
QETProject::readProjectPropertiesXml Load project properties from the XML description of the project.
xml_project | : the xml description of the project |
Definition at line 1421 of file qetproject.cpp.
References QET::findInDomElement(), DiagramContext::fromXml(), and m_project_properties.
Referenced by readProjectXml().
|
private |
QETProject::readProjectXml Read and make the project from an xml description.
xml_project | : the description of the project from an xml |
Definition at line 1246 of file qetproject.cpp.
References addNewDiagramFolioList(), QET::Icons::Cancel, FileOpenDiscard, TitleBlockTemplatesProjectCollection::fromXml(), m_project_qet_version, m_state, m_titleblocks_collection, Ok, ProjectParsingFailed, ProjectParsingRunning, readDefaultPropertiesXml(), readDiagramsXml(), readElementsCollectionXml(), readProjectPropertiesXml(), setTitle(), QET::Icons::tr, QET::version, and QET::QetMessageBox::warning().
Referenced by openFile().
void QETProject::removeConductorAutoNum | ( | const QString & | key | ) |
QETProject::removeConductorAutoNum Remove Conductor Numerotation Context stored with key.
key |
Definition at line 621 of file qetproject.cpp.
References m_conductor_autonum.
|
slot |
Enleve un schema du projet et emet le signal diagramRemoved
diagram | le schema a enlever |
Definition at line 1197 of file qetproject.cpp.
References diagramRemoved(), isReadOnly(), m_diagrams_list, and updateDiagramsFolioData().
|
privateslot |
Inform each diagram that the template_name title block is about to be removed.
collection | Title block templates collection |
template_name | Name of the removed template |
Definition at line 1798 of file qetproject.cpp.
References m_diagrams_list.
Referenced by init().
void QETProject::removeElementAutoNum | ( | const QString & | key | ) |
QETProject::removeElementAutonum Remove Element Numerotation Context stored with key.
key |
Definition at line 630 of file qetproject.cpp.
References elementAutoNumRemoved(), and m_element_autonum.
Referenced by ProjectAutoNumConfigPage::removeContextElement().
void QETProject::removeFolioAutoNum | ( | const QString & | key | ) |
QETProject::removeFolioAutonum Remove Folio Numerotation Context stored with key.
key |
Definition at line 641 of file qetproject.cpp.
References m_folio_autonum.
|
signal |
void QETProject::setAutoConductor | ( | bool | ac | ) |
ac | Enable the use of auto conductor if true See also Q_PROPERTY autoConductor |
Definition at line 774 of file qetproject.cpp.
References m_auto_conductor.
void QETProject::setAutoElement | ( | bool | ae | ) |
void QETProject::setCurrentConductorAutoNum | ( | QString | autoNum | ) |
QETProject::setCurrentConductorAutoNum.
autoNum | set the current conductor autonum to |
Definition at line 569 of file qetproject.cpp.
References m_current_conductor_autonum.
Referenced by MultiPasteDialog::on_m_button_box_accepted(), AutoNumberingDockWidget::on_m_conductor_cb_activated(), and ProjectAutoNumConfigPage::saveContextConductor().
void QETProject::setCurrrentElementAutonum | ( | QString | autoNum | ) |
QETProject::setCurrrentElementAutonum.
autoNum | : set the current element autonum to |
Definition at line 540 of file qetproject.cpp.
References m_current_element_autonum.
Referenced by MultiPasteDialog::on_m_button_box_accepted(), AutoNumberingDockWidget::on_m_element_cb_activated(), and ProjectAutoNumConfigPage::saveContextElement().
void QETProject::setDefaultBorderProperties | ( | const BorderProperties & | border | ) |
Permet de specifier les dimensions par defaut utilisees lors de la creation d'un nouveau schema dans ce projet.
border | dimensions d'un schema |
Definition at line 407 of file qetproject.cpp.
References default_border_properties_.
void QETProject::setDefaultConductorProperties | ( | const ConductorProperties & | conductor | ) |
Permet de specifier e type de conducteur par defaut utilise lors de la creation d'un nouveau schema dans ce projet.
Definition at line 463 of file qetproject.cpp.
References default_conductor_properties_.
void QETProject::setDefaultReportProperties | ( | const QString & | properties | ) |
Definition at line 471 of file qetproject.cpp.
References m_default_report_properties, and reportPropertiesChanged().
Referenced by readDefaultPropertiesXml().
void QETProject::setDefaultTitleBlockProperties | ( | const TitleBlockProperties & | titleblock | ) |
QETProject::setDefaultTitleBlockProperties Specify the title block to be used at the creation of a new diagram for this project.
titleblock |
Definition at line 424 of file qetproject.cpp.
References TitleBlockProperties::collection, QET::Common, QETApp::commonTitleBlockTemplatesCollection(), QET::Custom, QETApp::customTitleBlockTemplatesCollection(), default_titleblock_properties_, defaultTitleBlockPropertiesChanged(), QET::Embedded, integrateTitleBlockTemplate(), and TitleBlockProperties::template_name.
Referenced by AutoNumberingDockWidget::on_m_folio_cb_activated().
void QETProject::setDefaultXRefProperties | ( | const QString & | type, |
const XRefProperties & | properties | ||
) |
Definition at line 479 of file qetproject.cpp.
References m_default_xref_properties, and XRefPropertiesChanged().
void QETProject::setDefaultXRefProperties | ( | QHash< QString, XRefProperties > | hash | ) |
Definition at line 484 of file qetproject.cpp.
References m_default_xref_properties, and XRefPropertiesChanged().
void QETProject::setFilePath | ( | const QString & | filepath | ) |
QETProject::setFilePath Set the filepath of this project file Set a file path also create a backup file according to the path. If a previous path was set, the previous backup file is deleted and a new one is created according to the path.
filepath |
Definition at line 255 of file qetproject.cpp.
References DiagramContext::addValue(), filePath(), m_backup_file, m_file_path, m_project_properties, projectFilePathChanged(), projectInformationsChanged(), setReadOnly(), and updateDiagramsFolioData().
Referenced by openFile(), and QETProject().
void QETProject::setFolioSheetsQuantity | ( | int | quantity | ) |
get the folio sheets quantity for this project
Set the folioSheetQuantity to quantity
New | value of quantity to be set. |
Definition at line 203 of file qetproject.cpp.
References m_folio_sheets_quantity.
Referenced by addNewDiagramFolioList().
void QETProject::setFreezeNewConductors | ( | bool | set | ) |
QETProject::setfreezeNewConductors Set Project Wide freeze new conductors.
Definition at line 714 of file qetproject.cpp.
References m_freeze_new_conductors.
Referenced by ProjectAutoNumConfigPage::applyManagement().
void QETProject::setFreezeNewElements | ( | bool | set | ) |
QETProject::setfreezeNewElements Set Project Wide freeze new elements.
Definition at line 754 of file qetproject.cpp.
References m_freeze_new_elements.
Referenced by ProjectAutoNumConfigPage::applyManagement().
|
slot |
Mark this project as modified and emit the projectModified() signal.
Definition at line 1233 of file qetproject.cpp.
References m_modified, projectInformationsChanged(), and projectModified().
Referenced by diagramOrderChanged(), ProjectView::loadDiagrams(), undoStackChanged(), and write().
void QETProject::setProjectProperties | ( | const DiagramContext & | context | ) |
Use context as project-wide properties made available to child diagrams.
Definition at line 1707 of file qetproject.cpp.
References m_project_properties, and updateDiagramsFolioData().
void QETProject::setReadOnly | ( | bool | read_only | ) |
QETProject::setReadOnly Set this project to read only if = true.
read_only |
Definition at line 924 of file qetproject.cpp.
References m_file_path, m_read_only, read_only_file_path_, and readOnlyChanged().
Referenced by openFile(), QETProject(), and setFilePath().
void QETProject::setTitle | ( | const QString & | title | ) |
title | le nouveau titre du projet |
Definition at line 381 of file qetproject.cpp.
References isReadOnly(), project_title_, projectInformationsChanged(), projectTitleChanged(), title(), and updateDiagramsFolioData().
Referenced by readDiagramsXml(), and readProjectXml().
QETProject::ProjectState QETProject::state | ( | ) | const |
Cette methode peut etre utilisee pour tester la bonne ouverture d'un projet
Definition at line 187 of file qetproject.cpp.
References m_state.
Referenced by QETDiagramEditor::openBackupFiles().
QString QETProject::title | ( | ) | const |
Definition at line 365 of file qetproject.cpp.
References project_title_.
Referenced by autoFolioNumberingSelectedFolios(), XmlProjectElementCollectionItem::localName(), setTitle(), toXml(), ProjectView::tryClosingDiagrams(), and updateDiagramsFolioData().
QDomDocument QETProject::toXml | ( | ) |
Definition at line 811 of file qetproject.cpp.
References TitleBlockTemplatesProjectCollection::getTemplateXmlDescription(), m_diagrams_list, m_elements_collection, m_folio_sheets_quantity, m_titleblocks_collection, project_title_, XmlElementCollection::root(), TitleBlockTemplatesProjectCollection::templates(), title(), Diagram::toXml(), QET::version, writeDefaultPropertiesXml(), and writeProjectPropertiesXml().
Referenced by write(), and writeBackup().
|
inline |
Definition at line 164 of file qetproject.h.
References m_undo_stack.
Referenced by ProjectView::doSave(), SearchAndReplaceWorker::replaceAdvanced(), SearchAndReplaceWorker::replaceConductor(), SearchAndReplaceWorker::replaceDiagram(), SearchAndReplaceWorker::replaceElement(), SearchAndReplaceWorker::replaceIndiText(), and Diagram::undoStack().
|
inlineprivateslot |
QList< ElementsLocation > QETProject::unusedElements | ( | ) | const |
Definition at line 1104 of file qetproject.cpp.
References XmlElementCollection::elementsLocation(), ElementsLocation::isElement(), m_elements_collection, and usesElement().
Referenced by XmlElementCollection::cleanUnusedElement().
|
privateslot |
Indique a chaque schema du projet quel est son numero de folio et combien de folio le projet contient.
Definition at line 1736 of file qetproject.cpp.
References DiagramContext::addValue(), filePath(), folioAutoNum(), m_diagrams_list, m_project_properties, NumerotationContextCommands::next(), title(), and NumerotationContextCommands::toRepresentedString().
Referenced by addDiagram(), diagramOrderChanged(), removeDiagram(), setFilePath(), setProjectProperties(), setTitle(), and write().
|
privateslot |
Inform each diagram that the template_name title block changed.
collection | Title block templates collection |
template_name | Name of the changed template |
Definition at line 1785 of file qetproject.cpp.
References m_diagrams_list.
Referenced by init().
|
privateslot |
Handles the fact a digram changed the title block template it used
template_name | Name of the template |
Definition at line 1811 of file qetproject.cpp.
References diagramUsedTemplate(), and embeddedTitleBlockTemplatesCollection().
Referenced by addDiagram().
bool QETProject::usesElement | ( | const ElementsLocation & | location | ) | const |
Permet de savoir si un element est utilise dans un projet
location | Emplacement d'un element |
Definition at line 1087 of file qetproject.cpp.
References diagrams().
Referenced by unusedElements().
bool QETProject::usesTitleBlockTemplate | ( | const TitleBlockTemplateLocation & | location | ) |
location | Location of a title block template |
Definition at line 1120 of file qetproject.cpp.
References diagrams(), TitleBlockTemplateLocation::name(), and TitleBlockTemplateLocation::parentProject().
QETResult QETProject::write | ( | ) |
QETProject::write Save the project in a file.
Definition at line 882 of file qetproject.cpp.
References DiagramContext::addValue(), filePath(), isReadOnly(), m_file_path, m_project_properties, projectInformationsChanged(), setModified(), toXml(), updateDiagramsFolioData(), and QET::writeXmlFile().
Referenced by init().
|
private |
QETProject::writeBackup Write a backup file of this project, in the case that QET crash.
Definition at line 1675 of file qetproject.cpp.
References m_backup_file, toXml(), and QET::writeToFile().
Referenced by init().
|
private |
QETProject::writeDefaultPropertiesXml Export all defaults properties used by a new diagram and his content #size of border #content of titleblock #default conductor #defaut folio report #default Xref.
xml_element | xml element to use for store default propertie. |
Definition at line 1538 of file qetproject.cpp.
References conductorAutoNum(), conductorAutoNumFormula(), default_border_properties_, default_conductor_properties_, default_titleblock_properties_, defaultReportProperties(), defaultXRefProperties(), elementAutoNum(), elementAutoNumFormula(), folioAutoNum(), m_current_conductor_autonum, m_current_element_autonum, m_freeze_new_conductors, m_freeze_new_elements, BorderProperties::toXml(), TitleBlockProperties::toXml(), and ConductorProperties::toXml().
Referenced by toXml().
|
private |
Export project properties under the xml_element XML element.
Definition at line 1524 of file qetproject.cpp.
References m_project_properties, and DiagramContext::toXml().
Referenced by toXml().
|
signal |
|
private |
Default dimensions and properties for new diagrams created within the project.
Definition at line 237 of file qetproject.h.
Referenced by defaultBorderProperties(), readDefaultPropertiesXml(), setDefaultBorderProperties(), and writeDefaultPropertiesXml().
|
private |
Default conductor properties for new diagrams created within the project.
Definition at line 239 of file qetproject.h.
Referenced by defaultConductorProperties(), readDefaultPropertiesXml(), setDefaultConductorProperties(), and writeDefaultPropertiesXml().
|
private |
Default title block properties for new diagrams created within the project.
Definition at line 241 of file qetproject.h.
Referenced by defaultTitleBlockProperties(), readDefaultPropertiesXml(), setDefaultTitleBlockProperties(), and writeDefaultPropertiesXml().
|
private |
Definition at line 262 of file qetproject.h.
Referenced by setAutoConductor().
|
private |
Definition at line 266 of file qetproject.h.
Referenced by init().
|
private |
Definition at line 268 of file qetproject.h.
Referenced by setFilePath(), and writeBackup().
|
private |
Conductor auto numerotation.
Definition at line 253 of file qetproject.h.
Referenced by addConductorAutoNum(), conductorAutoNum(), conductorAutoNumFormula(), readDefaultPropertiesXml(), and removeConductorAutoNum().
|
private |
Definition at line 254 of file qetproject.h.
Referenced by conductorCurrentAutoNum(), readDefaultPropertiesXml(), setCurrentConductorAutoNum(), and writeDefaultPropertiesXml().
|
private |
Definition at line 259 of file qetproject.h.
Referenced by elementAutoNumCurrentFormula(), elementCurrentAutoNum(), readDefaultPropertiesXml(), setCurrrentElementAutonum(), and writeDefaultPropertiesXml().
|
private |
Default report properties.
Definition at line 243 of file qetproject.h.
Referenced by defaultReportProperties(), readDefaultPropertiesXml(), and setDefaultReportProperties().
|
private |
Default xref properties.
Definition at line 245 of file qetproject.h.
Referenced by defaultXRefProperties(), readDefaultPropertiesXml(), and setDefaultXRefProperties().
|
private |
Diagrams carried by the project.
Definition at line 225 of file qetproject.h.
Referenced by addDiagram(), autoFolioNumberingSelectedFolios(), diagramOrderChanged(), diagrams(), folioIndex(), freezeExistentConductorLabel(), freezeExistentElementLabel(), freezeNewConductorLabel(), freezeNewElementLabel(), isEmpty(), removeDiagram(), removeDiagramsTitleBlockTemplate(), toXml(), updateDiagramsFolioData(), updateDiagramsTitleBlockTemplate(), and ~QETProject().
|
private |
Element Auto Numbering.
Definition at line 258 of file qetproject.h.
Referenced by addElementAutoNum(), elementAutoNum(), elementAutoNumFormula(), readDefaultPropertiesXml(), and removeElementAutoNum().
|
private |
Definition at line 263 of file qetproject.h.
Referenced by embeddedElementCollection(), importElement(), QETProject(), readElementsCollectionXml(), toXml(), and unusedElements().
|
private |
File path this project is saved to.
Definition at line 221 of file qetproject.h.
Referenced by currentDir(), filePath(), init(), isReadOnly(), pathNameTitle(), QETProject(), setFilePath(), setReadOnly(), and write().
|
private |
Folio auto numbering.
Definition at line 256 of file qetproject.h.
Referenced by addFolioAutoNum(), folioAutoNum(), readDefaultPropertiesXml(), and removeFolioAutoNum().
|
private |
Folio List Sheets quantity for this project.
Definition at line 261 of file qetproject.h.
Referenced by getFolioSheetsQuantity(), setFolioSheetsQuantity(), and toXml().
|
private |
Definition at line 265 of file qetproject.h.
Referenced by isFreezeNewConductors(), readDefaultPropertiesXml(), setFreezeNewConductors(), and writeDefaultPropertiesXml().
|
private |
Definition at line 264 of file qetproject.h.
Referenced by isFreezeNewElements(), readDefaultPropertiesXml(), setFreezeNewElements(), and writeDefaultPropertiesXml().
|
private |
Whether options were modified.
Definition at line 231 of file qetproject.h.
Referenced by pathNameTitle(), projectOptionsWereModified(), and setModified().
|
private |
project-wide variables that will be made available to child diagrams
Definition at line 249 of file qetproject.h.
Referenced by autoFolioNumberingSelectedFolios(), projectProperties(), readProjectPropertiesXml(), setFilePath(), setProjectProperties(), updateDiagramsFolioData(), write(), and writeProjectPropertiesXml().
|
private |
QElectroTech version declared in the XML document at opening time.
Definition at line 229 of file qetproject.h.
Referenced by declaredQElectroTechVersion(), and readProjectXml().
|
private |
Whether the project is read only.
Definition at line 233 of file qetproject.h.
Referenced by isReadOnly(), and setReadOnly().
|
private |
Definition at line 266 of file qetproject.h.
Referenced by init().
|
private |
Current state of the project.
Definition at line 223 of file qetproject.h.
Referenced by QETProject(), readProjectXml(), and state().
|
private |
Embedded title block templates collection.
Definition at line 247 of file qetproject.h.
Referenced by embeddedTitleBlockTemplatesCollection(), init(), integrateTitleBlockTemplate(), projectWasModified(), readProjectXml(), and toXml().
|
private |
undo stack for this project
Definition at line 251 of file qetproject.h.
Referenced by init(), projectWasModified(), and undoStack().
|
private |
Project title.
Definition at line 227 of file qetproject.h.
Referenced by isEmpty(), pathNameTitle(), setTitle(), title(), and toXml().
|
private |
Filepath for which this project is considered read only.
Definition at line 235 of file qetproject.h.
Referenced by isReadOnly(), and setReadOnly().
|
readwrite |
Definition at line 60 of file qetproject.h.