digiKam
drangebox.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2017-08-09
7  * Description : Generic range boxes, i.e. ranges where a minimum and maximum can be given.
8  *
9  * Copyright (C) 2017 by Mario Frank <mario dot frank at uni minus potsdam dot de>
10  *
11  * This program is free software; you can redistribute it
12  * and/or modify it under the terms of the GNU General
13  * Public License as published by the Free Software Foundation;
14  * either version 2, or (at your option)
15  * any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * ============================================================ */
23 
24 #ifndef DIGIKAM_DRANGE_BOX_H
25 #define DIGIKAM_DRANGE_BOX_H
26 
27 // Qt includes
28 
29 #include <QWidget>
30 
31 // Local includes
32 
33 #include "digikam_export.h"
34 
35 namespace Digikam
36 {
37 
38 class DIGIKAM_EXPORT DIntRangeBox : public QWidget
39 {
40  Q_OBJECT
41 
42 public:
43 
44  explicit DIntRangeBox(QWidget* const parent = nullptr);
45  ~DIntRangeBox() override;
46 
52  void setRange(int min, int max);
53 
59  void setInterval(int min, int max);
60 
65  void setSuffix(const QString& suffix);
66 
71  void setEnabled(bool enabled);
72 
77  int minValue();
78 
83  int maxValue();
84 
85 Q_SIGNALS:
86 
87  void minChanged(int);
88  void maxChanged(int);
89 
90 private Q_SLOTS:
91 
92  void slotMinimumChanged(int);
93 
94 private:
95 
96  class Private;
97  Private* const d;
98 };
99 
100 } // namespace Digikam
101 
102 #endif // DIGIKAM_DRANGE_BOX_H
Definition: drangebox.h:39
QStringView suffix
Definition: itemviewutilities.cpp:594
Definition: datefolderview.cpp:43