mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-03-21 17:34:57 -05:00
The "core" macro conditions and actions have been extracted out to the "base" plugin. The library now mostly contains functionality which is required across all plugins and (e.g. definitions for macro segments). The goal is to reduce the complexity and cross-dependencies and group the source files in a better way. This should relsove the "library limit of 65535 objects exceeded" build issue occuring in some Windows build environments.
37 lines
877 B
C++
37 lines
877 B
C++
#pragma once
|
|
#include "variable-spinbox.hpp"
|
|
|
|
#include <QWidget>
|
|
#include <QSlider>
|
|
#include <QLabel>
|
|
#include <QDoubleSpinBox>
|
|
|
|
namespace advss {
|
|
|
|
class SliderSpinBox : public QWidget {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
EXPORT SliderSpinBox(double min = 0., double max = 1.,
|
|
const QString &label = "threshold",
|
|
const QString &description = "",
|
|
bool descriptionAsTooltip = false,
|
|
QWidget *parent = nullptr);
|
|
EXPORT void SetDoubleValue(double);
|
|
EXPORT void SetDoubleValue(const NumberVariable<double> &);
|
|
public slots:
|
|
void SliderValueChanged(int value);
|
|
void SpinBoxValueChanged(const NumberVariable<double> &value);
|
|
signals:
|
|
void DoubleValueChanged(const NumberVariable<double> &value);
|
|
|
|
private:
|
|
void SetVisibility(const NumberVariable<double> &);
|
|
|
|
VariableDoubleSpinBox *_spinBox;
|
|
QSlider *_slider;
|
|
double _scale = 100.0;
|
|
};
|
|
|
|
} // namespace advss
|