3 * Wireshark - Network traffic analyzer
4 * By Gerald Combs <gerald@wireshark.org>
5 * Copyright 1998 Gerald Combs
7 * SPDX-License-Identifier: GPL-2.0-or-later
10 #ifndef PREFERENCE_EDITOR_FRAME_H
11 #define PREFERENCE_EDITOR_FRAME_H
13 #include "accordion_frame.h"
20 class PreferenceEditorFrame
;
23 class PreferenceEditorFrame
: public AccordionFrame
28 explicit PreferenceEditorFrame(QWidget
*parent
= 0);
29 ~PreferenceEditorFrame();
32 void editPreference(struct preference
*pref
= NULL
, struct pref_module
*module
= NULL
);
35 void showProtocolPreferences(const QString module_name
);
38 virtual void showEvent(QShowEvent
*event
);
39 virtual void keyPressEvent(QKeyEvent
*event
);
42 // Similar to ModulePreferencesScrollArea
43 void uintLineEditTextEdited(const QString
&new_str
);
44 void stringLineEditTextEdited(const QString
&new_str
);
45 void rangeLineEditTextEdited(const QString
&new_str
);
46 void browsePushButtonClicked();
48 void on_modulePreferencesToolButton_clicked();
49 void on_preferenceLineEdit_returnPressed();
50 void on_buttonBox_accepted();
51 void on_buttonBox_rejected();
54 Ui::PreferenceEditorFrame
*ui
;
56 struct pref_module
*module_
;
57 struct preference
*pref_
;
59 unsigned int new_uint_
;
61 struct epan_range
*new_range_
;
64 #endif // PREFERENCE_EDITOR_FRAME_H