Wireshark 2.9.0-477-g68ec514b The Wireshark network protocol analyzer

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

preferences_dialog.h
1 /* preferences_dialog.h
2 *
3 * Wireshark - Network traffic analyzer
4 * By Gerald Combs <gerald@wireshark.org>
5 * Copyright 1998 Gerald Combs
6 *
7 * SPDX-License-Identifier: GPL-2.0-or-later
8 */
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
24 namespace Ui {
25 class PreferencesDialog;
26 }
27
28 class PreferencesDialog : public GeometryStateDialog
29 {
30 Q_OBJECT
31
32 public:
33 explicit PreferencesDialog(QWidget *parent = 0);
34 ~PreferencesDialog();
35
36 void setPane(const QString pane_name);
37
38 protected:
39 void showEvent(QShowEvent *evt);
40
41 private:
42 Ui::PreferencesDialog *pd_ui_;
43
44 QHash<QString, QWidget*> prefs_pane_to_item_;
45
46 PrefsModel model_;
47 AdvancedPrefsModel advancedPrefsModel_;
48 AdvancedPrefDelegate advancedPrefsDelegate_;
49 ModulePrefsModel modulePrefsModel_;
50 gboolean saved_capture_no_extcap_;
51
52 private slots:
53 void selectPane(QString pane);
54 void on_advancedSearchLineEdit_textEdited(const QString &search_re);
55
56 void on_buttonBox_accepted();
57 void on_buttonBox_rejected();
58 void on_buttonBox_helpRequested();
59 };
60
61 #endif // PREFERENCES_DIALOG_H
AdvancedPrefsModel
Definition: pref_models.h:91
PrefsModel
Definition: pref_models.h:50
GeometryStateDialog
Definition: geometry_state_dialog.h:15
Ui
Definition: ui_about_dialog.h:291
AdvancedPrefDelegate
Definition: pref_delegate.h:21
ModulePrefsModel
Definition: pref_models.h:129
Ui::PreferencesDialog
Definition: ui_preferences_dialog.h:172
PreferencesDialog
Definition: preferences_dialog.h:28