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
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
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
59{
60 Q_OBJECT
61public:
62 explicit ShortcutListModel(QObject * parent = Q_NULLPTR);
63
64protected:
65 virtual QStringList headerColumns() const;
66};
67
69{
70 Q_OBJECT
71public:
72 explicit FolderListModel(QObject * parent = Q_NULLPTR);
73
74protected:
75 virtual QStringList headerColumns() const;
76};
77
78class AboutDialog : public QDialog
79{
80 Q_OBJECT
81
82public:
83 explicit AboutDialog(QWidget *parent = 0);
84 virtual ~AboutDialog();
85
86protected:
87 virtual bool event(QEvent *event);
88 virtual void showEvent(QShowEvent *);
89 virtual const char* getVCSVersion();
90
91 // UI getters
92 QLabel* labelLogo() const;
93 QLabel* labelTitle() const;
94 QTabWidget* tabWidget() const;
95 QWidget* tabWireshark() const;
96
97private:
98 void updateWiresharkText();
99
100 Ui::AboutDialog *ui;
101 QString script_pattern;
102 QString clipboardInfo;
103
104private slots:
105 void urlDoubleClicked(const QModelIndex &);
106 void handleCopyMenu(QPoint);
107 void showInFolderActionTriggered();
108 void copyActionTriggered(bool row = false);
109 void copyRowActionTriggered();
110 void on_tblPlugins_doubleClicked(const QModelIndex &index);
111 void on_copyToClipboard_clicked();
112};
113
114#endif // ABOUT_DIALOG_H
Definition astringlist_list_model.h:23
Definition about_dialog.h:79
Definition about_dialog.h:31
Definition about_dialog.h:69
Definition about_dialog.h:44
Definition about_dialog.h:59