| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
uat_frame.h
Go to the documentation of this file.
1
9
10#ifndef UAT_FRAME_H
11#define UAT_FRAME_H
12
13#include <QFrame>
14
15#include <ui/qt/geometry_state_dialog.h>
16#include <ui/qt/models/uat_model.h>
17#include <ui/qt/models/uat_delegate.h>
18
19 class QItemSelection;
20
21 namespace Ui {
22 class UatFrame;
23}
24
28 class UatFrame : public QFrame
29{
30 Q_OBJECT
31
32 public:
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
60 protected:
64 void showEvent(QShowEvent *) override;
65
66 private:
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
109 private 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
UatDelegate
A delegate for rendering and editing fields in User Accessible Tables (UAT).
Definition uat_delegate.h:27
UatFrame::UatFrame
UatFrame(QWidget *parent=NULL)
Constructs a new UatFrame object.
Definition uat_frame.cpp:32
UatFrame::~UatFrame
~UatFrame()
Destroys the UatFrame object.
Definition uat_frame.cpp:70
UatFrame::showEvent
void showEvent(QShowEvent *) override
Handles the show event for the frame.
Definition uat_frame.cpp:137
UatFrame::rejectChanges
void rejectChanges()
Rejects and discards the pending changes.
Definition uat_frame.cpp:171
UatFrame::acceptChanges
void acceptChanges()
Accepts and applies the pending changes.
Definition uat_frame.cpp:158
UatFrame::setUat
void setUat(struct epan_uat *uat)
Sets the UAT structure to be edited.
Definition uat_frame.cpp:77
UatModel
Table model for representing and managing User Accessible Tables (UAT).
Definition uat_model.h:28
geometry_state_dialog.h
epan_uat
Represents a User Accessible Table (UAT), managing a set of user-editable records exposed to a dissec...
Definition uat-int.h:44
uat_delegate.h
uat_model.h