Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
splash_overlay.h
Go to the documentation of this file.
1
10#ifndef SPLASH_OVERLAY_H
11#define SPLASH_OVERLAY_H
12
13#include <config.h>
14
15#include "epan/register.h"
16
17#include <QWidget>
18#include <QElapsedTimer>
19
20class QGraphicsOpacityEffect;
21class QPropertyAnimation;
22
23void splash_update(register_action_e action, const char *message, void *dummy);
24
25class SplashOverlay : public QWidget
26{
27 Q_OBJECT
28
29public:
30 explicit SplashOverlay(QWidget *parent = 0);
31
32 void fadeOut();
33
34protected:
35 void paintEvent(QPaintEvent *event) override;
36
37private:
38 register_action_e last_action_;
39 int register_cur_;
40 int register_max_;
41 QString action_text_;
42 QElapsedTimer elapsed_timer_;
43
44 QGraphicsOpacityEffect *opacity_effect_;
45 QPropertyAnimation *fade_animation_;
46
47private slots:
48 void splashUpdate(register_action_e action, const char *message);
49};
50
51#endif // SPLASH_OVERLAY_H
Definition splash_overlay.h:26