| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
welcome_page.h
Go to the documentation of this file.
1
9
10#ifndef WELCOME_PAGE_H
11#define WELCOME_PAGE_H
12
13#include <QFrame>
14
15 class QListWidget;
16 class QListWidgetItem;
17 class QMenu;
18 class CaptureCardWidget;
19 class InterfaceFrame;
20
21#include <ui/qt/widgets/splash_overlay.h>
22
23 namespace Ui {
24 class WelcomePage;
25}
26
30 class WelcomePage : public QFrame
31{
32 Q_OBJECT
33 public:
38 explicit WelcomePage(QWidget *parent = 0);
39
43 virtual ~WelcomePage();
44
49 InterfaceFrame *getInterfaceFrame();
50
55 CaptureCardWidget *captureCard();
56
61 const QString captureFilter();
62
67 void setCaptureFilter(const QString capture_filter);
68
72 void updateStyleSheets();
73
74 public slots:
78 void interfaceSelected();
79
84 void setCaptureFilterText(const QString capture_filter);
85
86 protected:
92 virtual bool event(QEvent *event) override;
93
98 virtual void resizeEvent(QResizeEvent *event) override;
99
104 virtual void showEvent(QShowEvent *event) override;
105
106 protected slots:
110 void on_openFileSectionLabel_clicked();
111
112 private:
114 Ui::WelcomePage *welcome_ui_;
115
117 QString show_in_str_;
118
120 SplashOverlay *splash_overlay_;
121
125 void updateSidebarLayout();
126
127signals:
132 void recentFileActivated(QString cfile);
133
134 private slots:
138 void appInitialized();
139
144 void showCaptureFilesContextMenu(QPoint pos);
145
149 void applySidebarPreferences();
150};
151
152#endif // WELCOME_PAGE_H
CaptureCardWidget
A widget representing a capture card in the UI, providing interface selection and filtering capabilit...
Definition capture_card_widget.h:24
InterfaceFrame
A frame containing the list of interfaces available for capture, along with status and controls.
Definition interface_frame.h:39
SplashOverlay
Semi-transparent overlay widget displayed during application startup while Wireshark's protocol and p...
Definition splash_overlay.h:43
WelcomePage::WelcomePage
WelcomePage(QWidget *parent=0)
Constructs the WelcomePage widget.
Definition welcome_page.cpp:42
WelcomePage::updateStyleSheets
void updateStyleSheets()
Refreshes style sheets for all child widgets.
Definition welcome_page.cpp:377
WelcomePage::getInterfaceFrame
InterfaceFrame * getInterfaceFrame()
Returns the interface frame embedded in this page.
Definition welcome_page.cpp:120
WelcomePage::on_openFileSectionLabel_clicked
void on_openFileSectionLabel_clicked()
Slot invoked when the "Open File" section label is clicked.
Definition welcome_page.cpp:384
WelcomePage::interfaceSelected
void interfaceSelected()
Handles selection of a capture interface by the user.
Definition welcome_page.cpp:145
WelcomePage::captureFilter
const QString captureFilter()
Returns the current capture filter string.
Definition welcome_page.cpp:130
WelcomePage::captureCard
CaptureCardWidget * captureCard()
Returns the capture card widget.
Definition welcome_page.cpp:125
WelcomePage::recentFileActivated
void recentFileActivated(QString cfile)
Emitted when the user activates a recent capture file.
WelcomePage::setCaptureFilterText
void setCaptureFilterText(const QString capture_filter)
Updates the capture filter input field with the given text.
Definition welcome_page.cpp:140
WelcomePage::~WelcomePage
virtual ~WelcomePage()
Destroys the WelcomePage widget.
Definition welcome_page.cpp:115
WelcomePage::event
virtual bool event(QEvent *event) override
Handles generic Qt events for this widget.
Definition welcome_page.cpp:193
WelcomePage::showEvent
virtual void showEvent(QShowEvent *event) override
Handles widget show events, triggering any necessary initialization.
Definition welcome_page.cpp:223
WelcomePage::resizeEvent
virtual void resizeEvent(QResizeEvent *event) override
Handles widget resize events.
Definition welcome_page.cpp:213
WelcomePage::setCaptureFilter
void setCaptureFilter(const QString capture_filter)
Sets the capture filter expression.
Definition welcome_page.cpp:135
splash_overlay.h