QElectroTech
0.8-dev
|
#include <qetproject.h>
Inherits QObject.
Public Types | |
enum | ProjectState { Ok = 0, FileOpenFailed = 1, XmlParsingFailed = 2, ProjectParsingRunning = 3, ProjectParsingFailed = 4, FileOpenDiscard = 5 } |
Public Slots | |
Diagram * | addNewDiagram (int pos=-1) |
QETProject::addNewDiagram Add a new diagram in project at position pos. More... | |
void | removeDiagram (Diagram *) |
QETProject::removeDiagram Remove diagram from project. More... | |
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... | |
projectDataBase * | dataBase () |
QETProject::dataBase. More... | |
QUuid | uuid () const |
QETProject::uuid. More... | |
ProjectState | state () const |
QList< Diagram * > | diagrams () const |
int | folioIndex (const Diagram *) const |
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 key. 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 key. If key is not found, return an empty numerotation context. More... | |
NumerotationContext | elementAutoNum (const QString &key) |
QETProject::elementAutoNum Return element numerotation context stored with key. 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 |
QETProject::autoConductor. More... | |
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 () |
QETProject::toXml. More... | |
bool | close () |
QETResult | write () |
QETProject::write Save the project in a file. More... | |
bool | isReadOnly () const |
QETProject::isReadOnly. More... | |
void | setReadOnly (bool) |
QETProject::setReadOnly Set this project to read only if read_only = true. More... | |
bool | isEmpty () const |
ElementsLocation | importElement (ElementsLocation &location) |
QETProject::importElement Import the element represented by location to the embbeded collection of this project. More... | |
QString | integrateTitleBlockTemplate (const TitleBlockTemplateLocation &, MoveTitleBlockTemplatesHandler *handler) |
QETProject::integrateTitleBlockTemplate Integrate a title block template into this project. More... | |
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 |
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 *diagram, int pos=-1) |
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_ = BorderProperties::defaultProperties() |
Default dimensions and properties for new diagrams created within the project. More... | |
ConductorProperties | default_conductor_properties_ = ConductorProperties::defaultProperties() |
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 = ReportProperties::defaultProperties() |
Default report properties. More... | |
QHash< QString, XRefProperties > | m_default_xref_properties = XRefProperties::defaultProperties() |
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 |
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 |
QUuid | m_uuid = QUuid::createUuid() |
projectDataBase | m_data_base |
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.
QETProject::QETProject | ( | QObject * | parent = nullptr | ) |
QETProject::QETProject Create a empty project.
parent |
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 |
QETProject::QETProject | ( | KAutoSaveFile * | backup, |
QObject * | parent = nullptr |
||
) |
backup | : backup file to open, QETProject take ownership of backup. |
parent | : parent QObject |
|
override |
QETProject::~QETProject Destructor.
|
private |
|
signal |
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 |
|
private |
QETProject::addDiagram Add a diagram in this project.
diagram | added diagram |
pos | postion of the new diagram, by default at the end |
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 |
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 |
|
slot |
QETProject::addNewDiagram Add a new diagram in project at position pos.
pos |
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.
void QETProject::autoFolioNumberingSelectedFolios | ( | int | from, |
int | to, | ||
const QString & | autonum | ||
) |
QETProject::autoFolioNumberingNewFolios.
from | |
to | |
autonum | : used, index from selected tabs "from" and "to" rename folios with selected autonum |
bool QETProject::close | ( | ) |
Ferme le projet
QHash< QString, NumerotationContext > QETProject::conductorAutoNum | ( | ) | const |
NumerotationContext QETProject::conductorAutoNum | ( | const QString & | key | ) | const |
QETProject::conductorAutoNum Return conductor numerotation context stored with key. If key is not found, return an empty numerotation context.
key |
|
signal |
|
signal |
QString QETProject::conductorAutoNumFormula | ( | const QString & | key | ) | const |
QETProject::conductorAutoNumFormula.
key | : autonum title |
|
signal |
QString QETProject::conductorCurrentAutoNum | ( | ) | const |
QETProject::conductorCurrentAutoNum.
QString QETProject::currentDir | ( | ) | const |
projectDataBase * QETProject::dataBase | ( | ) |
qreal QETProject::declaredQElectroTechVersion | ( | ) |
BorderProperties QETProject::defaultBorderProperties | ( | ) | const |
DEFAULT PROPERTIES.
ConductorProperties QETProject::defaultConductorProperties | ( | ) | const |
QString QETProject::defaultReportProperties | ( | ) | const |
TitleBlockProperties QETProject::defaultTitleBlockProperties | ( | ) | const |
|
signal |
|
inline |
|
inline |
|
signal |
|
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" |
|
signal |
QList< Diagram * > QETProject::diagrams | ( | ) | const |
|
signal |
QHash< QString, NumerotationContext > QETProject::elementAutoNum | ( | ) | const |
NumerotationContext QETProject::elementAutoNum | ( | const QString & | key | ) |
QETProject::elementAutoNum Return element numerotation context stored with key. If key is not found, return an empty numerotation context.
key |
|
signal |
QString QETProject::elementAutoNumCurrentFormula | ( | ) | const |
QETProject::elementAutoNumCurrentFormula.
QString QETProject::elementAutoNumFormula | ( | const QString & | key | ) | const |
QETProject::elementAutoNumFormula.
key | : autonum title |
|
signal |
QString QETProject::elementCurrentAutoNum | ( | ) | const |
QETProject::elementCurrentAutoNum.
XmlElementCollection * QETProject::embeddedElementCollection | ( | ) | const |
QETProject::embeddedCollection.
TitleBlockTemplatesProjectCollection * QETProject::embeddedTitleBlockTemplatesCollection | ( | ) |
QString QETProject::filePath | ( | ) |
QHash< QString, NumerotationContext > QETProject::folioAutoNum | ( | ) | const |
NumerotationContext QETProject::folioAutoNum | ( | const QString & | key | ) | const |
QETProject::folioAutoNum Return folio numerotation context stored with key. If key is not found, return an empty numerotation context.
key |
|
signal |
|
signal |
|
signal |
int QETProject::folioIndex | ( | const Diagram * | diagram | ) | const |
diagram | Pointer to a Diagram object |
void QETProject::freezeExistentConductorLabel | ( | bool | freeze, |
int | from, | ||
int | to | ||
) |
QETProject::freezeExistentConductorLabel Freeze Existent Conductors in the selected folios.
freeze | |
from | - first folio index to apply freeze |
to | - last folio index to apply freeze |
void QETProject::freezeExistentElementLabel | ( | bool | freeze, |
int | from, | ||
int | to | ||
) |
QETProject::freezeExistentElementLabel Freeze Existent Elements in the selected folios.
freeze | |
from | - first folio index to apply freeze |
to | - last folio index to apply freeze |
void QETProject::freezeNewConductorLabel | ( | bool | freeze, |
int | from, | ||
int | to | ||
) |
QETProject::freezeNewConductorLabel Freeze New Conductors in the selected folios.
freeze | |
from | - first folio index to apply freeze |
to | - last folio index to apply freeze |
void QETProject::freezeNewElementLabel | ( | bool | freeze, |
int | from, | ||
int | to | ||
) |
QETProject::freezeNewElementLabel Freeze New Elements in the selected folios.
freeze | |
from | - first folio index to apply freeze |
to | - last folio index to apply freeze |
ElementsLocation QETProject::importElement | ( | ElementsLocation & | location | ) |
QETProject::importElement Import the element represented by location to the embbeded collection of this project.
location |
|
private |
QString QETProject::integrateTitleBlockTemplate | ( | const TitleBlockTemplateLocation & | src_tbt, |
MoveTitleBlockTemplatesHandler * | handler | ||
) |
QETProject::integrateTitleBlockTemplate Integrate a title block template into this project.
src_tbt | The location of the title block template to be integrated into this project |
handler |
bool QETProject::isEmpty | ( | ) | const |
bool QETProject::isFreezeNewConductors | ( | ) |
QETProject::isFreezeNewConductors.
bool QETProject::isFreezeNewElements | ( | ) |
QETProject::freezeNewElements.
bool QETProject::isReadOnly | ( | ) | const |
|
private |
|
private |
file |
QString QETProject::pathNameTitle | ( | ) | const |
|
signal |
|
signal |
|
signal |
|
signal |
bool QETProject::projectOptionsWereModified | ( | ) |
DiagramContext QETProject::projectProperties | ( | ) |
|
signal |
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.
|
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 |
|
private |
QETProject::readDiagramsXml Load the diagrams from the xml description of the project. Note a project can have 0 diagram.
xml_project |
|
private |
QETProject::readElementsCollectionXml Load the diagrams from the xml description of the project.
xml_project | : the xml description of the project |
|
signal |
|
private |
QETProject::readProjectPropertiesXml Load project properties from the XML description of the project.
xml_project | : the xml description of the project |
|
private |
QETProject::readProjectXml Read and make the project from an xml description.
xml_project | : the description of the project from an xml |
void QETProject::removeConductorAutoNum | ( | const QString & | key | ) |
QETProject::removeConductorAutoNum Remove Conductor Numerotation Context stored with key.
key |
|
slot |
QETProject::removeDiagram Remove diagram from project.
diagram |
|
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 |
void QETProject::removeElementAutoNum | ( | const QString & | key | ) |
QETProject::removeElementAutonum Remove Element Numerotation Context stored with key.
key |
void QETProject::removeFolioAutoNum | ( | const QString & | key | ) |
QETProject::removeFolioAutonum Remove Folio Numerotation Context stored with key.
key |
|
signal |
void QETProject::setAutoConductor | ( | bool | ac | ) |
ac | Enable the use of auto conductor if true See also Q_PROPERTY autoConductor |
void QETProject::setAutoElement | ( | bool | ae | ) |
void QETProject::setCurrentConductorAutoNum | ( | QString | autoNum | ) |
QETProject::setCurrentConductorAutoNum.
autoNum | set the current conductor autonum to autonum |
void QETProject::setCurrrentElementAutonum | ( | QString | autoNum | ) |
QETProject::setCurrrentElementAutonum.
autoNum | : set the current element autonum to autonum |
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 |
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.
void QETProject::setDefaultReportProperties | ( | const QString & | properties | ) |
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 |
void QETProject::setDefaultXRefProperties | ( | const QString & | type, |
const XRefProperties & | properties | ||
) |
void QETProject::setDefaultXRefProperties | ( | QHash< QString, XRefProperties > | hash | ) |
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 |
void QETProject::setFreezeNewConductors | ( | bool | set | ) |
QETProject::setfreezeNewConductors Set Project Wide freeze new conductors.
void QETProject::setFreezeNewElements | ( | bool | set | ) |
QETProject::setfreezeNewElements Set Project Wide freeze new elements.
|
slot |
Mark this project as modified and emit the projectModified() signal.
void QETProject::setProjectProperties | ( | const DiagramContext & | context | ) |
Use context as project-wide properties made available to child diagrams.
void QETProject::setReadOnly | ( | bool | read_only | ) |
QETProject::setReadOnly Set this project to read only if read_only = true.
read_only |
void QETProject::setTitle | ( | const QString & | title | ) |
title | le nouveau titre du projet |
QETProject::ProjectState QETProject::state | ( | ) | const |
Cette methode peut etre utilisee pour tester la bonne ouverture d'un projet
QString QETProject::title | ( | ) | const |
QDomDocument QETProject::toXml | ( | ) |
|
inline |
|
inlineprivateslot |
QList< ElementsLocation > QETProject::unusedElements | ( | ) | const |
|
privateslot |
Indique a chaque schema du projet quel est son numero de folio et combien de folio le projet contient.
|
privateslot |
Inform each diagram that the template_name title block changed.
collection | Title block templates collection |
template_name | Name of the changed template |
|
privateslot |
Handles the fact a digram changed the title block template it used
template_name | Name of the template |
bool QETProject::usesElement | ( | const ElementsLocation & | location | ) | const |
Permet de savoir si un element est utilise dans un projet
location | Emplacement d'un element |
bool QETProject::usesTitleBlockTemplate | ( | const TitleBlockTemplateLocation & | location | ) |
location | Location of a title block template |
QUuid QETProject::uuid | ( | ) | const |
QETResult QETProject::write | ( | ) |
QETProject::write Save the project in a file.
|
private |
QETProject::writeBackup Write a backup file of this project, in the case that QET crash.
|
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. |
|
private |
Export project properties under the xml_element XML element.
|
signal |
|
private |
Default dimensions and properties for new diagrams created within the project.
|
private |
Default conductor properties for new diagrams created within the project.
|
private |
Default title block properties for new diagrams created within the project.
|
private |
|
private |
|
private |
|
private |
Conductor auto numerotation.
|
private |
|
private |
|
private |
|
private |
Default report properties.
|
private |
Default xref properties.
|
private |
Diagrams carried by the project.
|
private |
Element Auto Numbering.
|
private |
|
private |
File path this project is saved to.
|
private |
Folio auto numbering.
|
private |
|
private |
|
private |
Whether options were modified.
|
private |
project-wide variables that will be made available to child diagrams
|
private |
QElectroTech version declared in the XML document at opening time.
|
private |
Whether the project is read only.
|
private |
|
private |
Current state of the project.
|
private |
Embedded title block templates collection.
|
private |
undo stack for this project
|
private |
|
private |
Project title.
|
private |
Filepath for which this project is considered read only.
|
readwrite |