raDIYo 0.4
swabstractillumination.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 SWABSTRACTILLUMINATION_H
16#define SWABSTRACTILLUMINATION_H
17
18#include <QObject>
19
20
31class SWAbstractIllumination : public QObject
32{
33 Q_OBJECT
34
35public:
36
37 explicit SWAbstractIllumination(QObject *parent = nullptr);
39
40 void toggleIllumination();
41 bool isIlluminated();
42 virtual void setIllumation( bool illuminated );
43
44
45signals:
46
47protected:
48
49 bool _illuminated = false;
50
51
52};
53
54#endif // SWABSTRACTILLUMINATION_H
The SWAbstractIllumation class: Eine abstrakte Aspektkompente, welche die Beleuchtung eines Widgets s...