Minor replace function by another one

Replace QETApp::conductorInfoKeys() and
QETApp::conductorTranslatedInfoKey(const QString &key) by
QETInformation::conductorInfoKeys() and
QETInformation::translatedInfoKey
This commit is contained in:
Claveau Joshua
2020-11-08 19:44:21 +01:00
parent 6f60156e00
commit 81efc5181b
7 changed files with 41 additions and 61 deletions

View File

@@ -21,14 +21,23 @@
#include <QStringList>
#include <QHash>
/**
* Inside this namespace you will fin all information used in QElectrotech for
* element, conductor and diagram.
* Each information have 3 values :
* #1 the info key = the key of an information as a QString used in the code (exemple : label)
* #2 the info key to variable = the key in form of a variable.
* This is used by the user to replace a variable by the string of this variable (exemple : %{label})
* #3 the info key translated to the current local (exemple label in dutch = Betriebsmittelkennzeichen)
*/
namespace QETInformation
{
QStringList titleblockInfoKeys();
QString titleblockTranslatedInfoKey(const QString &info);
QString titleblockInfoKeysToVar(const QString &info);
QHash <QString, QString> titleblockTranslatedKeyHashVar();
QStringList folioReportInfoKey();
QStringList folioReportInfoKeys();
QHash <QString, QString> folioReportInfoKeyToVar();
QStringList conductorInfoKeys();
QString translatedInfoKey(const QString &info);
}