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
42class SplashOverlay : public QWidget
43{
44 Q_OBJECT
45
46public:
51 explicit SplashOverlay(QWidget *parent = 0);
52
57
61 void fadeOut();
62
63protected:
68 void paintEvent(QPaintEvent *event) override;
69
70private:
71 register_action_e last_action_;
72 int register_cur_;
73 int register_max_;
74 QString action_text_;
75 QString action_subtext_;
76 QElapsedTimer elapsed_timer_;
78 QGraphicsOpacityEffect *opacity_effect_;
79 QPropertyAnimation *fade_animation_;
81 static SplashOverlay *instance_;
88 void splashUpdate(register_action_e action, const char *message);
89
99 friend void splash_update(register_action_e action, const char *message, void *dummy);
100};
101
102#endif // SPLASH_OVERLAY_H
Semi-transparent overlay widget displayed during application startup while Wireshark's protocol and p...
Definition splash_overlay.h:43
friend void splash_update(register_action_e action, const char *message, void *dummy)
C-linkage callback registered with the Wireshark registration framework.
Definition splash_overlay.cpp:64
~SplashOverlay()
Destroys the SplashOverlay and releases animation resources.
Definition splash_overlay.cpp:97
void fadeOut()
Starts a fade-out animation; the widget is hidden when the animation completes.
Definition splash_overlay.cpp:103
void paintEvent(QPaintEvent *event) override
Renders the overlay background, progress bar, and status text.
Definition splash_overlay.cpp:108
register_action_e
Identifies the current registration or initialization phase during Wireshark startup.
Definition register.h:21
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:64