raDIYo 0.4
swclockcontrol.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 SWCLOCKCONTROL_H
16#define SWCLOCKCONTROL_H
17
18#include <QBasicTimer>
19#include <swabstractcontrol.h>
20#include <swflipdigit.h>
21#include <ui_swclockcontrol.h>
22
23
24QT_BEGIN_NAMESPACE
25namespace Ui { class SWClockControl; }
26QT_END_NAMESPACE
27
28
29class SWClockControl : public SWAbstractControl, private Ui_SWClockControl
30{
31
32 Q_OBJECT
33
34public:
35
36 explicit SWClockControl( SWRaDIYoMainWidget* parent );
37 virtual ~SWClockControl();
38
39 void timerEvent( QTimerEvent* event ) override;
40
41 void updateTime();
42 void switchTransition( int delta );
43
44 void loadSettings();
45 void saveSettings();
46
47public slots:
48
49 //void onDialClicked() override;
50 //void onDialValueChanged( int value ) override;
51
52protected slots:
53
54 void chooseSlide();
55 void chooseFlip();
56 void chooseRotate();
57
58protected:
59
60 QBasicTimer _ticker;
61
62
63};
64
65#endif // SWCLOCKCONTROL_H