QVisu
Qt-based visualization for smart homes
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
qvheating.h
1 /* QVisu (c) 2015 Maximilian Gauger mgauger@kalassi.de
2  *
3  * This program is free software: you can redistribute it and/or modify
4  * it under the terms of the GNU General Public License as published by
5  * the Free Software Foundation, either version 2 of the License, or
6  * (at your option) any later version.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12 
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  */
16 
17 #ifndef QVHEATING_H
18 #define QVHEATING_H
19 
20 #include <QLabel>
21 #include "../qvsvgwidget.h"
22 #include "../qviconwidget.h"
23 #include "../qvelement.h"
24 
26 public:
27  QString item;
28  QString label;
29  QString unit;
30  int precision;
31  double value;
32  QWidget *widget;
33 };
34 
35 class QVHeating : public QVElement
36 {
37  Q_OBJECT
38 public:
39  explicit QVHeating(QDomElement xml_desc, QString container, QWidget *parent = 0);
40 
41 protected:
42  void resizeEvent(QResizeEvent * event);
43 
44 signals:
45 
46 public slots:
47  void onValueChanged(QString,QString);
48 
49 private slots:
50  void svgPressed();
51 
52 private:
53  QByteArray svg_icon;
54  QByteArray svg_sw_icon;
55  QVIconWidget *w_icon;
56  QVSvgWidget *w_sw_icon;
57  QLabel *w_title;
58  QLabel *w_temp_value;
59  QLabel *w_temp_setpoint;
60  QVSvgWidget *w_temp_setpoint_minus, *w_temp_setpoint_plus;
61 
62  double temp_value, temp_setpoint, temp_setpoint_step;
63  QList<heating_value_t*> sw_contents;
64 };
65 
66 #endif // QVHEATING_H
Definition: qviconwidget.h:26
Definition: qvelement.h:34
Definition: qvheating.h:35
Definition: qvheating.h:25
void resizeEvent(QResizeEvent *event)
Definition: qvheating.cpp:158
Definition: qvsvgwidget.h:24
QString container
Definition: qvelement.h:73