| 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
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
29 class UatDialog : public GeometryStateDialog
30{
31 Q_OBJECT
32
33 public:
34 explicit UatDialog(QWidget *parent = 0, struct epan_uat *uat = NULL);
35 ~UatDialog();
36
37 void setUat(struct epan_uat *uat = NULL);
38
39 private slots:
40 void copyFromProfile(QString filename);
41 void modelDataChanged(const QModelIndex &topLeft);
42 void modelRowsRemoved();
43 void modelRowsReset();
44 void uatTreeViewSelectionChanged(const QItemSelection &selected, const QItemSelection &deselected);
45 void on_uatTreeView_currentItemChanged(const QModelIndex &current, const QModelIndex &previous);
46 void acceptChanges();
47 void rejectChanges();
48 void on_newToolButton_clicked();
49 void on_deleteToolButton_clicked();
50 void on_copyToolButton_clicked();
51 void on_moveUpToolButton_clicked();
52 void on_moveDownToolButton_clicked();
53 void on_clearToolButton_clicked();
54 void on_buttonBox_helpRequested();
55
56 private:
57 Ui::UatDialog *ui;
58 UatModel *uat_model_;
59 UatDelegate *uat_delegate_;
60 QPushButton *ok_button_;
61 QPushButton *help_button_;
62 struct epan_uat *uat_;
63
64 void checkForErrorHint(const QModelIndex &current, const QModelIndex &previous);
65 bool trySetErrorHintFromField(const QModelIndex &index);
66 void applyChanges();
67 void addRecord(bool copy_from_current = false);
68 void resizeColumns();
69};
70
71#endif // UAT_DIALOG_H
GeometryStateDialog
Definition geometry_state_dialog.h:17
UatDelegate
Definition uat_delegate.h:24
UatDialog
Definition uat_dialog.h:30
UatModel
Definition uat_model.h:25
geometry_state_dialog.h
epan_uat
Definition uat-int.h:40
uat_delegate.h
uat_model.h