17 #ifndef UNITY_SHELL_SCOPES_RANGEINPUTFILTERINTERFACE_H
18 #define UNITY_SHELL_SCOPES_RANGEINPUTFILTERINTERFACE_H
20 #include <unity/SymbolExport.h>
22 #include "FilterBaseInterface.h"
36 Q_PROPERTY(
double startValue READ startValue WRITE setStartValue NOTIFY startValueChanged)
37 Q_PROPERTY(
double endValue READ endValue WRITE setEndValue NOTIFY endValueChanged)
38 Q_PROPERTY(QString startPrefixLabel READ startPrefixLabel NOTIFY startPrefixLabelChanged)
39 Q_PROPERTY(QString startPostfixLabel READ startPostfixLabel NOTIFY startPostfixLabelChanged)
40 Q_PROPERTY(QString centralLabel READ centralLabel NOTIFY centralLabelChanged)
41 Q_PROPERTY(QString endPrefixLabel READ endPrefixLabel NOTIFY endPrefixLabelChanged)
42 Q_PROPERTY(QString endPostfixLabel READ endPostfixLabel NOTIFY endPostfixLabelChanged)
43 Q_PROPERTY(
bool hasStartValue READ hasStartValue NOTIFY hasStartValueChanged)
44 Q_PROPERTY(
bool hasEndValue READ hasEndValue NOTIFY hasEndValueChanged)
46 FiltersInterface::FilterType filterType()
const override
48 return FiltersInterface::RangeInputFilter;
51 virtual double startValue()
const = 0;
52 virtual double endValue()
const = 0;
53 virtual void setStartValue(
double value) = 0;
54 virtual void setEndValue(
double value) = 0;
55 virtual QString startPrefixLabel()
const = 0;
56 virtual QString startPostfixLabel()
const = 0;
57 virtual QString centralLabel()
const = 0;
58 virtual QString endPrefixLabel()
const = 0;
59 virtual QString endPostfixLabel()
const = 0;
60 virtual bool hasStartValue()
const = 0;
61 virtual bool hasEndValue()
const = 0;
63 Q_INVOKABLE
virtual void eraseStartValue() = 0;
64 Q_INVOKABLE
virtual void eraseEndValue() = 0;
67 void startValueChanged();
68 void endValueChanged();
69 void hasStartValueChanged();
70 void hasEndValueChanged();
71 void startPrefixLabelChanged();
72 void startPostfixLabelChanged();
73 void centralLabelChanged();
74 void endPrefixLabelChanged();
75 void endPostfixLabelChanged();