| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
splash_overlay.h
Go to the documentation of this file.
1
9
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
20 class QGraphicsOpacityEffect;
21 class QPropertyAnimation;
22
33 void splash_update(register_action_e action, const char *message, void *dummy);
34
42 class SplashOverlay : public QWidget
43{
44 Q_OBJECT
45
46 public:
51 explicit SplashOverlay(QWidget *parent = 0);
52
56 ~SplashOverlay();
57
61 void fadeOut();
62
63 protected:
68 void paintEvent(QPaintEvent *event) override;
69
70 private:
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_;
77
78 QGraphicsOpacityEffect *opacity_effect_;
79 QPropertyAnimation *fade_animation_;
80
81 static SplashOverlay *instance_;
82
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
SplashOverlay::splash_update
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::SplashOverlay
SplashOverlay(QWidget *parent=0)
Constructs the SplashOverlay and begins tracking registration progress.
Definition splash_overlay.cpp:69
SplashOverlay::~SplashOverlay
~SplashOverlay()
Destroys the SplashOverlay and releases animation resources.
Definition splash_overlay.cpp:97
SplashOverlay::fadeOut
void fadeOut()
Starts a fade-out animation; the widget is hidden when the animation completes.
Definition splash_overlay.cpp:103
SplashOverlay::paintEvent
void paintEvent(QPaintEvent *event) override
Renders the overlay background, progress bar, and status text.
Definition splash_overlay.cpp:108
register.h
register_action_e
register_action_e
Identifies the current registration or initialization phase during Wireshark startup.
Definition register.h:21
splash_update
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