#include <QDebug>
const QString DataManager::ME_SENDER_STR("DataManager");
+const QString DataManager::UNIT_DEGREES_CELSIUS_TEXT = QString::fromLatin1((const char[]){static_cast<char>(0xB0), 0x43, 0x00});
const QString DataManager::UNIT_KILOVOLTS_TEXT = QString::fromLatin1((const char[]){0x4B, 0x56, 0x00});
const QString DataManager::UNIT_MICROAMPERES_TEXT = QString::fromLatin1((const char[]){static_cast<char>(0xB5), 0x41, 0x00});
+const QString DataManager::UNIT_MICROAMPERES_ALT1_TEXT = QString::fromLatin1((const char[]){0x75, 0x41, 0x00});
const QString DataManager::UNIT_MILLIAU_TEXT = QString::fromLatin1((const char[]){0x6D, 0x41, 0x55, 0x00});
+const QString DataManager::UNIT_MILLIBARS_TEXT = QString::fromLatin1((const char[]){0x6D, 0x62, 0x61, 0x72, 0x00});
const QString DataManager::UNIT_MILLIVOLTS_TEXT = QString::fromLatin1((const char[]){0x6D, 0x56, 0x00});
const QString DataManager::UNIT_WATTS_TEXT = QString::fromLatin1((const char[]){0x57, 0x00});
const QStringList DataManager::DATA_DIR_SUFFIX = QStringList() << "*.D";
case HPCS_TYPE_CE_CURRENT:
case HPCS_TYPE_CE_DAD:
case HPCS_TYPE_CE_POWER:
+ case HPCS_TYPE_CE_PRESSURE:
+ case HPCS_TYPE_CE_TEMPERATURE:
case HPCS_TYPE_CE_VOLTAGE:
return Signal::Equipment::CE;
default:
return Signal::Resource::CE_DAD;
case HPCS_TYPE_CE_POWER:
return Signal::Resource::CE_POWER;
+ case HPCS_TYPE_CE_PRESSURE:
+ return Signal::Resource::CE_PRESSURE;
+ case HPCS_TYPE_CE_TEMPERATURE:
+ return Signal::Resource::CE_TEMPERATURE;
case HPCS_TYPE_CE_VOLTAGE:
return Signal::Resource::CE_VOLTAGE;
default:
{
QString str = m_sigNameCodec->toUnicode(unit_str);
- if (QString::compare(str, UNIT_MILLIVOLTS_TEXT) == 0)
- return Signal::YUnit::MILLIVOLTS;
+ if (QString::compare(str, UNIT_DEGREES_CELSIUS_TEXT) == 0)
+ return Signal::YUnit::DEGREES_CELSIUS;
else if (QString::compare(str, UNIT_KILOVOLTS_TEXT) == 0)
return Signal::YUnit::KILOVOLTS;
- else if (QString::compare(str, UNIT_MICROAMPERES_TEXT) == 0)
+ else if (QString::compare(str, UNIT_MICROAMPERES_TEXT) == 0 ||
+ QString::compare(str, UNIT_MICROAMPERES_ALT1_TEXT) == 0)
return Signal::YUnit::MICROAMPERES;
else if (QString::compare(str, UNIT_MILLIAU_TEXT) == 0)
return Signal::YUnit::MILLIAU;
+ else if (QString::compare(str, UNIT_MILLIBARS_TEXT) == 0)
+ return Signal::YUnit::MILLIBARS;
+ else if (QString::compare(str, UNIT_MILLIVOLTS_TEXT) == 0)
+ return Signal::YUnit::MILLIVOLTS;
else if (QString::compare(str, UNIT_WATTS_TEXT) == 0)
return Signal::YUnit::WATTS;
else
ExportGraphToImageDialog::Parameters m_oldExportToImageParams;
static const QString ME_SENDER_STR;
+ static const QString UNIT_DEGREES_CELSIUS_TEXT;
static const QString UNIT_KILOVOLTS_TEXT;
static const QString UNIT_MICROAMPERES_TEXT;
+ static const QString UNIT_MICROAMPERES_ALT1_TEXT;
static const QString UNIT_MILLIAU_TEXT;
+ static const QString UNIT_MILLIBARS_TEXT;
static const QString UNIT_MILLIVOLTS_TEXT;
static const QString UNIT_WATTS_TEXT;
const QString Signal::RES_CURRENT("Current");
const QString Signal::RES_DAD("Absorbance");
const QString Signal::RES_POWER("Power");
+const QString Signal::RES_PRESSURE("Pressure");
+const QString Signal::RES_TEMPERATURE("Temperature");
const QString Signal::RES_VOLTAGE("Voltage");
+const QString Signal::DEGREES_CELSIUS_SI("\u00B0C");
const QString Signal::KILOVOTLS_SI("KV");
const QString Signal::MICROAMPERES_SI("\u03BCA");
const QString Signal::MILLIAU_SI("mAU");
+const QString Signal::MILLIBARS_SI("mbar");
const QString Signal::MILLIVOLTS_SI("mV");
const QString Signal::WATTS_SI("W");
return RES_DAD;
case Resource::CE_POWER:
return RES_POWER;
+ case Resource::CE_PRESSURE:
+ return RES_PRESSURE;
+ case Resource::CE_TEMPERATURE:
+ return RES_TEMPERATURE;
case Resource::CE_VOLTAGE:
return RES_VOLTAGE;
default:
QString Signal::yunitAsString() const
{
switch (m_yunit) {
+ case YUnit::DEGREES_CELSIUS:
+ return DEGREES_CELSIUS_SI;
case YUnit::KILOVOLTS:
return KILOVOTLS_SI;
case YUnit::MICROAMPERES:
return MICROAMPERES_SI;
case YUnit::MILLIAU:
return MILLIAU_SI;
+ case YUnit::MILLIBARS:
+ return MILLIBARS_SI;
case YUnit::MILLIVOLTS:
return MILLIVOLTS_SI;
case YUnit::WATTS:
CE_CURRENT,
CE_DAD,
CE_POWER,
+ CE_PRESSURE,
+ CE_TEMPERATURE,
CE_VOLTAGE
};
enum class XUnit {
MINUTE
};
enum class YUnit {
+ DEGREES_CELSIUS,
KILOVOLTS,
MICROAMPERES,
MILLIAU,
+ MILLIBARS,
MILLIVOLTS,
WATTS
};
static const QString RES_CURRENT;
static const QString RES_DAD;
static const QString RES_POWER;
+ static const QString RES_PRESSURE;
+ static const QString RES_TEMPERATURE;
static const QString RES_VOLTAGE;
+ static const QString DEGREES_CELSIUS_SI;
static const QString KILOVOTLS_SI;
static const QString MICROAMPERES_SI;
static const QString MILLIAU_SI;
+ static const QString MILLIBARS_SI;
static const QString MILLIVOLTS_SI;
static const QString WATTS_SI;