Loading...
Searching...
No Matches
ValueSliderFilterInterface.h
/*
* Copyright (C) 2015 Canonical, Ltd.
*
* 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; version 3.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef UNITY_SHELL_SCOPES_VALUESLIDERFILTERINTERFACE_H
#define UNITY_SHELL_SCOPES_VALUESLIDERFILTERINTERFACE_H
#include <unity/SymbolExport.h>
#include "FilterBaseInterface.h"
#include "ValueSliderValuesInterface.h"
namespace unity
{
namespace shell
{
namespace scopes
{
class UNITY_API ValueSliderFilterInterface : public FilterBaseInterface
{
Q_OBJECT
public:
Q_PROPERTY(double value READ value WRITE setValue NOTIFY valueChanged)
Q_PROPERTY(unity::shell::scopes::ValueSliderValuesInterface* values READ values NOTIFY valuesChanged)
Q_PROPERTY(double minValue READ minValue NOTIFY minValueChanged)
Q_PROPERTY(double maxValue READ maxValue NOTIFY maxValueChanged)
public:
FiltersInterface::FilterType filterType() const override
{
return FiltersInterface::ValueSliderFilter;
}
virtual double value() const = 0;
virtual void setValue(double) = 0;
virtual double minValue() const = 0;
virtual double maxValue() const = 0;
virtual ValueSliderValuesInterface* values() const = 0;
Q_SIGNALS:
void valueChanged();
void valuesChanged();
void minValueChanged();
void maxValueChanged();
protected:
explicit ValueSliderFilterInterface(QObject* parent = 0) : FilterBaseInterface(parent) {}
};
}
}
}
Q_DECLARE_METATYPE(unity::shell::scopes::ValueSliderFilterInterface*)
#endif
unity::shell::scopes::FilterBaseInterface
Definition FilterBaseInterface.h:31
unity::shell::scopes::ValueSliderFilterInterface
Definition ValueSliderFilterInterface.h:33
unity::shell::scopes::ValueSliderValuesInterface
Definition ValueSliderValuesInterface.h:31
unity
Top-level namespace for all things Unity-related.
Definition Version.h:38