/*************************************************************************** source::worx raDIYo Copyright © 2020-2022 c.holzheuer chris@sourceworx.org This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. ***************************************************************************/ #ifndef SWRANGEVALUE_H #define SWRANGEVALUE_H /** * @brief Aspektklasse für 'werthaltige' (Lautstärke, Uhrzeit) Widgets. * @see SWVolumeWidget * @see SWFlipDigit */ class SWRangeValue { public: SWRangeValue() = default; virtual ~SWRangeValue() = default; int value(); virtual void setValue( int value ); virtual void setRange( int rangeFrom, int rangeTo ); int rangeFrom(); int rangeTo(); protected: int _rangeFrom = 0; int _rangeTo = 99; int _value = 0; }; #endif // SWRANGEVALUE_H