| 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
15#include <ui/qt/models/astringlist_list_model.h>
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
26 namespace Ui {
27 class AboutDialog;
28}
29
33 class AuthorListModel : public AStringListListModel
34{
35 Q_OBJECT
36
37 public:
42 explicit AuthorListModel(QObject *parent = Q_NULLPTR);
46 virtual ~AuthorListModel();
47
48 protected:
50 virtual QStringList headerColumns() const override;
51};
52
56 class PluginListModel : public AStringListListModel
57{
58 Q_OBJECT
59 public:
64 explicit PluginListModel(QObject *parent = Q_NULLPTR);
65
70 QStringList typeNames() const;
71
72 protected:
74 virtual QStringList headerColumns() const override;
75
76 private:
77 QStringList typeNames_;
78};
79
83 class FolderListModel : public AStringListListModel
84{
85 Q_OBJECT
86 public:
91 explicit FolderListModel(QObject *parent = Q_NULLPTR);
92
93 protected:
95 virtual QStringList headerColumns() const override;
96};
97
101 class AboutDialog : public QDialog
102{
103 Q_OBJECT
104
105 public:
110 explicit AboutDialog(QWidget *parent = 0);
111
115 virtual ~AboutDialog();
116
117 protected:
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
157 private:
161 void updateWiresharkText();
162
163 Ui::AboutDialog *ui;
164 QString script_pattern;
165 QString clipboardInfo;
166
167
168 private 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
astringlist_list_model.h
AStringListListModel::AStringListListModel
AStringListListModel(QObject *parent=Q_NULLPTR)
Construct an empty model.
Definition astringlist_list_model.cpp:20
AboutDialog::tabWireshark
QWidget * tabWireshark() const
Return the "Wireshark" summary tab widget.
Definition about_dialog.cpp:396
AboutDialog::showEvent
virtual void showEvent(QShowEvent *event) override
Populate dynamic content the first time the dialog is shown.
Definition about_dialog.cpp:415
AboutDialog::~AboutDialog
virtual ~AboutDialog()
Destructor.
Definition about_dialog.cpp:376
AboutDialog::event
virtual bool event(QEvent *event) override
Handle application-level events such as palette or font changes.
Definition about_dialog.cpp:402
AboutDialog::tabWidget
QTabWidget * tabWidget() const
Return the main QTabWidget containing all About tabs.
Definition about_dialog.cpp:391
AboutDialog::labelLogo
QLabel * labelLogo() const
Return the logo QLabel widget.
Definition about_dialog.cpp:381
AboutDialog::labelTitle
QLabel * labelTitle() const
Return the application title QLabel widget.
Definition about_dialog.cpp:386
AboutDialog::AboutDialog
AboutDialog(QWidget *parent=0)
Construct an AboutDialog.
Definition about_dialog.cpp:258
AboutDialog::getVCSVersion
const char * getVCSVersion()
Return the VCS (Git) revision string embedded at build time.
Definition about_dialog.cpp:441
AuthorListModel::AuthorListModel
AuthorListModel(QObject *parent=Q_NULLPTR)
Construct an AuthorListModel.
Definition about_dialog.cpp:67
AuthorListModel::~AuthorListModel
virtual ~AuthorListModel()
Destructor.
Definition about_dialog.cpp:93
AuthorListModel::headerColumns
virtual QStringList headerColumns() const override
Return the column header labels for the authors table.
Definition about_dialog.cpp:95
FolderListModel::headerColumns
virtual QStringList headerColumns() const override
Return the column header labels for the folders table.
Definition about_dialog.cpp:250
FolderListModel::FolderListModel
FolderListModel(QObject *parent=Q_NULLPTR)
Construct an FolderListModel.
Definition about_dialog.cpp:172
PluginListModel::headerColumns
virtual QStringList headerColumns() const override
Return the column header labels for the plugins table.
Definition about_dialog.cpp:167
PluginListModel::typeNames
QStringList typeNames() const
Return the list of distinct plugin type name strings.
Definition about_dialog.cpp:162
PluginListModel::PluginListModel
PluginListModel(QObject *parent=Q_NULLPTR)
Construct an PluginListModel.
Definition about_dialog.cpp:137