Thermostat pour piloter jusqu'à 4 radiateurs avec fil pilote
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
958 B

  1. // SPDX-License-Identifier: GPL-3.0-or-later
  2. /*
  3. * Qt mutizone MQTT thermostat
  4. *
  5. * Copyright (C) 2020 Richard Genoud
  6. *
  7. */
  8. #ifndef EDITDLG_H
  9. #define EDITDLG_H
  10. #include <QVector>
  11. #include <QWidget>
  12. #include <QObject>
  13. #include <QSpinBox>
  14. #include <QDateTime>
  15. #include <QVBoxLayout>
  16. #include <QDoubleSpinBox>
  17. #include "settings.h"
  18. class EditDlg : public QWidget
  19. {
  20. Q_OBJECT
  21. public:
  22. EditDlg(int idx, QWidget *parent = Q_NULLPTR,
  23. Qt::WindowFlags f = Qt::WindowFlags());
  24. ~EditDlg();
  25. private:
  26. void set_font(QWidget *widget);
  27. QHBoxLayout *add_prog_layout(const struct Program *p, int idx);
  28. QDoubleSpinBox m_default_temperature;
  29. QVBoxLayout *m_progsLayout;
  30. QVector<struct Program> m_progs;
  31. int m_idx; // room index
  32. private slots:
  33. void save(void);
  34. void add(void);
  35. void reject(void);
  36. void delete_prog_clicked(void);
  37. signals:
  38. void close_edit_dlg(void);
  39. };
  40. #endif // EDITDLG_H
  41. /* vim: set tabstop=8 shiftwidth=8 softtabstop=0 noexpandtab: */