| 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
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
29 class PreferencesDialog : public GeometryStateDialog
30{
31 Q_OBJECT
32
33 public:
34 explicit PreferencesDialog(QWidget *parent = 0);
35 ~PreferencesDialog();
36
42 void setPane(const QString module_name);
43 void enableAggregationOptions(bool);
44
45 protected:
46 void keyPressEvent(QKeyEvent *event);
47 void showEvent(QShowEvent *evt);
48
49 private:
50 void apply();
51 void resizeSplitter();
52
53 Ui::PreferencesDialog *pd_ui_;
54
55 QHash<QString, QWidget*> prefs_pane_to_item_;
56
57 PrefsModel model_;
58 AdvancedPrefsModel advancedPrefsModel_;
59 AdvancedPrefDelegate advancedPrefsDelegate_;
60 ModulePrefsModel modulePrefsModel_;
61 bool saved_capture_no_extcap_;
62
63 QTimer *searchLineEditTimer;
64 QString searchLineEditText;
65
66 private slots:
67 void selectPane(QString pane);
68 void handleCopyMenu(QPoint);
69 void copyActionTriggered();
70 void copyRowActionTriggered();
71 void on_advancedSearchLineEdit_textEdited(const QString &search_re);
72 void on_showChangedValuesCheckBox_toggled(bool checked);
73
74 void on_buttonBox_accepted();
75 void on_buttonBox_rejected();
76 void on_buttonBox_helpRequested();
77 void on_buttonBox_clicked(QAbstractButton *button);
78
85 void updateSearchLineEdit();
86};
87
88#endif // PREFERENCES_DIALOG_H
AdvancedPrefDelegate
Definition pref_delegate.h:23
AdvancedPrefsModel
Definition pref_models.h:100
GeometryStateDialog
Definition geometry_state_dialog.h:17
ModulePrefsModel
Definition pref_models.h:141
PreferencesDialog
Definition preferences_dialog.h:30
PreferencesDialog::setPane
void setPane(const QString module_name)
Definition preferences_dialog.cpp:177
PrefsModel
Definition pref_models.h:25
geometry_state_dialog.h
pref_delegate.h
pref_models.h
prefs.h