ICF 3.0.5.47
Technical documentation of ICF Libraries
CDoubleRangeSpinEdit.h
Go to the documentation of this file.
1/********************************************************************************
2** This file is part of the ICF Framework. Copyright (C) Witold Gantzke & Kirill Lepskiy
3** ICF Framework may be used under the terms of the LGPL License v. 2.1 by the Free Software Foundation.
4********************************************************************************/
5
6#ifndef iwidgets_CDoubleRangeSpinEdit_included
7#define iwidgets_CDoubleRangeSpinEdit_included
8
9
10// Local includes
11#include <GeneratedFiles/iwidgets/ui_CDoubleRangeSpinEdit.h>
12
13
14namespace iwidgets
15{
16
17
18class CDoubleRangeSpinEdit: public QWidget
19{
20 Q_OBJECT
21public:
22 explicit CDoubleRangeSpinEdit(QWidget *parent = nullptr);
23
24 // public interface
25 void SetMinRange(double minFrom, double minTo);
26 void SetMaxRange(double maxFrom, double maxTo);
27 void SetRange(double from, double to);
28
29 void SetDecimals(int count);
30 void SetSingleStep(double step);
31 void SetSuffixText(const QString& suffix);
32 void SetMinLabelText(const QString& text);
33 void SetMaxLabelText(const QString& text);
34
35 void EnableMaxValue(bool enable = true);
36 void EnableValdation(bool enable = true);
37
38 void SetValues(double minValue, double maxValue);
39 double GetMinValue() const;
40 double GetMaxValue() const;
41
42Q_SIGNALS:
44
45protected Q_SLOTS:
46 void OnMinValueChanged(double);
47 void OnMaxValueChanged(double);
48
49protected:
50 Ui::CDoubleRangeSpinEdit m_ui;
51
54};
55
56
57} // namespace iwidgets
58
59
60#endif // !iwidgets_CDoubleRangeSpinEdit_included
CDoubleRangeSpinEdit(QWidget *parent=nullptr)
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)
void SetValues(double minValue, double maxValue)
void SetSingleStep(double step)
void SetSuffixText(const QString &suffix)
Namespace contains implementation of Qt widget extensions.

© Witold Gantzke and Kirill Lepskiy