Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
preferences_dialog.h
Go to the documentation of this file.
1
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 {
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);
61
66 void showEvent(QShowEvent *evt);
67
68private:
72 void apply();
73
77 void resizeSplitter();
78
79 Ui::PreferencesDialog *pd_ui_;
81 QHash<QString, QWidget*> prefs_pane_to_item_;
83 PrefsModel model_;
84 AdvancedPrefsModel advancedPrefsModel_;
85 AdvancedPrefDelegate advancedPrefsDelegate_;
86 ModulePrefsModel modulePrefsModel_;
87 bool saved_capture_no_extcap_;
89 QTimer *searchLineEditTimer;
90 QString searchLineEditText;
92private slots:
97 void selectPane(QString pane);
98
103 void handleCopyMenu(QPoint pos);
104
108 void copyActionTriggered();
109
113 void copyRowActionTriggered();
114
119 void on_advancedSearchLineEdit_textEdited(const QString &search_re);
120
125 void on_showChangedValuesCheckBox_toggled(bool checked);
126
130 void on_buttonBox_accepted();
131
135 void on_buttonBox_rejected();
136
140 void on_buttonBox_helpRequested();
141
146 void on_buttonBox_clicked(QAbstractButton *button);
147
154 void updateSearchLineEdit();
155};
156
157#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
A dialog that remembers its geometry and splitter state.
Definition geometry_state_dialog.h:20
Sort/filter proxy model for the module (left-hand) pane of the Preferences dialog.
Definition pref_models.h:364
Dialog for configuring Wireshark preferences.
Definition preferences_dialog.h:33
~PreferencesDialog()
Destroys the PreferencesDialog.
Definition preferences_dialog.cpp:172
void keyPressEvent(QKeyEvent *event)
Handles key press events within the dialog.
Definition preferences_dialog.cpp:184
void setPane(const QString module_name)
Show the preference pane corresponding to the a preference module name.
Definition preferences_dialog.cpp:179
void showEvent(QShowEvent *evt)
Handles the show event for the dialog.
Definition preferences_dialog.cpp:213
Tree model backing the Preferences dialog.
Definition pref_models.h:28