QElectroTech 0.100.0-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. | |
void | removeDiagram (Diagram *) |
QETProject::removeDiagram Remove diagram from project. | |
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. | |
QETProject (const QString &path, QObject *=nullptr) | |
QETProject::QETProject Construct a project from a .qet file. | |
QETProject (KAutoSaveFile *backup, QObject *parent=nullptr) | |
QETProject::QETProject. | |
~QETProject () override | |
QETProject::~QETProject Destructor. | |
ProjectPropertiesHandler & | projectPropertiesHandler () |
projectDataBase * | dataBase () |
QETProject::dataBase. | |
QUuid | uuid () const |
QETProject::uuid. | |
ProjectState | state () const |
QList< Diagram * > | diagrams () const |
int | folioIndex (const Diagram *) const |
XmlElementCollection * | embeddedElementCollection () const |
QETProject::embeddedCollection. | |
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. | |
QString | currentDir () const |
QString | pathNameTitle () const |
QString | title () const |
QVersionNumber | declaredQElectroTechVersion () |
void | setTitle (const QString &) |
BorderProperties | defaultBorderProperties () const |
DEFAULT PROPERTIES. | |
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. | |
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. | |
QHash< QString, NumerotationContext > | elementAutoNum () const |
QETProject::elementAutoNum. | |
QHash< QString, NumerotationContext > | folioAutoNum () const |
QETProject::folioAutoNum. | |
void | addConductorAutoNum (const QString &key, const NumerotationContext &context) |
QETProject::addConductorAutoNum Add a new conductor numerotation context. If key already exist, replace old context with the new context. | |
void | addElementAutoNum (const QString &key, const NumerotationContext &context) |
QETProject::addElementAutoNum Add a new element numerotation context. If key already exist, replace old context with the new context. | |
void | addFolioAutoNum (const QString &key, const NumerotationContext &context) |
QETProject::addFolioAutoNum Add a new folio numerotation context. If key already exist, replace old context with the new context. | |
void | removeConductorAutoNum (const QString &key) |
QETProject::removeConductorAutoNum Remove Conductor Numerotation Context stored with key. | |
void | removeElementAutoNum (const QString &key) |
QETProject::removeElementAutonum Remove Element Numerotation Context stored with key. | |
void | removeFolioAutoNum (const QString &key) |
QETProject::removeFolioAutonum Remove Folio Numerotation Context stored with key. | |
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. | |
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. | |
NumerotationContext | elementAutoNum (const QString &key) |
QETProject::elementAutoNum Return element numerotation context stored with key. If key is not found, return an empty numerotation context. | |
QString | conductorAutoNumFormula (const QString &key) const |
QETProject::conductorAutoNumFormula. | |
QString | conductorCurrentAutoNum () const |
QETProject::conductorCurrentAutoNum. | |
void | setCurrentConductorAutoNum (QString autoNum) |
QETProject::setCurrentConductorAutoNum. | |
QString | elementAutoNumFormula (const QString &key) const |
QETProject::elementAutoNumFormula. | |
QString | elementAutoNumCurrentFormula () const |
QETProject::elementAutoNumCurrentFormula. | |
QString | elementCurrentAutoNum () const |
QETProject::elementCurrentAutoNum. | |
void | setCurrrentElementAutonum (QString autoNum) |
QETProject::setCurrrentElementAutonum. | |
void | freezeExistentElementLabel (bool freeze, int from, int to) |
QETProject::freezeExistentElementLabel Freeze Existent Elements in the selected folios. | |
void | freezeNewElementLabel (bool freeze, int from, int to) |
QETProject::freezeNewElementLabel Freeze New Elements in the selected folios. | |
bool | isFreezeNewElements () |
QETProject::freezeNewElements. | |
void | setFreezeNewElements (bool) |
QETProject::setfreezeNewElements Set Project Wide freeze new elements. | |
void | freezeExistentConductorLabel (bool freeze, int from, int to) |
QETProject::freezeExistentConductorLabel Freeze Existent Conductors in the selected folios. | |
void | freezeNewConductorLabel (bool freeze, int from, int to) |
QETProject::freezeNewConductorLabel Freeze New Conductors in the selected folios. | |
bool | isFreezeNewConductors () |
QETProject::isFreezeNewConductors. | |
void | setFreezeNewConductors (bool) |
QETProject::setfreezeNewConductors Set Project Wide freeze new conductors. | |
bool | autoConductor () const |
QETProject::autoConductor. | |
bool | autoElement () const |
bool | autoFolio () const |
void | setAutoConductor (bool ac) |
QETProject::setAutoConductor. | |
void | setAutoElement (bool ae) |
void | autoFolioNumberingNewFolios () |
QETProject::autoFolioNumberingNewFolios emit Signal to add new Diagram with autonum properties. | |
void | autoFolioNumberingSelectedFolios (int, int, const QString &) |
QETProject::autoFolioNumberingNewFolios. | |
QDomDocument | toXml () |
QETProject::toXml. | |
bool | close () |
QETResult | write () |
QETProject::write Save the project in a file. | |
bool | isReadOnly () const |
QETProject::isReadOnly. | |
void | setReadOnly (bool) |
QETProject::setReadOnly Set this project to read only if read_only = true. | |
bool | isEmpty () const |
ElementsLocation | importElement (ElementsLocation &location) |
QETProject::importElement Import the element represented by location to the embedded collection of this project. | |
QString | integrateTitleBlockTemplate (const TitleBlockTemplateLocation &, MoveTitleBlockTemplatesHandler *handler) |
QETProject::integrateTitleBlockTemplate Integrate a title block template into this project. | |
bool | usesElement (const ElementsLocation &) const |
QList< ElementsLocation > | unusedElements () const |
QETProject::unusedElements. | |
bool | usesTitleBlockTemplate (const TitleBlockTemplateLocation &) |
bool | projectWasModified () |
bool | projectOptionsWereModified () |
DiagramContext | projectProperties () |
void | setProjectProperties (const DiagramContext &) |
QUndoStack * | undoStack () |
QVector< TerminalStrip * > | terminalStrip () const |
QETProject::terminalStrip. | |
TerminalStrip * | newTerminalStrip (QString installation=QString(), QString location=QString(), QString name=QString()) |
QETProject::newTerminalStrip. | |
bool | addTerminalStrip (TerminalStrip *strip) |
QETProject::addTerminalStrip Add strip to the terminal strip list of the project. The project of strip must this project. | |
bool | removeTerminalStrip (TerminalStrip *strip) |
QETProject::removeTerminalStrip Remove strip from the terminal strip list of this project. Strip is removed from the list but not deleted. | |
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. | |
void | readDiagramsXml (QDomDocument &xml_project) |
QETProject::readDiagramsXml Load the diagrams from the xml description of the project. Note a project can have 0 diagram. | |
void | readElementsCollectionXml (QDomDocument &xml_project) |
QETProject::readElementsCollectionXml Load the diagrams from the xml description of the project. | |
void | readProjectPropertiesXml (QDomDocument &xml_project) |
QETProject::readProjectPropertiesXml Load project properties from the XML description of the project. | |
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. | |
void | readTerminalStripXml (const QDomDocument &xml_project) |
QETProject::readTerminalStripXml Read the terminal strips of this project. | |
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. | |
void | addDiagram (Diagram *diagram, int pos=-1) |
QETProject::addDiagram Add a diagram in this project. | |
NamesList | namesListForIntegrationCategory () |
void | writeBackup () |
QETProject::writeBackup Write a backup file of this project, in the case that QET crash. | |
void | init () |
QETProject::init. | |
ProjectState | openFile (QFile *file) |
QETProject::openFile. | |
void | refresh () |
QETProject::refresh Refresh everything in the project. This is notably use when open a project from file. | |
Private Attributes | |
QString | m_file_path |
File path this project is saved to. | |
ProjectState | m_state |
Current state of the project. | |
QList< Diagram * > | m_diagrams_list |
Diagrams carried by the project. | |
QString | project_title_ |
Project title. | |
QVersionNumber | m_project_qet_version |
QElectroTech version declared in the XML document at opening time. | |
bool | m_modified = false |
Whether options were modified. | |
bool | m_read_only = false |
Whether the project is read only. | |
QString | read_only_file_path_ |
Filepath for which this project is considered read only. | |
BorderProperties | default_border_properties_ = BorderProperties::defaultProperties() |
Default dimensions and properties for new diagrams created within the project. | |
ConductorProperties | default_conductor_properties_ = ConductorProperties::defaultProperties() |
Default conductor properties for new diagrams created within the project. | |
TitleBlockProperties | default_titleblock_properties_ |
Default title block properties for new diagrams created within the project. | |
QString | m_default_report_properties = ReportProperties::defaultProperties() |
Default report properties. | |
QHash< QString, XRefProperties > | m_default_xref_properties = XRefProperties::defaultProperties() |
Default xref properties. | |
TitleBlockTemplatesProjectCollection | m_titleblocks_collection |
Embedded title block templates collection. | |
DiagramContext | m_project_properties |
project-wide variables that will be made available to child diagrams | |
QUndoStack * | m_undo_stack |
undo stack for this project | |
QHash< QString, NumerotationContext > | m_conductor_autonum |
Conductor auto numerotation. | |
QString | m_current_conductor_autonum |
QHash< QString, NumerotationContext > | m_folio_autonum |
Folio auto numbering. | |
QHash< QString, NumerotationContext > | m_element_autonum |
Element Auto Numbering. | |
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 |
QVector< TerminalStrip * > | m_terminal_strip_vector |
ProjectPropertiesHandler | m_project_properties_handler |
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 with the new context.
key | |
context |
|
private |
QETProject::addDiagram Add a diagram in this project.
diagram | added diagram |
pos | position 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 with 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 with the new context.
key | |
context |
|
slot |
QETProject::addNewDiagram Add a new diagram in project at position pos.
pos |
bool QETProject::addTerminalStrip | ( | TerminalStrip * | strip | ) |
QETProject::addTerminalStrip Add strip
to the terminal strip list of the project. The project of strip
must this project.
strip |
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 | ( | ) |
QVersionNumber 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 embedded 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 |
TerminalStrip * QETProject::newTerminalStrip | ( | QString | installation = QString() , |
QString | location = QString() , |
||
QString | name = QString() |
||
) |
installation | : installation of the terminal strip |
location | : location of the terminal strip |
name | : name of the terminal strip |
|
private |
file |
QString QETProject::pathNameTitle | ( | ) | const |
|
signal |
|
signal |
|
signal |
|
signal |
bool QETProject::projectOptionsWereModified | ( | ) |
DiagramContext QETProject::projectProperties | ( | ) |
ProjectPropertiesHandler & QETProject::projectPropertiesHandler | ( | ) |
|
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 |
|
private |
QETProject::readTerminalStripXml Read the terminal strips of this project.
xml_project |
|
private |
QETProject::refresh Refresh everything in the project. This is notably use when open a project from file.
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 |
bool QETProject::removeTerminalStrip | ( | TerminalStrip * | strip | ) |
QETProject::removeTerminalStrip Remove strip
from the terminal strip list of this project. Strip is removed from the list but not deleted.
strip |
|
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
QVector< TerminalStrip * > QETProject::terminalStrip | ( | ) | const |
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 to store default properties. |
|
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 |
|
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 |
|
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 |