raDIYo 0.4
swalarmcontrol.h
1/***************************************************************************
2
3 source::worx raDIYo
4 Copyright © 2020-2022 c.holzheuer
5 c.holzheuer@sourceworx.org
6
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
11
12***************************************************************************/
13
14
15#ifndef SWALARMCONTROL_H
16#define SWALARMCONTROL_H
17
18
19#include <ui_swalarmcontrol.h>
20#include <swabstractcontrol.h>
21#include <swbuttongroup.h>
22
23QT_BEGIN_NAMESPACE
24namespace Ui { class SWAlarmControl; }
25QT_END_NAMESPACE
26
27
28class SWAlarmControl : public SWAbstractControl, private Ui_SWAlarmControl
29{
30
31 Q_OBJECT
32
33public:
34
35 explicit SWAlarmControl( SWRaDIYoMainWidget* parent );
36 virtual ~SWAlarmControl();
37
38 void paintEvent( QPaintEvent *event ) override;
39
40 void loadSettings();
41 void saveSettings();
42
43public slots:
44
45 void onDialClicked() override;
46 void onDialValueChanged( int value ) override;
47
48protected:
49
50 SWButtonGroup _weekdayButtons;
51
52};
53
54#endif // SWALARMCONTROL_H