Reworked value handling.

This commit is contained in:
Christoph Holzheuer
2026-01-19 16:44:52 +01:00
parent 4309d2231e
commit 8639529bbe
12 changed files with 95 additions and 80 deletions

View File

@@ -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: