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
33void splash_update(register_action_e action, const char *message, void *dummy);
34
35class SplashOverlay : public QWidget
36{
37 Q_OBJECT
38
39public:
40 explicit SplashOverlay(QWidget *parent = 0);
42
43 void fadeOut();
44
45protected:
46 void paintEvent(QPaintEvent *event) override;
47
48private:
49 register_action_e last_action_;
50 int register_cur_;
51 int register_max_;
52 QString action_text_;
53 QString action_subtext_;
54 QElapsedTimer elapsed_timer_;
55
56 QGraphicsOpacityEffect *opacity_effect_;
57 QPropertyAnimation *fade_animation_;
58
59 static SplashOverlay *instance_;
60 void splashUpdate(register_action_e action, const char *message);
61
62 friend void splash_update(register_action_e action, const char *message, void *dummy);
63};
64
65#endif // SPLASH_OVERLAY_H
Definition splash_overlay.h:36
friend void splash_update(register_action_e action, const char *message, void *dummy)
Updates the splash overlay with a new action and message.
Definition splash_overlay.cpp:52
void splash_update(register_action_e action, const char *message, void *dummy)
Updates the splash overlay with a new action and message.
Definition splash_overlay.cpp:52