Lomiri Action API
Toggle main menu visibility
Loading...
Searching...
No Matches
include
lomiri
action
lomiri-preview-range-parameter.h
1
/* This file is part of lomiri-action-api
2
* Copyright 2013 Canonical Ltd.
3
*
4
* lomiri-action-api is free software: you can redistribute it and/or modify it
5
* under the terms of the GNU Lesser General Public License version 3,
6
* as published by the Free Software Foundation.
7
*
8
* lomiri-action-api is distributed in the hope that it will be useful, but
9
* WITHOUT ANY WARRANTY; without even the implied warranties of
10
* MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
11
* PURPOSE. See the GNU Lesser General Public License for more details.
12
*
13
* You should have received a copy of the GNU Lesser General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
15
*/
16
17
#ifndef LOMIRI_ACTION_PREVIEW_RANGE_PARAMETER
18
#define LOMIRI_ACTION_PREVIEW_RANGE_PARAMETER
19
20
#include <lomiri/action/PreviewParameter>
21
22
namespace
lomiri {
23
namespace
action {
24
class
PreviewRangeParameter
;
25
}
26
}
27
28
class
Q_DECL_EXPORT lomiri::
action::PreviewRangeParameter
:
public
lomiri::action::PreviewParameter
29
{
30
Q_OBJECT
31
Q_DISABLE_COPY(
PreviewRangeParameter
)
32
Q_PROPERTY(QString
text
33
READ
text
34
WRITE setText
35
NOTIFY textChanged)
36
Q_PROPERTY(
float
value
37
READ
value
38
WRITE setValue
39
NOTIFY valueChanged)
40
Q_PROPERTY(
float
minimumValue
41
READ
minimumValue
42
WRITE setMinimumValue
43
NOTIFY minimumValueChanged)
44
Q_PROPERTY(
float
maximumValue
45
READ
maximumValue
46
WRITE setMaximumValue
47
NOTIFY maximumValueChanged)
48
49
public:
50
51
explicit
PreviewRangeParameter
(QObject *parent = 0);
52
virtual ~
PreviewRangeParameter
();
53
54
QString
text
() const;
55
void
setText(const QString &
value
);
56
57
float
value
() const;
58
void
setValue(
float
value
);
59
60
float
minimumValue
() const;
61
void
setMinimumValue(
float
value
);
62
63
float
maximumValue
() const;
64
void
setMaximumValue(
float
value
);
65
66
signals:
67
void
textChanged(const QString &
text
);
68
void
valueChanged(
float
value
);
69
void
minimumValueChanged(
float
value
);
70
void
maximumValueChanged(
float
value
);
71
72
private:
73
class Private;
74
QScopedPointer<Private> d;
75
};
76
77
#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
Generated on
for Lomiri Action API by
1.17.0