Wireshark 4.7.3
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
preferences_dialog.h
Go to the documentation of this file.
1
9
10#ifndef PREFERENCES_DIALOG_H
11#define PREFERENCES_DIALOG_H
12
13#include <config.h>
14
15#include <epan/prefs.h>
16
19
21
22class QComboBox;
23class QAbstractButton;
24
25namespace Ui {
26class PreferencesDialog;
27}
28
33{
34 Q_OBJECT
35
36public:
41 explicit PreferencesDialog(QWidget *parent = 0);
42
47
53 void setPane(const QString module_name);
54
55protected:
60 void keyPressEvent(QKeyEvent *event) override;
61
66 void showEvent(QShowEvent *evt) override;
67
68private:
72 void apply();
73
77 void resizeSplitter();
78
79 Ui::PreferencesDialog *pd_ui_;
80
81 QHash<QString, QWidget*> prefs_pane_to_item_;
82
83 PrefsModel model_;
84 AdvancedPrefsModel advancedPrefsModel_;
85 AdvancedPrefDelegate advancedPrefsDelegate_;
86 ModulePrefsModel modulePrefsModel_;
87
88 QTimer *searchLineEditTimer;
89 QString searchLineEditText;
90
91private slots:
96 void selectPane(QString pane);
97
102 void handleCopyMenu(QPoint pos);
103
107 void copyActionTriggered();
108
112 void copyRowActionTriggered();
113
118 void on_advancedSearchLineEdit_textEdited(const QString &search_re);
119
124 void on_showChangedValuesCheckBox_toggled(bool checked);
125
129 void on_buttonBox_accepted();
130
134 void on_buttonBox_rejected();
135
139 void on_buttonBox_helpRequested();
140
145 void on_buttonBox_clicked(QAbstractButton *button);
146
153 void updateSearchLineEdit();
154};
155
156#endif // PREFERENCES_DIALOG_H
Item delegate providing in-place editors for the Advanced Preferences table.
Definition pref_delegate.h:26
Sort/filter proxy model for the Advanced Preferences pane.
Definition pref_models.h:237
GeometryStateDialog(QWidget *parent, Qt::WindowFlags f=Qt::Window)
Constructs a new GeometryStateDialog with the specified parent and window flags.
Definition geometry_state_dialog.h:91
Sort/filter proxy model for the module (left-hand) pane of the Preferences dialog.
Definition pref_models.h:364
~PreferencesDialog()
Destroys the PreferencesDialog.
Definition preferences_dialog.cpp:194
void showEvent(QShowEvent *evt) override
Handles the show event for the dialog.
Definition preferences_dialog.cpp:235
void keyPressEvent(QKeyEvent *event) override
Handles key press events within the dialog.
Definition preferences_dialog.cpp:206
PreferencesDialog(QWidget *parent=0)
Constructs a PreferencesDialog.
Definition preferences_dialog.cpp:123
void setPane(const QString module_name)
Show the preference pane corresponding to the a preference module name.
Definition preferences_dialog.cpp:201
Tree model backing the Preferences dialog.
Definition pref_models.h:28