Reworked value handling.
This commit is contained in:
20
bcvalue.h
20
bcvalue.h
@@ -107,22 +107,20 @@ public:
|
||||
bool testFlag( Flag flag ) const;
|
||||
void setFlag( Flag flag, bool state=true ) const;
|
||||
|
||||
BCDevice::ID getDeviceID() const noexcept;
|
||||
BC::ID getRegisterID() const noexcept;
|
||||
BCDevice::ID deviceID() const noexcept;
|
||||
BC::ID registerID() const noexcept;
|
||||
|
||||
uint32_t getRawValue() const noexcept;
|
||||
uint32_t getScaledValue() const noexcept;
|
||||
uint32_t rawValue() const noexcept;
|
||||
void setRawValue(uint32_t newRawValue) const;
|
||||
void setFromDouble( double value );
|
||||
|
||||
ValueType getValueType() const noexcept;
|
||||
int getIndexRow() const noexcept;
|
||||
ValueType valueType() const noexcept;
|
||||
int indexRow() const noexcept;
|
||||
void setIndexRow(int newIndexRow);
|
||||
QString getLabel() const;
|
||||
QString getUnitLabel() const;
|
||||
double getFactor() const noexcept;
|
||||
const OptDouble getOptMin() const;
|
||||
const OptDouble getOptMax() const;
|
||||
QString label() const;
|
||||
QString unitLabel() const;
|
||||
|
||||
bool valuesForSlider( int& value, int& min, int& max ) const;
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user