update epan/dissectors/pidl/drsuapi/drsuapi.idl from samba
[wireshark-sm.git] / ui / qt / preference_editor_frame.h
blobe23524deb9028f6f71ede4f4c0e2e6dc5236337e
1 /** @file
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
8 */
10 #ifndef PREFERENCE_EDITOR_FRAME_H
11 #define PREFERENCE_EDITOR_FRAME_H
13 #include "accordion_frame.h"
15 struct pref_module;
16 struct preference;
17 struct epan_range;
19 namespace Ui {
20 class PreferenceEditorFrame;
23 class PreferenceEditorFrame : public AccordionFrame
25 Q_OBJECT
27 public:
28 explicit PreferenceEditorFrame(QWidget *parent = 0);
29 ~PreferenceEditorFrame();
31 public slots:
32 void editPreference(struct preference *pref = NULL, struct pref_module *module = NULL);
34 signals:
35 void showProtocolPreferences(const QString module_name);
37 protected:
38 virtual void showEvent(QShowEvent *event);
39 virtual void keyPressEvent(QKeyEvent *event);
41 private slots:
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();
53 private:
54 Ui::PreferenceEditorFrame *ui;
56 struct pref_module *module_;
57 struct preference *pref_;
59 unsigned int new_uint_;
60 QString new_str_;
61 struct epan_range *new_range_;
64 #endif // PREFERENCE_EDITOR_FRAME_H