mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-09-13 20:23:04 +02:00
commit
7e6befdf0a
@ -226,7 +226,7 @@ void SelectAutonumW::on_buttonBox_clicked(QAbstractButton *button)
|
|||||||
));
|
));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else
|
else if (m_edited_type == 1)
|
||||||
{
|
{
|
||||||
QMessageBox::information (
|
QMessageBox::information (
|
||||||
this,
|
this,
|
||||||
@ -252,6 +252,32 @@ void SelectAutonumW::on_buttonBox_clicked(QAbstractButton *button)
|
|||||||
));
|
));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
QMessageBox::information (
|
||||||
|
this,
|
||||||
|
tr("Element Autonumérotation",
|
||||||
|
"title window"),
|
||||||
|
tr("C'est ici que vous pouvez définir la manière dont seront numérotés les nouveaux elements.\n"
|
||||||
|
"-Une numérotation est composée d'une variable minimum.\n"
|
||||||
|
"-Vous pouvez ajouter ou supprimer une variable de numérotation par le biais des boutons - et +.\n"
|
||||||
|
"-Une variable de numérotation comprend : un type, une valeur et une incrémentation.\n"
|
||||||
|
|
||||||
|
"\n-les types \"Chiffre 1\", \"Chiffre 01\" et \"Chiffre 001\", représentent un type numérique défini dans le champ \"Valeur\", "
|
||||||
|
"qui s'incrémente à chaque nouveau conducteur de la valeur du champ \"Incrémentation\".\n"
|
||||||
|
"-\"Chiffre 01\" et \"Chiffre 001\", sont respectivement représentés sur le schéma par deux et trois digits minimum.\n"
|
||||||
|
"Si le chiffre défini dans le champ Valeur possède moins de digits que le type choisi,"
|
||||||
|
"celui-ci sera précédé par un ou deux 0 afin de respecter son type.\n"
|
||||||
|
|
||||||
|
"\n-Le type \"Texte\", représente un texte fixe.\nLe champ \"Incrémentation\" n'est pas utilisé.\n"
|
||||||
|
|
||||||
|
"\n-Le type \"N° folio\" représente le n° du folio en cours.\nLes autres champs ne sont pas utilisés.\n"
|
||||||
|
|
||||||
|
"\n-Le type \"Folio\" représente le nom du folio en cours.\nLes autres champs ne sont pas utilisés.",
|
||||||
|
"help dialog about the element autonumerotation"
|
||||||
|
));
|
||||||
|
break;
|
||||||
|
}
|
||||||
//apply the context in the diagram displayed by @diagram_chooser.
|
//apply the context in the diagram displayed by @diagram_chooser.
|
||||||
case QDialogButtonBox::ApplyRole:
|
case QDialogButtonBox::ApplyRole:
|
||||||
applyEnable(false);
|
applyEnable(false);
|
||||||
|
@ -176,6 +176,7 @@ qreal PartTerminal::rotation() const {
|
|||||||
case Qet::South : return 180;
|
case Qet::South : return 180;
|
||||||
case Qet::West : return 270;
|
case Qet::West : return 270;
|
||||||
}
|
}
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -271,9 +271,6 @@ void MachineInfo::init_get_cpu_info_linux()
|
|||||||
QString linuxGPURAMOutput = linuxgpuRAM.readAllStandardOutput();
|
QString linuxGPURAMOutput = linuxgpuRAM.readAllStandardOutput();
|
||||||
pc.gpu.RAM=QString(linuxGPURAMOutput.toLocal8Bit().constData());
|
pc.gpu.RAM=QString(linuxGPURAMOutput.toLocal8Bit().constData());
|
||||||
linuxgpuRAM.close();
|
linuxgpuRAM.close();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -362,6 +362,7 @@ QString ElementData::masterTypeToString(ElementData::MasterType type)
|
|||||||
case ElementData::Commutator:
|
case ElementData::Commutator:
|
||||||
return QStringLiteral("commutator");
|
return QStringLiteral("commutator");
|
||||||
}
|
}
|
||||||
|
return QStringLiteral("coil");
|
||||||
}
|
}
|
||||||
|
|
||||||
ElementData::MasterType ElementData::masterTypeFromString(const QString &string)
|
ElementData::MasterType ElementData::masterTypeFromString(const QString &string)
|
||||||
@ -394,6 +395,7 @@ QString ElementData::slaveTypeToString(ElementData::SlaveType type)
|
|||||||
case ElementData::delayOnOff:
|
case ElementData::delayOnOff:
|
||||||
return QStringLiteral("delayOnOff");
|
return QStringLiteral("delayOnOff");
|
||||||
}
|
}
|
||||||
|
return QStringLiteral("simple");
|
||||||
}
|
}
|
||||||
|
|
||||||
ElementData::SlaveType ElementData::slaveTypeFromString(const QString &string)
|
ElementData::SlaveType ElementData::slaveTypeFromString(const QString &string)
|
||||||
@ -428,6 +430,7 @@ QString ElementData::slaveStateToString(ElementData::SlaveState type)
|
|||||||
case Other:
|
case Other:
|
||||||
return QStringLiteral("Other");
|
return QStringLiteral("Other");
|
||||||
}
|
}
|
||||||
|
return QStringLiteral("NO");
|
||||||
}
|
}
|
||||||
|
|
||||||
ElementData::SlaveState ElementData::slaveStateFromString(const QString &string)
|
ElementData::SlaveState ElementData::slaveStateFromString(const QString &string)
|
||||||
@ -462,6 +465,7 @@ QString ElementData::terminalTypeToString(ElementData::TerminalType type)
|
|||||||
case ElementData::TTGround:
|
case ElementData::TTGround:
|
||||||
return QStringLiteral("ground");
|
return QStringLiteral("ground");
|
||||||
}
|
}
|
||||||
|
return QStringLiteral("generic");
|
||||||
}
|
}
|
||||||
|
|
||||||
ElementData::TerminalType ElementData::terminalTypeFromString(const QString &string)
|
ElementData::TerminalType ElementData::terminalTypeFromString(const QString &string)
|
||||||
@ -498,6 +502,7 @@ QString ElementData::translatedTerminalType(ElementData::TerminalType type)
|
|||||||
case ElementData::TTGround:
|
case ElementData::TTGround:
|
||||||
return QObject::tr("Terre", "ground terminal element type");
|
return QObject::tr("Terre", "ground terminal element type");
|
||||||
}
|
}
|
||||||
|
return QObject::tr("Générique", "generic terminal element type");
|
||||||
}
|
}
|
||||||
|
|
||||||
QString ElementData::terminalFunctionToString(ElementData::TerminalFunction function)
|
QString ElementData::terminalFunctionToString(ElementData::TerminalFunction function)
|
||||||
@ -510,6 +515,7 @@ QString ElementData::terminalFunctionToString(ElementData::TerminalFunction func
|
|||||||
case ElementData::TFNeutral:
|
case ElementData::TFNeutral:
|
||||||
return QStringLiteral("neutral");
|
return QStringLiteral("neutral");
|
||||||
}
|
}
|
||||||
|
return QStringLiteral("generic");
|
||||||
}
|
}
|
||||||
|
|
||||||
ElementData::TerminalFunction ElementData::terminalFunctionFromString(const QString &string)
|
ElementData::TerminalFunction ElementData::terminalFunctionFromString(const QString &string)
|
||||||
@ -535,6 +541,7 @@ QString ElementData::translatedTerminalFunction(ElementData::TerminalFunction fu
|
|||||||
case TFPhase : return QObject::tr("Phase", "phase terminal element function" );
|
case TFPhase : return QObject::tr("Phase", "phase terminal element function" );
|
||||||
case TFNeutral : return QObject::tr("Neutre", "neutral terminal element function");
|
case TFNeutral : return QObject::tr("Neutre", "neutral terminal element function");
|
||||||
}
|
}
|
||||||
|
return QObject::tr("Générique", "generic terminal element function");
|
||||||
}
|
}
|
||||||
|
|
||||||
void ElementData::kindInfoFromXml(const QDomElement &xml_element)
|
void ElementData::kindInfoFromXml(const QDomElement &xml_element)
|
||||||
|
@ -172,6 +172,7 @@ QString TerminalData::typeToString(TerminalData::Type type)
|
|||||||
case Outer :
|
case Outer :
|
||||||
return QString("Outer");
|
return QString("Outer");
|
||||||
}
|
}
|
||||||
|
return QString("Generic");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user