Loading...
Searching...
No Matches
lomiri-preview-range-parameter.h
/* This file is part of lomiri-action-api
* Copyright 2013 Canonical Ltd.
*
* lomiri-action-api is free software: you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License version 3,
* as published by the Free Software Foundation.
*
* lomiri-action-api is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranties of
* MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef LOMIRI_ACTION_PREVIEW_RANGE_PARAMETER
#define LOMIRI_ACTION_PREVIEW_RANGE_PARAMETER
#include <lomiri/action/PreviewParameter>
namespace lomiri {
namespace action {
class PreviewRangeParameter;
}
}
class Q_DECL_EXPORT lomiri::action::PreviewRangeParameter : public lomiri::action::PreviewParameter
{
Q_OBJECT
Q_DISABLE_COPY(PreviewRangeParameter)
Q_PROPERTY(QString text
READ text
WRITE setText
NOTIFY textChanged)
Q_PROPERTY(float value
READ value
WRITE setValue
NOTIFY valueChanged)
Q_PROPERTY(float minimumValue
READ minimumValue
WRITE setMinimumValue
NOTIFY minimumValueChanged)
Q_PROPERTY(float maximumValue
READ maximumValue
WRITE setMaximumValue
NOTIFY maximumValueChanged)
public:
explicit PreviewRangeParameter(QObject *parent = 0);
virtual ~PreviewRangeParameter();
QString text() const;
void setText(const QString &value);
float value() const;
void setValue(float value);
float minimumValue() const;
void setMinimumValue(float value);
float maximumValue() const;
void setMaximumValue(float value);
signals:
void textChanged(const QString &text);
void valueChanged(float value);
void minimumValueChanged(float value);
void maximumValueChanged(float value);
private:
class Private;
QScopedPointer<Private> d;
};
#endif
lomiri::action::PreviewParameter
Definition lomiri-preview-parameter.h:29
lomiri::action::PreviewRangeParameter
Definition lomiri-preview-range-parameter.h:29
lomiri::action::PreviewRangeParameter::minimumValue
float minimumValue
Definition lomiri-preview-range-parameter.h:34
lomiri::action::PreviewRangeParameter::PreviewRangeParameter
PreviewRangeParameter(QObject *parent=0)
Definition lomiri-preview-range-parameter.cpp:97
lomiri::action::PreviewRangeParameter::maximumValue
float maximumValue
Definition lomiri-preview-range-parameter.h:35
lomiri::action::PreviewRangeParameter::text
QString text
Definition lomiri-preview-range-parameter.h:32
lomiri::action::PreviewRangeParameter::value
float value
Definition lomiri-preview-range-parameter.h:33