Wireshark  4.3.0
The Wireshark network protocol analyzer
preference_editor_frame.h
Go to the documentation of this file.
1 
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 
37 protected:
38  virtual void showEvent(QShowEvent *event);
39  virtual void keyPressEvent(QKeyEvent *event);
40 
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();
47 
48  void on_modulePreferencesToolButton_clicked();
49  void on_preferenceLineEdit_returnPressed();
50  void on_buttonBox_accepted();
51  void on_buttonBox_rejected();
52 
53 private:
54  Ui::PreferenceEditorFrame *ui;
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
Definition: accordion_frame.h:18
Definition: preference_editor_frame.h:24
Definition: range.h:42
Definition: prefs-int.h:27
Definition: prefs.c:225