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