9 #include <QDoubleSpinBox> 10 #include <QVariantList> 13 #include "../constants.h" 14 #include "../property.h" 15 #include "propertycontrol.h" 17 class MixerElement :
public QWidget
20 Q_PROPERTY(
double bias READ bias WRITE setCmdBias)
21 Q_PROPERTY(
double current READ current)
22 Q_PROPERTY(
double coil READ coilCurrent WRITE setCmdCoil)
23 Q_PROPERTY(
bool tuned READ isTuned)
24 Q_PROPERTY(
bool expertMode READ expertMode WRITE setExpertMode)
29 double bias()
const {
return biasCtrl->actualValue()*
Units::mV; }
30 double current()
const {
return m_current; }
31 double coilCurrent()
const {
return coilCtrl->actualValue()*
Units::mA; }
32 bool isTuned()
const {
return m_tuned; }
33 bool expertMode()
const {
return m_expert; }
36 void updateBias(
double V);
37 void setCmdBias(
double mV);
38 void updateCoil(
double mA);
39 void setCmdCoil(
double mA);
40 void updateCurrent(
double I);
41 void updatePower(
double mW);
42 void setExpertMode(
bool flag);
48 PropertyControl *biasCtrl;
49 PropertyControl *coilCtrl;
Polarization
An enumeration for the two polarizations.
Definition: constants.h:9
Element
An enumeration for the two mixer elements in each polarization.
Definition: constants.h:17
static const double mV
Definition: units.h:12
static const double mA
Definition: units.h:13