Wireshark 4.7.3
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
about_dialog.h
Go to the documentation of this file.
1
9
10#ifndef ABOUT_DIALOG_H
11#define ABOUT_DIALOG_H
12
13#include "config.h"
14
16
17#include <QDialog>
18#include <QLabel>
19#include <QTabWidget>
20#include <QAbstractItemModel>
21#include <QModelIndex>
22#include <QHash>
23#include <QString>
24#include <QSortFilterProxyModel>
25
26namespace Ui {
27class AboutDialog;
28}
29
34{
35 Q_OBJECT
36
37public:
42 explicit AuthorListModel(QObject *parent = Q_NULLPTR);
46 virtual ~AuthorListModel();
47
48protected:
50 virtual QStringList headerColumns() const override;
51};
52
57{
58 Q_OBJECT
59public:
64 explicit PluginListModel(QObject *parent = Q_NULLPTR);
65
70 QStringList typeNames() const;
71
72protected:
74 virtual QStringList headerColumns() const override;
75
76private:
77 QStringList typeNames_;
78};
79
84{
85 Q_OBJECT
86public:
91 explicit FolderListModel(QObject *parent = Q_NULLPTR);
92
93protected:
95 virtual QStringList headerColumns() const override;
96};
97
101class AboutDialog : public QDialog
102{
103 Q_OBJECT
104
105public:
110 explicit AboutDialog(QWidget *parent = 0);
111
115 virtual ~AboutDialog();
116
117protected:
125 virtual bool event(QEvent *event) override;
126
131 virtual void showEvent(QShowEvent *event) override;
132
139 const char *getVCSVersion();
140
141
142 // UI element accessors used by subclasses and tests.
143
145 QLabel *labelLogo() const;
146
148 QLabel *labelTitle() const;
149
151 QTabWidget *tabWidget() const;
152
154 QWidget *tabWireshark() const;
155
156
157private:
161 void updateWiresharkText();
162
163 Ui::AboutDialog *ui;
164 QString script_pattern;
165 QString clipboardInfo;
166
167
168private slots:
173 void urlDoubleClicked(const QModelIndex &idx);
174
179 void handleCopyMenu(QPoint pos);
180
184 void showInFolderActionTriggered();
185
191 void copyActionTriggered(bool row = false);
192
196 void copyRowActionTriggered();
197
204 void on_tblPlugins_doubleClicked(const QModelIndex &index);
205
209 void on_copyToClipboard_clicked();
210};
211
212#endif // ABOUT_DIALOG_H
AStringListListModel(QObject *parent=Q_NULLPTR)
Construct an empty model.
Definition astringlist_list_model.cpp:20
QWidget * tabWireshark() const
Return the "Wireshark" summary tab widget.
Definition about_dialog.cpp:396
virtual void showEvent(QShowEvent *event) override
Populate dynamic content the first time the dialog is shown.
Definition about_dialog.cpp:415
virtual ~AboutDialog()
Destructor.
Definition about_dialog.cpp:376
virtual bool event(QEvent *event) override
Handle application-level events such as palette or font changes.
Definition about_dialog.cpp:402
QTabWidget * tabWidget() const
Return the main QTabWidget containing all About tabs.
Definition about_dialog.cpp:391
QLabel * labelLogo() const
Return the logo QLabel widget.
Definition about_dialog.cpp:381
QLabel * labelTitle() const
Return the application title QLabel widget.
Definition about_dialog.cpp:386
AboutDialog(QWidget *parent=0)
Construct an AboutDialog.
Definition about_dialog.cpp:258
const char * getVCSVersion()
Return the VCS (Git) revision string embedded at build time.
Definition about_dialog.cpp:441
AuthorListModel(QObject *parent=Q_NULLPTR)
Construct an AuthorListModel.
Definition about_dialog.cpp:67
virtual ~AuthorListModel()
Destructor.
Definition about_dialog.cpp:93
virtual QStringList headerColumns() const override
Return the column header labels for the authors table.
Definition about_dialog.cpp:95
virtual QStringList headerColumns() const override
Return the column header labels for the folders table.
Definition about_dialog.cpp:250
FolderListModel(QObject *parent=Q_NULLPTR)
Construct an FolderListModel.
Definition about_dialog.cpp:172
virtual QStringList headerColumns() const override
Return the column header labels for the plugins table.
Definition about_dialog.cpp:167
QStringList typeNames() const
Return the list of distinct plugin type name strings.
Definition about_dialog.cpp:162
PluginListModel(QObject *parent=Q_NULLPTR)
Construct an PluginListModel.
Definition about_dialog.cpp:137