OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
aAnimationOverlayWidget.h
Go to the documentation of this file.
1/*
2 * File: aAnimationOverlayWidget.h
3 * Package: akWidgets
4 *
5 * Created on: November 08, 2021
6 * Author: Alexander Kuester
7 * Copyright (c) 2022 Alexander Kuester
8 * This file is part of the uiCore component.
9 * This file is subject to the terms and conditions defined in
10 * file 'LICENSE', which is part of this source code package.
11 */
12
13#pragma once
14
15// uiCore header
17
18// Qt header
19#include <qwidget.h>
20#include <qsize.h>
21
22class QLabel;
23class QMovie;
24class QResizeEvent;
25
26namespace ak {
27
28 class aTimer;
29
31 Q_OBJECT
32 public:
35
36 void setChild(
37 QWidget * _widget
38 );
39
40 void setWaitingAnimationVisible(
41 bool _visible
42 );
43
44 void setWaitingAnimation(
45 QMovie * _movie
46 );
47
48 void setAnimationDelay(int _ms) { m_animationDelay =_ms; }
49
50 QLabel* waitingLabel(void) const { return m_waitingLabel; };
51
52 private Q_SLOTS:
53 void slotTimeout(void);
54
55 private:
56
57 virtual void resizeEvent(QResizeEvent * _event) override;
58
59 QLabel * m_waitingLabel;
60 QWidget * m_childWidget;
61 int m_animationDelay;
62 bool m_animationDelayRequested;
63 aTimer * m_delayTimer;
64 bool m_waitingAnimationVisible;
65
68 };
69
70}
#define UICORE_API_EXPORT
Definition globalDataTypes.h:20
Definition aAnimationOverlayWidget.h:30
QLabel * waitingLabel(void) const
Definition aAnimationOverlayWidget.h:50
void setAnimationDelay(int _ms)
Definition aAnimationOverlayWidget.h:48
Definition aTimer.h:23
Definition uiAPI.h:45