| 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
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
26namespace Ui {
27class AboutDialog;
28}
29
30 class AuthorListModel : public AStringListListModel
31{
32Q_OBJECT
33
34public:
35 explicit AuthorListModel(QObject * parent = Q_NULLPTR);
36 virtual ~AuthorListModel();
37
38protected:
39 virtual QStringList headerColumns() const;
40
41};
42
43 class PluginListModel : public AStringListListModel
44{
45 Q_OBJECT
46public:
47 explicit PluginListModel(QObject * parent = Q_NULLPTR);
48
49 QStringList typeNames() const;
50
51protected:
52 virtual QStringList headerColumns() const;
53
54private:
55 QStringList typeNames_;
56};
57
58 class FolderListModel : public AStringListListModel
59{
60 Q_OBJECT
61public:
62 explicit FolderListModel(QObject * parent = Q_NULLPTR);
63
64protected:
65 virtual QStringList headerColumns() const;
66};
67
68 class AboutDialog : public QDialog
69{
70 Q_OBJECT
71
72public:
73 explicit AboutDialog(QWidget *parent = 0);
74 virtual ~AboutDialog();
75
76protected:
77 virtual bool event(QEvent *event);
78 virtual void showEvent(QShowEvent *);
79 virtual const char* getVCSVersion();
80
81 // UI getters
82 QLabel* labelLogo() const;
83 QLabel* labelTitle() const;
84 QTabWidget* tabWidget() const;
85 QWidget* tabWireshark() const;
86
87private:
88 void updateWiresharkText();
89
90 Ui::AboutDialog *ui;
91 QString script_pattern;
92 QString clipboardInfo;
93
94private slots:
95 void urlDoubleClicked(const QModelIndex &);
96 void handleCopyMenu(QPoint);
97 void showInFolderActionTriggered();
98 void copyActionTriggered(bool row = false);
99 void copyRowActionTriggered();
100 void on_tblPlugins_doubleClicked(const QModelIndex &index);
101 void on_copyToClipboard_clicked();
102};
103
104#endif // ABOUT_DIALOG_H
astringlist_list_model.h
AStringListListModel
Definition astringlist_list_model.h:23
AboutDialog
Definition about_dialog.h:69
AuthorListModel
Definition about_dialog.h:31
FolderListModel
Definition about_dialog.h:59
PluginListModel
Definition about_dialog.h:44