mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-21 00:30:53 +01:00
Add nomenclature model
Add class NomenclatureModel witch is used with QetGraphicsTableItem. Add ProjectDataBase class, the goal of this class is to store all information of a project at an instant T to easilly find it. This class is still in development and not provide all information that she should.
This commit is contained in:
@@ -297,15 +297,15 @@ QStringList QETApp::elementInfoKeys()
|
||||
|
||||
<< "comment"
|
||||
<< "function"
|
||||
<< "tension-protocol"
|
||||
<< "tension_protocol"
|
||||
<< "auxiliary1"
|
||||
<< "auxiliary2"
|
||||
|
||||
<< "description"
|
||||
<< "designation"
|
||||
<< "manufacturer"
|
||||
<< "manufacturer-reference"
|
||||
<< "machine-manufacturer-reference"
|
||||
<< "manufacturer_reference"
|
||||
<< "machine_manufacturer_reference"
|
||||
<< "supplier"
|
||||
<< "quantity"
|
||||
<< "unity";
|
||||
@@ -328,15 +328,15 @@ QString QETApp::elementTranslatedInfoKey(const QString &info)
|
||||
|
||||
else if (info == "comment") return tr("Commentaire");
|
||||
else if (info == "function") return tr("Fonction");
|
||||
else if (info == "tension-protocol") return tr("Tension / Protocole");
|
||||
else if (info == "tension_protocol") return tr("Tension / Protocole");
|
||||
else if (info == "auxiliary1") return tr("Bloc auxiliaire 1");
|
||||
else if (info == "auxiliary2") return tr("Bloc auxiliaire 2");
|
||||
|
||||
else if (info == "description") return tr("Description textuelle");
|
||||
else if (info == "designation") return tr("Numéro d'article");
|
||||
else if (info == "manufacturer") return tr("Fabricant");
|
||||
else if (info == "manufacturer-reference") return tr("Numéro de commande");
|
||||
else if (info == "machine-manufacturer-reference") return tr("Numéro interne");
|
||||
else if (info == "manufacturer_reference") return tr("Numéro de commande");
|
||||
else if (info == "machine_manufacturer_reference") return tr("Numéro interne");
|
||||
else if (info == "supplier") return tr("Fournisseur");
|
||||
else if (info == "quantity") return tr("Quantité");
|
||||
else if (info == "unity") return tr("Unité");
|
||||
@@ -362,16 +362,16 @@ QString QETApp::elementInfoToVar(const QString &info)
|
||||
else if (info == "description") return QString("%{description}");
|
||||
else if (info == "designation") return QString("%{designation}");
|
||||
else if (info == "manufacturer") return QString("%{manufacturer}");
|
||||
else if (info == "manufacturer-reference") return QString("%{manufacturer-reference}");
|
||||
else if (info == "manufacturer_reference") return QString("%{manufacturer_reference}");
|
||||
else if (info == "supplier") return QString("%{supplier}");
|
||||
else if (info == "quantity") return QString("%{quantity}");
|
||||
else if (info == "unity") return QString("%{unity}");
|
||||
else if (info == "auxiliary1") return QString("%{auxiliary1}");
|
||||
else if (info == "auxiliary2") return QString("%{auxiliary2}");
|
||||
else if (info == "machine-manufacturer-reference") return QString("%{machine-manufacturer-reference}");
|
||||
else if (info == "machine_manufacturer_reference") return QString("%{machine_manufacturer_reference}");
|
||||
else if (info == "location") return QString("%{location}");
|
||||
else if (info == "function") return QString("%{function}");
|
||||
else if (info == "tension-protocol") return QString("%{tension-protocol}");
|
||||
else if (info == "tension_protocol") return QString("%{tension_protocol}");
|
||||
|
||||
return (QString ("%{void}"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user