| 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
20 class QGraphicsOpacityEffect;
21 class QPropertyAnimation;
22
23 void splash_update(register_action_e action, const char *message, void *dummy);
24
25 class SplashOverlay : public QWidget
26{
27 Q_OBJECT
28
29 public:
30 explicit SplashOverlay(QWidget *parent = 0);
31 ~SplashOverlay();
32
33 void fadeOut();
34
35 protected:
36 void paintEvent(QPaintEvent *event) override;
37
38 private:
39 register_action_e last_action_;
40 int register_cur_;
41 int register_max_;
42 QString action_text_;
43 QString action_subtext_;
44 QElapsedTimer elapsed_timer_;
45
46 QGraphicsOpacityEffect *opacity_effect_;
47 QPropertyAnimation *fade_animation_;
48
49 static SplashOverlay *instance_;
50 void splashUpdate(register_action_e action, const char *message);
51
52 friend void splash_update(register_action_e action, const char *message, void *dummy);
53};
54
55#endif // SPLASH_OVERLAY_H
SplashOverlay
Definition splash_overlay.h:26
register.h