| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
column_editor_frame.h
Go to the documentation of this file.
1
9
10#ifndef COLUMN_EDITOR_FRAME_H
11#define COLUMN_EDITOR_FRAME_H
12
13#include "accordion_frame.h"
14
15 namespace Ui {
16 class ColumnEditorFrame;
17}
18
22 class ColumnEditorFrame : public AccordionFrame
23{
24 Q_OBJECT
25
26 public:
31 explicit ColumnEditorFrame(QWidget *parent = nullptr);
32
36 ~ColumnEditorFrame();
37
42 void editColumn(int column);
43
44signals:
48 void columnEdited();
49
50 protected:
55 virtual void showEvent(QShowEvent *event) override;
56
61 virtual void keyPressEvent(QKeyEvent *event) override;
62
63 private 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
97 private:
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
accordion_frame.h
AccordionFrame::AccordionFrame
AccordionFrame(QWidget *parent=0)
Create an AccordionFrame with the given parent.
Definition accordion_frame.cpp:22
ColumnEditorFrame::editColumn
void editColumn(int column)
Sets up the editor for a specific column index.
Definition column_editor_frame.cpp:134
ColumnEditorFrame::keyPressEvent
virtual void keyPressEvent(QKeyEvent *event) override
Handles key press events, typically for accepting/rejecting the dialog.
Definition column_editor_frame.cpp:215
ColumnEditorFrame::showEvent
virtual void showEvent(QShowEvent *event) override
Handles the show event for the frame.
Definition column_editor_frame.cpp:145
ColumnEditorFrame::columnEdited
void columnEdited()
Signal emitted when a column's properties have been successfully edited.
ColumnEditorFrame::~ColumnEditorFrame
~ColumnEditorFrame()
Destroys the ColumnEditorFrame.
Definition column_editor_frame.cpp:74
ColumnEditorFrame::ColumnEditorFrame
ColumnEditorFrame(QWidget *parent=nullptr)
Constructs a new ColumnEditorFrame.
Definition column_editor_frame.cpp:28