Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
keyboard_shortcuts_dialog.h
Go to the documentation of this file.
1
10#ifndef KEYBOARD_SHORTCUTS_DIALOG_H
11#define KEYBOARD_SHORTCUTS_DIALOG_H
12
14
16
17#include <QPersistentModelIndex>
18#include <QPoint>
19#include <QString>
20
21class QShowEvent;
22
23namespace Ui {
25}
26
28{
29 Q_OBJECT
30public:
31 explicit ShortcutListModel(QObject *parent = Q_NULLPTR);
32
33protected:
34 QStringList headerColumns() const override;
35};
36
38{
39 Q_OBJECT
40
41public:
42 explicit KeyboardShortcutsDialog(QWidget *parent = 0);
44
45protected:
46 void showEvent(QShowEvent *event) override;
47
48private slots:
49 void showCopyMenu(const QPoint &pos);
50 void copyColumnSelection();
51 void copyRowSelection();
52 void printShortcuts();
53
54private:
55 void copySelection(bool copy_row);
56 QString buildShortcutsHtml() const;
57 QString applicationVersionLabel() const;
58
59 Ui::KeyboardShortcutsDialog *ui;
60 ShortcutListModel *shortcut_model_;
61 AStringListListSortFilterProxyModel *shortcut_proxy_model_;
62 QPersistentModelIndex context_menu_index_;
63};
64
65#endif // KEYBOARD_SHORTCUTS_DIALOG_H
Definition astringlist_list_model.h:23
Definition astringlist_list_model.h:52
Definition geometry_state_dialog.h:17
Definition keyboard_shortcuts_dialog.h:38
Definition keyboard_shortcuts_dialog.h:28