Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
uat_dialog.h
Go to the documentation of this file.
1
10#ifndef UAT_DIALOG_H
11#define UAT_DIALOG_H
12
13#include <config.h>
14
18
19class QComboBox;
20class QPushButton;
21class QItemSelection;
22
23struct epan_uat;
24
25namespace Ui {
26class UatDialog;
27}
28
33{
34 Q_OBJECT
35
36public:
42 explicit UatDialog(QWidget *parent = 0, struct epan_uat *uat = NULL);
43
47 ~UatDialog();
48
53 void setUat(struct epan_uat *uat = NULL);
54
55private slots:
60 void copyFromProfile(QString filename);
61
66 void modelDataChanged(const QModelIndex &topLeft);
67
71 void modelRowsRemoved();
72
76 void modelRowsReset();
77
83 void uatTreeViewSelectionChanged(const QItemSelection &selected, const QItemSelection &deselected);
84
90 void on_uatTreeView_currentItemChanged(const QModelIndex &current, const QModelIndex &previous);
91
95 void acceptChanges();
96
100 void rejectChanges();
101
105 void on_newToolButton_clicked();
106
110 void on_deleteToolButton_clicked();
111
115 void on_copyToolButton_clicked();
116
120 void on_moveUpToolButton_clicked();
121
125 void on_moveDownToolButton_clicked();
126
130 void on_clearToolButton_clicked();
131
135 void on_buttonBox_helpRequested();
136
137private:
139 Ui::UatDialog *ui;
140
142 UatModel *uat_model_;
143
145 UatDelegate *uat_delegate_;
146
148 QPushButton *ok_button_;
149
151 QPushButton *help_button_;
152
154 struct epan_uat *uat_;
155
161 void checkForErrorHint(const QModelIndex &current, const QModelIndex &previous);
162
168 bool trySetErrorHintFromField(const QModelIndex &index);
169
173 void applyChanges();
174
179 void addRecord(bool copy_from_current = false);
180
184 void resizeColumns();
185};
186
187#endif // UAT_DIALOG_H
A dialog that remembers its geometry and splitter state.
Definition geometry_state_dialog.h:20
A delegate for rendering and editing fields in User Accessible Tables (UAT).
Definition uat_delegate.h:27
Dialog for viewing and editing User Accessible Tables (UATs).
Definition uat_dialog.h:33
~UatDialog()
Destroys the UAT dialog.
Definition uat_dialog.cpp:78
void setUat(struct epan_uat *uat=NULL)
Switches the dialog to display and edit a different UAT.
Definition uat_dialog.cpp:85
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