Wireshark 4.7.3
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
preference_editor_frame.h
Go to the documentation of this file.
1
9
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 {
19class PreferenceEditorFrame;
20}
21
26{
27 Q_OBJECT
28
29public:
34 explicit PreferenceEditorFrame(QWidget *parent = 0);
35
40
41public slots:
47 void editPreference(pref_t *pref = NULL, module_t *module = NULL);
48
49signals:
54 void showProtocolPreferences(const QString module_name);
55
56protected:
61 virtual void showEvent(QShowEvent *event) override;
62
67 virtual void keyPressEvent(QKeyEvent *event) override;
68
69private slots:
74 void uintLineEditTextEdited(const QString &new_str);
75
80 void stringLineEditTextEdited(const QString &new_str);
81
86 void rangeLineEditTextEdited(const QString &new_str);
87
91 void browsePushButtonClicked();
92
96 void on_modulePreferencesToolButton_clicked();
97
101 void on_preferenceLineEdit_returnPressed();
102
106 void on_buttonBox_accepted();
107
111 void on_buttonBox_rejected();
112
113private:
114 Ui::PreferenceEditorFrame *ui;
115
116 module_t *module_;
117 pref_t *pref_;
118
119 unsigned int new_uint_;
120 QString new_str_;
121 range_t *new_range_;
122};
123
124#endif // PREFERENCE_EDITOR_FRAME_H
AccordionFrame(QWidget *parent=0)
Create an AccordionFrame with the given parent.
Definition accordion_frame.cpp:22
~PreferenceEditorFrame()
Destroys the PreferenceEditorFrame.
Definition preference_editor_frame.cpp:56
void showProtocolPreferences(const QString module_name)
Signal emitted to show preferences for a specific protocol.
PreferenceEditorFrame(QWidget *parent=0)
Constructs a PreferenceEditorFrame.
Definition preference_editor_frame.cpp:33
virtual void keyPressEvent(QKeyEvent *event) override
Handles key press events within the frame.
Definition preference_editor_frame.cpp:302
virtual void showEvent(QShowEvent *event) override
Handles the show event for the frame.
Definition preference_editor_frame.cpp:215
void editPreference(pref_t *pref=NULL, module_t *module=NULL)
Edits the specified preference.
Definition preference_editor_frame.cpp:61
struct epan_range range_t