mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-02-23 21:29:58 +01:00
Add terminalStripModel class
This commit is contained in:
@@ -339,6 +339,22 @@ ElementData::TerminalType ElementData::terminalTypeFromString(const QString &str
|
||||
return ElementData::TTGeneric;
|
||||
}
|
||||
|
||||
QString ElementData::translatedTerminalType(ElementData::TerminalType type)
|
||||
{
|
||||
switch (type) {
|
||||
case ElementData::TTGeneric :
|
||||
return QObject::tr("generique", "generic terminal element type");
|
||||
case ElementData::TTFuse :
|
||||
return QObject::tr("fusible", "fuse terminal element type");
|
||||
case ElementData::TTSectional:
|
||||
return QObject::tr("sectionable", "sectional terminal element type");
|
||||
case ElementData::TTDiode:
|
||||
return QObject::tr("diode", "diode terminal element type");
|
||||
case ElementData::TTGround:
|
||||
return QObject::tr("terre", "ground terminal element type");
|
||||
}
|
||||
}
|
||||
|
||||
QString ElementData::terminalFunctionToString(ElementData::TerminalFunction function)
|
||||
{
|
||||
switch (function) {
|
||||
|
||||
@@ -108,6 +108,7 @@ class ElementData : public PropertiesInterface
|
||||
|
||||
static QString terminalTypeToString(ElementData::TerminalType type);
|
||||
static ElementData::TerminalType terminalTypeFromString(const QString &string);
|
||||
static QString translatedTerminalType(ElementData::TerminalType type);
|
||||
|
||||
static QString terminalFunctionToString(ElementData::TerminalFunction function);
|
||||
static ElementData::TerminalFunction terminalFunctionFromString(const QString &string);
|
||||
|
||||
Reference in New Issue
Block a user