39 lines
593 B
C++
39 lines
593 B
C++
#ifndef BC_VALUESLIDER_H
|
|
#define BC_VALUESLIDER_H
|
|
|
|
|
|
#include <QWidget>
|
|
#include <QTableView>
|
|
#include <QSlider>
|
|
#include <QPainter>
|
|
#include <QProxyStyle>
|
|
|
|
#include <bcvalue.h>
|
|
#include <ui_bcvalueslider.h>
|
|
|
|
class QSlider;
|
|
class QPushButton;
|
|
class BCValue;
|
|
|
|
|
|
class BCValueSlider : public QWidget, private Ui_BCValueSlider
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit BCValueSlider(QWidget *parent = nullptr);
|
|
|
|
int value() const;
|
|
void setValueAndRange( const BCValue::ValueRange& params );
|
|
|
|
signals:
|
|
|
|
void valueChanged(int value);
|
|
void valueCommited(int value);
|
|
|
|
};
|
|
|
|
#endif // BC_VALUESLIDER_H
|