mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-09-13 20:23:04 +02:00
correct some indention / whitespace
This commit is contained in:
parent
6dac8e2005
commit
4c7d42251c
@ -58,7 +58,7 @@ QETProject::QETProject(QObject *parent) :
|
|||||||
setDefaultTitleBlockProperties(TitleBlockProperties::defaultProperties());
|
setDefaultTitleBlockProperties(TitleBlockProperties::defaultProperties());
|
||||||
|
|
||||||
m_elements_collection = new XmlElementCollection(this);
|
m_elements_collection = new XmlElementCollection(this);
|
||||||
init();
|
init();
|
||||||
}
|
}
|
||||||
|
|
||||||
ProjectPropertiesHandler &QETProject::projectPropertiesHandler()
|
ProjectPropertiesHandler &QETProject::projectPropertiesHandler()
|
||||||
@ -234,7 +234,7 @@ QETProject::ProjectState QETProject::openFile(QFile *file)
|
|||||||
if(opened_here) {
|
if(opened_here) {
|
||||||
file->close();
|
file->close();
|
||||||
}
|
}
|
||||||
return m_state;
|
return m_state;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -244,22 +244,22 @@ QETProject::ProjectState QETProject::openFile(QFile *file)
|
|||||||
*/
|
*/
|
||||||
void QETProject::refresh()
|
void QETProject::refresh()
|
||||||
{
|
{
|
||||||
DialogWaiting *dlgWaiting { nullptr };
|
DialogWaiting *dlgWaiting { nullptr };
|
||||||
if(DialogWaiting::hasInstance())
|
if(DialogWaiting::hasInstance())
|
||||||
{
|
{
|
||||||
dlgWaiting = DialogWaiting::instance();
|
dlgWaiting = DialogWaiting::instance();
|
||||||
dlgWaiting->setModal(true);
|
dlgWaiting->setModal(true);
|
||||||
dlgWaiting->show();
|
dlgWaiting->show();
|
||||||
}
|
}
|
||||||
|
|
||||||
for(const auto &diagram : diagrams())
|
for(const auto &diagram : diagrams())
|
||||||
{
|
{
|
||||||
if(dlgWaiting)
|
if(dlgWaiting)
|
||||||
{
|
{
|
||||||
dlgWaiting->setProgressBar(dlgWaiting->progressBarValue()+1);
|
dlgWaiting->setProgressBar(dlgWaiting->progressBarValue()+1);
|
||||||
dlgWaiting->setDetail(diagram->title());
|
dlgWaiting->setDetail(diagram->title());
|
||||||
}
|
}
|
||||||
diagram->refreshContents();
|
diagram->refreshContents();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -509,10 +509,10 @@ void QETProject::setDefaultTitleBlockProperties(const TitleBlockProperties &titl
|
|||||||
case QET::Common :
|
case QET::Common :
|
||||||
collection = QETApp::commonTitleBlockTemplatesCollection();
|
collection = QETApp::commonTitleBlockTemplatesCollection();
|
||||||
break;
|
break;
|
||||||
case QET::Company :
|
case QET::Company :
|
||||||
// collection = QETApp::companyTitleBlockTemplatesCollection();
|
// collection = QETApp::companyTitleBlockTemplatesCollection();
|
||||||
break;
|
break;
|
||||||
case QET::Custom :
|
case QET::Custom :
|
||||||
collection = QETApp::customTitleBlockTemplatesCollection();
|
collection = QETApp::customTitleBlockTemplatesCollection();
|
||||||
break;
|
break;
|
||||||
case QET::Embedded :
|
case QET::Embedded :
|
||||||
@ -1349,10 +1349,10 @@ void QETProject::readProjectXml(QDomDocument &xml_project)
|
|||||||
if (root_elmt.tagName() == QLatin1String("project"))
|
if (root_elmt.tagName() == QLatin1String("project"))
|
||||||
{
|
{
|
||||||
//Normal opening mode
|
//Normal opening mode
|
||||||
m_project_qet_version = QetVersion::fromXmlAttribute(root_elmt);
|
m_project_qet_version = QetVersion::fromXmlAttribute(root_elmt);
|
||||||
if (!m_project_qet_version.isNull())
|
if (!m_project_qet_version.isNull())
|
||||||
{
|
{
|
||||||
if (QetVersion::currentVersion() < m_project_qet_version)
|
if (QetVersion::currentVersion() < m_project_qet_version)
|
||||||
{
|
{
|
||||||
int ret = QET::QetMessageBox::warning(
|
int ret = QET::QetMessageBox::warning(
|
||||||
nullptr,
|
nullptr,
|
||||||
@ -1362,7 +1362,7 @@ void QETProject::readProjectXml(QDomDocument &xml_project)
|
|||||||
"\n qui est ultérieure à votre version !"
|
"\n qui est ultérieure à votre version !"
|
||||||
" \n"
|
" \n"
|
||||||
"Vous utilisez actuellement QElectroTech en version %2")
|
"Vous utilisez actuellement QElectroTech en version %2")
|
||||||
.arg(root_elmt.attribute(QStringLiteral("version")), QetVersion::currentVersion().toString() +
|
.arg(root_elmt.attribute(QStringLiteral("version")), QetVersion::currentVersion().toString() +
|
||||||
tr(".\n Il est alors possible que l'ouverture de tout ou partie de ce "
|
tr(".\n Il est alors possible que l'ouverture de tout ou partie de ce "
|
||||||
"document échoue.\n"
|
"document échoue.\n"
|
||||||
"Que désirez vous faire ?"),
|
"Que désirez vous faire ?"),
|
||||||
@ -1379,14 +1379,14 @@ void QETProject::readProjectXml(QDomDocument &xml_project)
|
|||||||
|
|
||||||
//Since QElectrotech 0.9 the compatibility with project made with
|
//Since QElectrotech 0.9 the compatibility with project made with
|
||||||
//Qet 0.6 or lower is break;
|
//Qet 0.6 or lower is break;
|
||||||
if (m_project_qet_version <= QetVersion::versionZeroDotSix())
|
if (m_project_qet_version <= QetVersion::versionZeroDotSix())
|
||||||
{
|
{
|
||||||
auto ret = QET::QetMessageBox::warning(
|
auto ret = QET::QetMessageBox::warning(
|
||||||
nullptr,
|
nullptr,
|
||||||
tr("Avertissement ", "message box title"),
|
tr("Avertissement ", "message box title"),
|
||||||
tr("Le projet que vous tentez d'ouvrir est partiellement "
|
tr("Le projet que vous tentez d'ouvrir est partiellement "
|
||||||
"compatible avec votre version %1 de QElectroTech.\n")
|
"compatible avec votre version %1 de QElectroTech.\n")
|
||||||
.arg(QetVersion::currentVersion().toString()) +
|
.arg(QetVersion::currentVersion().toString()) +
|
||||||
tr("Afin de le rendre totalement compatible veuillez ouvrir ce même projet "
|
tr("Afin de le rendre totalement compatible veuillez ouvrir ce même projet "
|
||||||
"avec la version 0.8, ou 0.80 de QElectroTech et sauvegarder le projet "
|
"avec la version 0.8, ou 0.80 de QElectroTech et sauvegarder le projet "
|
||||||
"et l'ouvrir à nouveau avec cette version.\n"
|
"et l'ouvrir à nouveau avec cette version.\n"
|
||||||
@ -1429,8 +1429,8 @@ void QETProject::readProjectXml(QDomDocument &xml_project)
|
|||||||
//Load the terminal strip
|
//Load the terminal strip
|
||||||
readTerminalStripXml(xml_project);
|
readTerminalStripXml(xml_project);
|
||||||
|
|
||||||
//Now that all are loaded we refresh content of the project.
|
//Now that all are loaded we refresh content of the project.
|
||||||
refresh();
|
refresh();
|
||||||
|
|
||||||
|
|
||||||
m_data_base.blockSignals(false);
|
m_data_base.blockSignals(false);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user