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
31{
32 Q_OBJECT
33public:
38 explicit ShortcutListModel(QObject *parent = Q_NULLPTR);
39
40protected:
45 QStringList headerColumns() const override;
46};
47
52{
53 Q_OBJECT
54
55public:
60 explicit KeyboardShortcutsDialog(QWidget *parent = 0);
61
66
67protected:
72 void showEvent(QShowEvent *event) override;
73
74private slots:
79 void showCopyMenu(const QPoint &pos);
80
84 void copyColumnSelection();
85
89 void copyRowSelection();
90
94 void printShortcuts();
95
96private:
101 void copySelection(bool copy_row);
102
107 QString buildShortcutsHtml() const;
108
113 QString applicationVersionLabel() const;
114
116 Ui::KeyboardShortcutsDialog *ui;
117
119 ShortcutListModel *shortcut_model_;
120
122 AStringListListSortFilterProxyModel *shortcut_proxy_model_;
123
125 QPersistentModelIndex context_menu_index_;
126};
127
128#endif // KEYBOARD_SHORTCUTS_DIALOG_H
A table model backed by a list of string lists.
Definition astringlist_list_model.h:28
A sort/filter proxy model for AStringListList-based models.
Definition astringlist_list_model.h:91
A dialog that remembers its geometry and splitter state.
Definition geometry_state_dialog.h:20
A dialog window that displays the available keyboard shortcuts.
Definition keyboard_shortcuts_dialog.h:52
void showEvent(QShowEvent *event) override
Handles the event when the dialog is shown.
Definition keyboard_shortcuts_dialog.cpp:126
~KeyboardShortcutsDialog()
Destroys the KeyboardShortcutsDialog.
Definition keyboard_shortcuts_dialog.cpp:121
A model managing the list of keyboard shortcuts for UI display.
Definition keyboard_shortcuts_dialog.h:31
QStringList headerColumns() const override
Retrieves the header column titles for the model.
Definition keyboard_shortcuts_dialog.cpp:77