Wireshark 2.9.0-477-g68ec514b The Wireshark network protocol analyzer

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

about_dialog.h
1 /* about_dialog.h
2 *
3 * Wireshark - Network traffic analyzer
4 * By Gerald Combs <gerald@wireshark.org>
5 * Copyright 1998 Gerald Combs
6 *
7 * SPDX-License-Identifier: GPL-2.0-or-later
8 */
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 <QAbstractItemModel>
19 #include <QModelIndex>
20 #include <QHash>
21 #include <QString>
22 #include <QSortFilterProxyModel>
23
24 namespace Ui {
25 class AboutDialog;
26 }
27
28 class AuthorListModel : public AStringListListModel
29 {
30 Q_OBJECT
31
32 public:
33 explicit AuthorListModel(QObject * parent = Q_NULLPTR);
34 virtual ~AuthorListModel();
35
36 QString acknowledgment() const;
37
38 protected:
39 virtual QStringList headerColumns() const;
40
41 private:
42 QString acknowledgement_;
43
44 };
45
46 class PluginListModel : public AStringListListModel
47 {
48 Q_OBJECT
49 public:
50 explicit PluginListModel(QObject * parent = Q_NULLPTR);
51
52 QStringList typeNames() const;
53
54 protected:
55 virtual QStringList headerColumns() const;
56
57 private:
58 QStringList typeNames_;
59 };
60
61 class ShortcutListModel : public AStringListListModel
62 {
63 Q_OBJECT
64 public:
65 explicit ShortcutListModel(QObject * parent = Q_NULLPTR);
66
67 protected:
68 virtual QStringList headerColumns() const;
69 };
70
71 class FolderListModel : public AStringListListModel
72 {
73 Q_OBJECT
74 public:
75 explicit FolderListModel(QObject * parent = Q_NULLPTR);
76
77 protected:
78 virtual QStringList headerColumns() const;
79 };
80
81 class AboutDialog : public QDialog
82 {
83 Q_OBJECT
84
85 public:
86 explicit AboutDialog(QWidget *parent = 0);
87 ~AboutDialog();
88
89 protected:
90 virtual void showEvent(QShowEvent *);
91
92 private:
93 Ui::AboutDialog *ui;
94
95 private slots:
96 void urlDoubleClicked(const QModelIndex &);
97 void handleCopyMenu(QPoint);
98 void copyActionTriggered(bool row = false);
99 void copyRowActionTriggered();
100 #ifdef HAVE_LUA
101 void on_tblPlugins_doubleClicked(const QModelIndex &index);
102 #endif
103 };
104
105 #endif // ABOUT_DIALOG_H
106
107 /*
108 * Editor modelines
109 *
110 * Local Variables:
111 * c-basic-offset: 4
112 * tab-width: 8
113 * indent-tabs-mode: nil
114 * End:
115 *
116 * ex: set shiftwidth=4 tabstop=8 expandtab:
117 * :indentSize=4:tabSize=8:noTabs=true:
118 */
Ui
Definition: ui_about_dialog.h:291
FolderListModel
Definition: about_dialog.h:71
PluginListModel
Definition: about_dialog.h:46
ShortcutListModel
Definition: about_dialog.h:61
AboutDialog
Definition: about_dialog.h:81
AStringListListModel
Definition: astringlist_list_model.h:22
Ui::AboutDialog
Definition: ui_about_dialog.h:292
AuthorListModel
Definition: about_dialog.h:28