Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
column_editor_frame.h
Go to the documentation of this file.
1
10#ifndef COLUMN_EDITOR_FRAME_H
11#define COLUMN_EDITOR_FRAME_H
12
13#include "accordion_frame.h"
14
15namespace Ui {
17}
18
23{
24 Q_OBJECT
25
26public:
31 explicit ColumnEditorFrame(QWidget *parent = nullptr);
32
37
42 void editColumn(int column);
43
44signals:
49
50protected:
55 virtual void showEvent(QShowEvent *event);
56
61 virtual void keyPressEvent(QKeyEvent *event);
62
63private slots:
68 void on_typeComboBox_activated(int index);
69
74 void on_fieldsNameLineEdit_textEdited(const QString &fields);
75
80 void on_occurrenceLineEdit_textEdited(const QString &occurrence);
81
85 void on_buttonBox_rejected();
86
90 void on_buttonBox_accepted();
91
95 void checkCanResolve(void);
96
97private:
102 bool syntaxIsValid(void);
103
105 Ui::ColumnEditorFrame *ui;
106
108 int cur_column_;
109
111 QString saved_fields_;
112
114 QString saved_occurrence_;
115
120 void setFields(int index);
121
126 void typeChanged(int index);
127};
128
129#endif // COLUMN_EDITOR_FRAME_H
A QFrame that shows and hides itself with a slide animation.
Definition accordion_frame.h:21
An accordion frame for editing packet list column properties.
Definition column_editor_frame.h:23
void editColumn(int column)
Sets up the editor for a specific column index.
Definition column_editor_frame.cpp:139
virtual void keyPressEvent(QKeyEvent *event)
Handles key press events, typically for accepting/rejecting the dialog.
Definition column_editor_frame.cpp:219
void columnEdited()
Signal emitted when a column's properties have been successfully edited.
~ColumnEditorFrame()
Destroys the ColumnEditorFrame.
Definition column_editor_frame.cpp:79
virtual void showEvent(QShowEvent *event)
Handles the show event for the frame.
Definition column_editor_frame.cpp:150