Wireshark  2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
decode_as_dialog.h
1 /* decode_as_dialog.h
2  *
3  * Wireshark - Network traffic analyzer
4  * By Gerald Combs <gerald@wireshark.org>
5  * Copyright 1998 Gerald Combs
6  *
7  * SPDX-License-Identifier: GPL-2.0-or-later
8  */
9 
10 #ifndef DECODE_AS_DIALOG_H
11 #define DECODE_AS_DIALOG_H
12 
13 #include <config.h>
14 
15 #include <glib.h>
16 
17 #include "cfile.h"
18 #include <ui/qt/models/decode_as_model.h>
19 #include <ui/qt/models/decode_as_delegate.h>
20 
21 #include "geometry_state_dialog.h"
22 #include <QMap>
23 #include <QAbstractButton>
24 
25 class QComboBox;
26 
27 namespace Ui {
28 class DecodeAsDialog;
29 }
30 
32 {
33  Q_OBJECT
34 
35 public:
36  explicit DecodeAsDialog(QWidget *parent = 0, capture_file *cf = NULL, bool create_new = false);
37  ~DecodeAsDialog();
38 
39 private:
41 
42  DecodeAsModel* model_;
43  DecodeAsDelegate* delegate_;
44 
45  void addRecord(bool copy_from_current = false);
46  void applyChanges();
47  void fillTable();
48  void resizeColumns();
49 
50 private slots:
51  void on_decodeAsTreeView_currentItemChanged(const QModelIndex &current, const QModelIndex &previous);
52 
53  void on_newToolButton_clicked();
54  void on_deleteToolButton_clicked();
55  void on_copyToolButton_clicked();
56 
57  void on_buttonBox_clicked(QAbstractButton *button);
58 };
59 
60 #endif // DECODE_AS_DIALOG_H
61 
62 /*
63  * Editor modelines
64  *
65  * Local Variables:
66  * c-basic-offset: 4
67  * tab-width: 8
68  * indent-tabs-mode: nil
69  * End:
70  *
71  * ex: set shiftwidth=4 tabstop=8 expandtab:
72  * :indentSize=4:tabSize=8:noTabs=true:
73  */
Definition: decode_as_dialog.h:31
Definition: geometry_state_dialog.h:15
Definition: ui_about_dialog.h:291
Definition: decode_as_delegate.h:30
Definition: decode_as_model.h:45
Definition: cfile.h:58
Definition: ui_decode_as_dialog.h:136