cleanups.
This commit is contained in:
@@ -1,31 +1,29 @@
|
||||
#ifndef BCValueEditor_H
|
||||
#define BCValueEditor_H
|
||||
#ifndef BC_VALUESLIDER_H
|
||||
#define BC_VALUESLIDER_H
|
||||
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
#include <bcvalue.h>
|
||||
#include <ui_bcvalueeditor.h>
|
||||
#include <ui_bcvalueslider.h>
|
||||
|
||||
class QSlider;
|
||||
class QPushButton;
|
||||
class BCValue;
|
||||
|
||||
class BCValueEditor : public QWidget, private Ui::BCValueEditor
|
||||
class BCValueSlider : public QWidget, private Ui::BCValueSlider
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
|
||||
explicit BCValueEditor(QWidget *parent = nullptr);
|
||||
explicit BCValueSlider(QWidget *parent = nullptr);
|
||||
|
||||
int value() const;
|
||||
void setValueAndRange( const BCValue::ValueRange& params );
|
||||
|
||||
// helper functions
|
||||
static QRect updateEditorRect( const QRect& rect);
|
||||
static void paintSliderIndicator(QPainter* painter, const QRect& rect, double ratio );
|
||||
|
||||
|
||||
signals:
|
||||
|
||||
@@ -40,4 +38,4 @@ protected:
|
||||
|
||||
};
|
||||
|
||||
#endif // BCValueEditor_H
|
||||
#endif // BC_VALUESLIDER_H
|
||||
|
||||
Reference in New Issue
Block a user