Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
decode_as_dialog.h
Go to the documentation of this file.
1
10#ifndef DECODE_AS_DIALOG_H
11#define DECODE_AS_DIALOG_H
12
13#include <config.h>
14
15#include <epan/cfile.h>
18
20#include <QMap>
21#include <QAbstractButton>
22
23class QComboBox;
24
25namespace Ui {
26class DecodeAsDialog;
27}
28
33{
34 Q_OBJECT
35
36public:
43 explicit DecodeAsDialog(QWidget *parent = 0, capture_file *cf = NULL, bool create_new = false);
44
49
50private:
52 Ui::DecodeAsDialog *ui;
53
55 DecodeAsModel* model_;
56
58 DecodeAsDelegate* delegate_;
59
64 void addRecord(bool copy_from_current = false);
65
69 void applyChanges();
70
74 void fillTable();
75
79 void resizeColumns();
80
81public slots:
85 void modelRowsReset();
86
87private slots:
92 void copyFromProfile(QString filename);
93
99 void on_decodeAsTreeView_currentItemChanged(const QModelIndex &current, const QModelIndex &previous);
100
104 void on_newToolButton_clicked();
105
109 void on_deleteToolButton_clicked();
110
114 void on_copyToolButton_clicked();
115
119 void on_clearToolButton_clicked();
120
125 void on_buttonBox_clicked(QAbstractButton *button);
126};
127
128#endif // DECODE_AS_DIALOG_H
Item delegate providing in-place editors for the Decode As table.
Definition decode_as_delegate.h:38
A dialog allowing users to configure "Decode As" rules for protocols.
Definition decode_as_dialog.h:33
~DecodeAsDialog()
Destroys the DecodeAsDialog.
Definition decode_as_dialog.cpp:90
void modelRowsReset()
Slot triggered when the model's rows have been reset.
Definition decode_as_dialog.cpp:119
Table model backing the Decode As dialog.
Definition decode_as_model.h:142
A dialog that remembers its geometry and splitter state.
Definition geometry_state_dialog.h:20
Represents a capture file and its associated metadata.
Definition cfile.h:84