| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
uat_dialog.h
Go to the documentation of this file.
1
9
10#ifndef UAT_DIALOG_H
11#define UAT_DIALOG_H
12
13#include <config.h>
14
15#include "geometry_state_dialog.h"
16#include <ui/qt/models/uat_model.h>
17#include <ui/qt/models/uat_delegate.h>
18
19 class QComboBox;
20 class QPushButton;
21 class QItemSelection;
22
23 struct epan_uat;
24
25 namespace Ui {
26 class UatDialog;
27}
28
32 class UatDialog : public GeometryStateDialog
33{
34 Q_OBJECT
35
36 public:
42 explicit UatDialog(QWidget *parent = 0, struct epan_uat *uat = NULL);
43
47 ~UatDialog();
48
53 void setUat(struct epan_uat *uat = NULL);
54
55 private 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
137 private:
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
GeometryStateDialog::GeometryStateDialog
GeometryStateDialog(QWidget *parent, Qt::WindowFlags f=Qt::Window)
Constructs a new GeometryStateDialog with the specified parent and window flags.
Definition geometry_state_dialog.h:91
UatDelegate
A delegate for rendering and editing fields in User Accessible Tables (UAT).
Definition uat_delegate.h:27
UatDialog::~UatDialog
~UatDialog()
Destroys the UAT dialog.
Definition uat_dialog.cpp:78
UatDialog::setUat
void setUat(struct epan_uat *uat=NULL)
Switches the dialog to display and edit a different UAT.
Definition uat_dialog.cpp:85
UatDialog::UatDialog
UatDialog(QWidget *parent=0, struct epan_uat *uat=NULL)
Constructs the UAT dialog.
Definition uat_dialog.cpp:31
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