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.

45 lines
782 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 <QSpinBox>
  11. #include <QDoubleSpinBox>
  12. #include <QWidget>
  13. #include <QObject>
  14. #include <QDateTime>
  15. class EditDlg : public QWidget
  16. {
  17. Q_OBJECT
  18. public:
  19. EditDlg(int idx, QWidget *parent = Q_NULLPTR,
  20. Qt::WindowFlags f = Qt::WindowFlags());
  21. ~EditDlg();
  22. private:
  23. void set_font(QWidget *widget);
  24. QDoubleSpinBox m_default_temperature;
  25. QVector<struct Program> m_progs;
  26. int m_idx; // room index
  27. private slots:
  28. void save(void);
  29. void reject(void);
  30. void delete_prog_clicked(void);
  31. signals:
  32. void close_edit_dlg(void);
  33. };
  34. #endif // EDITDLG_H
  35. /* vim: set tabstop=8 shiftwidth=8 softtabstop=0 noexpandtab: */