Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
uat_frame.h
Go to the documentation of this file.
1
10#ifndef UAT_FRAME_H
11#define UAT_FRAME_H
12
13#include <QFrame>
14
18
19class QItemSelection;
20
21namespace Ui {
22class UatFrame;
23}
24
28class UatFrame : public QFrame
29{
30 Q_OBJECT
31
32public:
37 explicit UatFrame(QWidget *parent = NULL);
38
42 ~UatFrame();
43
48 void setUat(struct epan_uat *uat);
49
53 void acceptChanges();
54
58 void rejectChanges();
59
60protected:
64 void showEvent(QShowEvent *);
65
66private:
68 Ui::UatFrame *ui;
69
71 UatModel *uat_model_;
72
74 UatDelegate *uat_delegate_;
75
77 struct epan_uat *uat_;
78
84 void checkForErrorHint(const QModelIndex &current, const QModelIndex &previous);
85
91 bool trySetErrorHintFromField(const QModelIndex &index);
92
97 void addRecord(bool copy_from_current = false);
98
102 void applyChanges();
103
107 void resizeColumns();
108
109private slots:
114 void copyFromProfile(QString filename);
115
120 void modelDataChanged(const QModelIndex &topLeft);
121
125 void modelRowsRemoved();
126
130 void modelRowsReset();
131
137 void uatTreeViewSelectionChanged(const QItemSelection &selected, const QItemSelection &deselected);
138
144 void on_uatTreeView_currentItemChanged(const QModelIndex &current, const QModelIndex &previous);
145
149 void on_newToolButton_clicked();
150
154 void on_deleteToolButton_clicked();
155
159 void on_copyToolButton_clicked();
160
164 void on_moveUpToolButton_clicked();
165
169 void on_moveDownToolButton_clicked();
170
174 void on_clearToolButton_clicked();
175};
176
177#endif // UAT_FRAME_H
A delegate for rendering and editing fields in User Accessible Tables (UAT).
Definition uat_delegate.h:27
UI frame for editing User Accessible Tables (UAT).
Definition uat_frame.h:29
~UatFrame()
Destroys the UatFrame object.
Definition uat_frame.cpp:70
void rejectChanges()
Rejects and discards the pending changes.
Definition uat_frame.cpp:171
void acceptChanges()
Accepts and applies the pending changes.
Definition uat_frame.cpp:158
void setUat(struct epan_uat *uat)
Sets the UAT structure to be edited.
Definition uat_frame.cpp:77
void showEvent(QShowEvent *)
Handles the show event for the frame.
Definition uat_frame.cpp:137
Table model for representing and managing User Accessible Tables (UAT).
Definition uat_model.h:28
Represents a User Accessible Table (UAT), managing a set of user-editable records exposed to a dissec...
Definition uat-int.h:44