| 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
17#include <ui/qt/models/pref_models.h>
18#include <ui/qt/models/pref_delegate.h>
19
20#include "geometry_state_dialog.h"
21
22 class QComboBox;
23 class QAbstractButton;
24
25 namespace Ui {
26 class PreferencesDialog;
27}
28
32 class PreferencesDialog : public GeometryStateDialog
33{
34 Q_OBJECT
35
36 public:
41 explicit PreferencesDialog(QWidget *parent = 0);
42
46 ~PreferencesDialog();
47
53 void setPane(const QString module_name);
54
55 protected:
60 void keyPressEvent(QKeyEvent *event) override;
61
66 void showEvent(QShowEvent *evt) override;
67
68 private:
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 bool saved_capture_no_extcap_;
88
89 QTimer *searchLineEditTimer;
90 QString searchLineEditText;
91
92 private 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
AdvancedPrefDelegate
Item delegate providing in-place editors for the Advanced Preferences table.
Definition pref_delegate.h:26
AdvancedPrefsModel
Sort/filter proxy model for the Advanced Preferences pane.
Definition pref_models.h:237
GeometryStateDialog::GeometryStateDialog
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
ModulePrefsModel
Sort/filter proxy model for the module (left-hand) pane of the Preferences dialog.
Definition pref_models.h:364
PreferencesDialog::~PreferencesDialog
~PreferencesDialog()
Destroys the PreferencesDialog.
Definition preferences_dialog.cpp:195
PreferencesDialog::showEvent
void showEvent(QShowEvent *evt) override
Handles the show event for the dialog.
Definition preferences_dialog.cpp:236
PreferencesDialog::keyPressEvent
void keyPressEvent(QKeyEvent *event) override
Handles key press events within the dialog.
Definition preferences_dialog.cpp:207
PreferencesDialog::PreferencesDialog
PreferencesDialog(QWidget *parent=0)
Constructs a PreferencesDialog.
Definition preferences_dialog.cpp:123
PreferencesDialog::setPane
void setPane(const QString module_name)
Show the preference pane corresponding to the a preference module name.
Definition preferences_dialog.cpp:202
PrefsModel
Tree model backing the Preferences dialog.
Definition pref_models.h:28
geometry_state_dialog.h
pref_delegate.h
pref_models.h
prefs.h