Wireshark  2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
preference_editor_frame.h
1 /* preference_editor_frame.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 PREFERENCE_EDITOR_FRAME_H
11 #define PREFERENCE_EDITOR_FRAME_H
12 
13 #include "accordion_frame.h"
14 
15 struct pref_module;
16 struct preference;
17 struct epan_range;
18 
19 namespace Ui {
21 }
22 
24 {
25  Q_OBJECT
26 
27 public:
28  explicit PreferenceEditorFrame(QWidget *parent = 0);
30 
31 public slots:
32  void editPreference(struct preference *pref = NULL, struct pref_module *module = NULL);
33 
34 signals:
35  void showProtocolPreferences(const QString module_name);
36  void pushFilterSyntaxStatus(const QString&);
37 
38 protected:
39  virtual void showEvent(QShowEvent *event);
40  virtual void keyPressEvent(QKeyEvent *event);
41 
42 private slots:
43  // Similar to ModulePreferencesScrollArea
44  void uintLineEditTextEdited(const QString &new_str);
45  void stringLineEditTextEdited(const QString &new_str);
46  void rangeLineEditTextEdited(const QString &new_str);
47 
48  void on_modulePreferencesToolButton_clicked();
49  void on_preferenceLineEdit_returnPressed();
50  void on_buttonBox_accepted();
51  void on_buttonBox_rejected();
52 
53 private:
55 
56  struct pref_module *module_;
57  struct preference *pref_;
58 
59  unsigned int new_uint_;
60  QString new_str_;
61  struct epan_range *new_range_;
62 };
63 
64 #endif // PREFERENCE_EDITOR_FRAME_H
65 
66 /*
67  * Editor modelines
68  *
69  * Local Variables:
70  * c-basic-offset: 4
71  * tab-width: 8
72  * indent-tabs-mode: nil
73  * End:
74  *
75  * ex: set shiftwidth=4 tabstop=8 expandtab:
76  * :indentSize=4:tabSize=8:noTabs=true:
77  */
Definition: range.h:42
Definition: ui_about_dialog.h:291
Definition: prefs-int.h:27
Definition: prefs.c:192
Definition: preference_editor_frame.h:23
Definition: ui_preference_editor_frame.h:100
Definition: accordion_frame.h:17