swp->setDataTableModel(ctrl->dataTableModel());
swp->setIntegrationTableModel(ctrl->integrationTableModel());
- swp->setTypeText(ctrl->signal()->resourceToString());
+ if (ctrl->signal()->resource() == Signal::Resource::CE_DAD) {
+ qDebug() << "absorbance";
+ swp->setTypeText(ctrl->signal()->resourceToString() + QString(" Sig: ") + QString::number(ctrl->signal()->wavelengthAbsorbed()) + " nm, Ref: " +
+ QString::number(ctrl->signal()->wavelengthReference()) + " nm");
+ }
+ else
+ swp->setTypeText(ctrl->signal()->resourceToString());
swp->setXUnits(ctrl->signal()->xunitToString());
swp->setYUnits(ctrl->signal()->yunitToString());
connect(swp, SIGNAL(crosshairErased()), ctrl.get(), SLOT(onViewCrosshairErased()));
#include "signal.h"
#include <cfloat>
-const QString Signal::RES_ABSORBANCE("Absorbance");
const QString Signal::RES_CCD("CCD");
const QString Signal::RES_CURRENT("Current");
const QString Signal::RES_DAD("Absorbance");
QString Signal::resourceToString() const {
switch (m_resource) {
- case Resource::CE_ABSORBANCE:
- return RES_ABSORBANCE;
case Resource::CE_CCD:
return RES_CCD;
case Resource::CE_CURRENT: