ACF $AcfVersion:0$
CDoubleRangeSpinEdit.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ACF-Commercial
2#pragma once
3
4
5// Local includes
6#include <GeneratedFiles/iwidgets/ui_CDoubleRangeSpinEdit.h>
7
8
9namespace iwidgets
10{
11
12
13class CDoubleRangeSpinEdit: public QWidget
14{
15 Q_OBJECT
16public:
17 explicit CDoubleRangeSpinEdit(QWidget *parent = NULL);
18
19 // public interface
20 void SetMinRange(double minFrom, double minTo);
21 void SetMaxRange(double maxFrom, double maxTo);
22 void SetRange(double from, double to);
23
24 void SetDecimals(int count);
25 void SetSingleStep(double step);
26 void SetSuffixText(const QString& suffix);
27 void SetMinLabelText(const QString& text);
28 void SetMaxLabelText(const QString& text);
29
30 void EnableMaxValue(bool enable = true);
31 void EnableValdation(bool enable = true);
32
33 void SetValues(double minValue, double maxValue);
34 double GetMinValue() const;
35 double GetMaxValue() const;
36
37Q_SIGNALS:
39
40protected Q_SLOTS:
41 void OnMinValueChanged(double);
42 void OnMaxValueChanged(double);
43
44protected:
45 Ui::CDoubleRangeSpinEdit m_ui;
46
49};
50
51
52} // namespace iwidgets
53
54
void EnableMaxValue(bool enable=true)
void SetMinLabelText(const QString &text)
void SetMaxLabelText(const QString &text)
void EnableValdation(bool enable=true)
void SetMinRange(double minFrom, double minTo)
void SetMaxRange(double maxFrom, double maxTo)
void SetRange(double from, double to)
CDoubleRangeSpinEdit(QWidget *parent=NULL)
void SetValues(double minValue, double maxValue)
void SetSingleStep(double step)
void SetSuffixText(const QString &suffix)
#define NULL
Definition istd.h:74
Namespace contains implementation of Qt widget extensions.