Wireshark
2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
ui
qt
main_welcome.h
1
/* main_welcome.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 MAIN_WELCOME_H
11
#define MAIN_WELCOME_H
12
13
#include <QFrame>
14
15
class
QListWidget;
16
class
QListWidgetItem;
17
class
QMenu;
18
19
#include "splash_overlay.h"
20
#include "interface_frame.h"
21
22
namespace
Ui
{
23
class
MainWelcome
;
24
}
25
26
class
MainWelcome
:
public
QFrame
27
{
28
Q_OBJECT
29
public
:
30
explicit
MainWelcome
(QWidget *parent = 0);
31
virtual
~
MainWelcome
();
32
InterfaceFrame
*getInterfaceFrame();
33
const
QString captureFilter();
34
void
setCaptureFilter(
const
QString capture_filter);
35
36
public
slots:
37
void
interfaceSelected();
38
39
protected
:
40
virtual
void
resizeEvent(QResizeEvent *event);
41
virtual
void
changeEvent(QEvent* event);
42
43
protected
slots:
44
void
on_recentLabel_clicked();
45
void
on_captureLabel_clicked();
46
void
on_helpLabel_clicked();
47
48
private
:
49
Ui::MainWelcome
*welcome_ui_;
50
QString flavor_;
51
QString show_in_str_;
52
53
SplashOverlay
*splash_overlay_;
54
// QListWidget doesn't activate items when the return or enter keys are pressed on macOS.
55
// We may want to subclass it at some point.
56
QListWidget *recent_files_;
57
// MWOverlay *overlay;
58
QMenu *recent_ctx_menu_;
59
60
61
signals:
62
void
startCapture();
63
void
recentFileActivated(QString cfile);
64
void
pushFilterSyntaxStatus(
const
QString&);
65
void
popFilterSyntaxStatus();
66
void
captureFilterSyntaxChanged(
bool
valid);
67
void
showExtcapOptions(QString &device_name);
68
void
interfacesChanged();
69
70
public
slots:
71
void
setCaptureFilterText(
const
QString capture_filter);
72
73
private
slots:
74
void
appInitialized();
75
void
interfaceListChanged();
76
void
captureFilterTextEdited(
const
QString capture_filter);
77
void
updateRecentCaptures();
78
void
openRecentItem(QListWidgetItem *item);
79
void
showRecentContextMenu(QPoint pos);
80
void
showRecentFolder();
81
void
copyRecentPath();
82
void
removeRecentPath();
83
84
void
on_interfaceFrame_showExtcapOptions(QString device_name);
85
void
on_interfaceFrame_startCapture();
86
};
87
88
#endif // MAIN_WELCOME_H
89
90
/*
91
* Editor modelines
92
*
93
* Local Variables:
94
* c-basic-offset: 4
95
* tab-width: 8
96
* indent-tabs-mode: nil
97
* End:
98
*
99
* ex: set shiftwidth=4 tabstop=8 expandtab:
100
* :indentSize=4:tabSize=8:noTabs=true:
101
*/
InterfaceFrame
Definition:
interface_frame.h:34
Ui
Definition:
ui_about_dialog.h:291
Ui::MainWelcome
Definition:
ui_main_welcome.h:289
MainWelcome
Definition:
main_welcome.h:26
SplashOverlay
Definition:
splash_overlay.h:28
Generated by
1.8.11