|
@ -9,6 +9,7 @@ |
|
|
#ifndef MAINWINDOW_H |
|
|
#ifndef MAINWINDOW_H |
|
|
#define MAINWINDOW_H |
|
|
#define MAINWINDOW_H |
|
|
|
|
|
|
|
|
|
|
|
#include <QStackedWidget> |
|
|
#include <QMainWindow> |
|
|
#include <QMainWindow> |
|
|
#include <QPushButton> |
|
|
#include <QPushButton> |
|
|
#include <QtWidgets> |
|
|
#include <QtWidgets> |
|
@ -32,6 +33,7 @@ private: |
|
|
QPushButton m_state_btn; |
|
|
QPushButton m_state_btn; |
|
|
QVector<ZoneItem *> m_zones; |
|
|
QVector<ZoneItem *> m_zones; |
|
|
QTimer *m_timer; |
|
|
QTimer *m_timer; |
|
|
|
|
|
QStackedWidget m_central_widget; |
|
|
void update_state_btn(enum power_states st); |
|
|
void update_state_btn(enum power_states st); |
|
|
double get_target_temperature(int room_idx); |
|
|
double get_target_temperature(int room_idx); |
|
|
bool get_heater_order(int room_idx); |
|
|
bool get_heater_order(int room_idx); |
|
|