Wireshark  2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
expert_info_dialog.h
1 /* expert_info_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 EXPERT_INFO_DIALOG_H
11 #define EXPERT_INFO_DIALOG_H
12 
13 #include <config.h>
14 
15 #include <glib.h>
16 
17 #include "filter_action.h"
18 #include "wireshark_dialog.h"
19 #include <ui/qt/models/expert_info_model.h>
20 #include <ui/qt/models/expert_info_proxy_model.h>
21 #include <ui/qt/widgets/expert_info_view.h>
22 
23 #include <QMenu>
24 
25 namespace Ui {
26 class ExpertInfoDialog;
27 }
28 
30 {
31  Q_OBJECT
32 
33 public:
34  explicit ExpertInfoDialog(QWidget &parent, CaptureFile& capture_file);
36 
37  void clearAllData();
38  void setDisplayFilter(const QString &display_filter = QString());
39 
40  ExpertInfoTreeView* getExpertInfoView();
41 
42 signals:
43  void filterAction(QString filter, FilterAction::Action action, FilterAction::ActionType type);
44 
45 private:
47 
48  ExpertInfoModel* expert_info_model_;
49  ExpertInfoProxyModel* proxyModel_;
50 
51  QMenu ctx_menu_;
52 
53  QString display_filter_;
54 
55 private slots:
56  void retapPackets();
57  void captureEvent(CaptureEvent e);
58 
59  void updateWidgets();
60 
61  void on_actionShowError_toggled(bool checked);
62  void on_actionShowWarning_toggled(bool checked);
63  void on_actionShowNote_toggled(bool checked);
64  void on_actionShowChat_toggled(bool checked);
65  void on_actionShowComment_toggled(bool checked);
66 
67  void showExpertInfoMenu(QPoint pos);
68  void filterActionTriggered();
69  void collapseTree();
70  void expandTree();
71 
72  void on_limitCheckBox_toggled(bool);
73  void on_groupBySummaryCheckBox_toggled(bool);
74  void on_searchLineEdit_textChanged(const QString &search_re);
75  void on_buttonBox_helpRequested();
76 };
77 
78 #endif // EXPERT_INFO_DIALOG_H
79 
80 /*
81  * Editor modelines
82  *
83  * Local Variables:
84  * c-basic-offset: 4
85  * tab-width: 8
86  * indent-tabs-mode: nil
87  * End:
88  *
89  * ex: set shiftwidth=4 tabstop=8 expandtab:
90  * :indentSize=4:tabSize=8:noTabs=true:
91  */
Definition: expert_info_model.h:65
Definition: ui_about_dialog.h:291
Definition: expert_info_dialog.h:29
Definition: capture_event.h:19
Definition: expert_info_proxy_model.h:20
Definition: ui_expert_info_dialog.h:200
Definition: wireshark_dialog.h:32
Definition: cfile.h:58
Definition: expert_info_view.h:17
Definition: capture_file.h:22