2013-01-05 02:30:58 +00:00
|
|
|
/* preferences_dialog.h
|
|
|
|
*
|
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
2017-12-29 16:23:07 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
2013-01-05 02:30:58 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef PREFERENCES_DIALOG_H
|
|
|
|
#define PREFERENCES_DIALOG_H
|
|
|
|
|
2015-01-03 20:52:54 +00:00
|
|
|
#include <config.h>
|
2013-01-07 19:13:03 +00:00
|
|
|
|
|
|
|
#include <epan/prefs.h>
|
|
|
|
|
2017-12-29 16:23:07 +00:00
|
|
|
#include <ui/qt/models/pref_models.h>
|
|
|
|
#include <ui/qt/models/pref_delegate.h>
|
2014-09-23 23:39:52 +00:00
|
|
|
|
2016-02-28 18:23:20 +00:00
|
|
|
#include "geometry_state_dialog.h"
|
2015-02-08 20:24:19 +00:00
|
|
|
|
|
|
|
class QComboBox;
|
2013-01-05 02:30:58 +00:00
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class PreferencesDialog;
|
|
|
|
}
|
|
|
|
|
2016-02-28 18:23:20 +00:00
|
|
|
class PreferencesDialog : public GeometryStateDialog
|
2013-01-05 02:30:58 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
2014-02-25 20:42:35 +00:00
|
|
|
|
2013-01-05 02:30:58 +00:00
|
|
|
public:
|
2015-06-15 01:05:02 +00:00
|
|
|
explicit PreferencesDialog(QWidget *parent = 0);
|
2013-01-05 02:30:58 +00:00
|
|
|
~PreferencesDialog();
|
2017-12-29 16:23:07 +00:00
|
|
|
|
|
|
|
void setPane(const QString pane_name);
|
2015-06-15 01:05:02 +00:00
|
|
|
|
2013-01-05 02:30:58 +00:00
|
|
|
protected:
|
|
|
|
void showEvent(QShowEvent *evt);
|
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::PreferencesDialog *pd_ui_;
|
2017-12-29 16:23:07 +00:00
|
|
|
|
|
|
|
QHash<QString, QWidget*> prefs_pane_to_item_;
|
|
|
|
|
|
|
|
PrefsModel model_;
|
|
|
|
AdvancedPrefsModel advancedPrefsModel_;
|
|
|
|
AdvancedPrefDelegate advancedPrefsDelegate_;
|
|
|
|
ModulePrefsModel modulePrefsModel_;
|
2018-01-09 12:57:29 +00:00
|
|
|
gboolean saved_capture_no_extcap_;
|
2013-01-07 19:13:03 +00:00
|
|
|
|
|
|
|
private slots:
|
2017-12-29 16:23:07 +00:00
|
|
|
void selectPane(QString pane);
|
2016-02-12 21:40:05 +00:00
|
|
|
void on_advancedSearchLineEdit_textEdited(const QString &search_re);
|
2013-01-18 00:50:14 +00:00
|
|
|
|
|
|
|
void on_buttonBox_accepted();
|
2017-06-22 15:34:48 +00:00
|
|
|
void on_buttonBox_rejected();
|
2013-01-18 00:50:14 +00:00
|
|
|
void on_buttonBox_helpRequested();
|
2013-01-05 02:30:58 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // PREFERENCES_DIALOG_H
|