Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
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#include <epan/prefs.h>
16#include <epan/range.h>
17
18namespace Ui {
20}
21
23{
24 Q_OBJECT
25
26public:
27 explicit PreferenceEditorFrame(QWidget *parent = 0);
29
30public slots:
31 void editPreference(pref_t *pref = NULL, module_t *module = NULL);
32
33signals:
34 void showProtocolPreferences(const QString module_name);
35
36protected:
37 virtual void showEvent(QShowEvent *event);
38 virtual void keyPressEvent(QKeyEvent *event);
39
40private slots:
41 // Similar to ModulePreferencesScrollArea
42 void uintLineEditTextEdited(const QString &new_str);
43 void stringLineEditTextEdited(const QString &new_str);
44 void rangeLineEditTextEdited(const QString &new_str);
45 void browsePushButtonClicked();
46
47 void on_modulePreferencesToolButton_clicked();
48 void on_preferenceLineEdit_returnPressed();
49 void on_buttonBox_accepted();
50 void on_buttonBox_rejected();
51
52private:
53 Ui::PreferenceEditorFrame *ui;
54
55 module_t *module_;
56 pref_t *pref_;
57
58 unsigned int new_uint_;
59 QString new_str_;
60 range_t *new_range_;
61};
62
63#endif // PREFERENCE_EDITOR_FRAME_H
Definition accordion_frame.h:18
Definition preference_editor_frame.h:23
Definition range.h:41
Definition prefs-int.h:27
Definition prefs.c:249