Wireshark 4.7.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
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);
62
67 virtual void keyPressEvent(QKeyEvent *event);
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;
116 module_t *module_;
117 pref_t *pref_;
119 unsigned int new_uint_;
120 QString new_str_;
121 range_t *new_range_;
122};
123
124#endif // PREFERENCE_EDITOR_FRAME_H
A QFrame that shows and hides itself with a slide animation.
Definition accordion_frame.h:21
Frame for editing a single Wireshark preference inline.
Definition preference_editor_frame.h:26
~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.
virtual void showEvent(QShowEvent *event)
Handles the show event for the frame.
Definition preference_editor_frame.cpp:215
virtual void keyPressEvent(QKeyEvent *event)
Handles key press events within the frame.
Definition preference_editor_frame.cpp:302
void editPreference(pref_t *pref=NULL, module_t *module=NULL)
Edits the specified preference.
Definition preference_editor_frame.cpp:61
Definition range.h:42
Represents a preference module grouping related preferences under a named, hierarchical entry in the ...
Definition prefs-int.h:27
Definition prefs.c:207