Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
about_dialog.h
Go to the documentation of this file.
1
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;
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;
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;
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);
126
131 virtual void showEvent(QShowEvent *event);
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;
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
A table model backed by a list of string lists.
Definition astringlist_list_model.h:28
The About Wireshark dialog.
Definition about_dialog.h:102
QWidget * tabWireshark() const
Return the "Wireshark" summary tab widget.
Definition about_dialog.cpp:396
virtual ~AboutDialog()
Destructor.
Definition about_dialog.cpp:376
virtual bool event(QEvent *event)
Handle application-level events such as palette or font changes.
Definition about_dialog.cpp:402
virtual void showEvent(QShowEvent *event)
Populate dynamic content the first time the dialog is shown.
Definition about_dialog.cpp:415
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
const char * getVCSVersion()
Return the VCS (Git) revision string embedded at build time.
Definition about_dialog.cpp:441
List model for the Authors tab of the About dialog.
Definition about_dialog.h:34
virtual QStringList headerColumns() const
Return the column header labels for the authors table.
Definition about_dialog.cpp:98
virtual ~AuthorListModel()
Destructor.
Definition about_dialog.cpp:96
List model for the Folders tab of the About dialog.
Definition about_dialog.h:84
virtual QStringList headerColumns() const
Return the column header labels for the folders table.
Definition about_dialog.cpp:250
List model for the Plugins tab of the About dialog.
Definition about_dialog.h:57
QStringList typeNames() const
Return the list of distinct plugin type name strings.
Definition about_dialog.cpp:165
virtual QStringList headerColumns() const
Return the column header labels for the plugins table.
Definition about_dialog.cpp:170