add parameter dcerpc_info to PIDL_dissect_ipv?address()
[wireshark-wip.git] / ui / qt / main_status_bar.h
blob6c5222e3c3c45660e40926f6f84f791f4a03d6a6
1 /* main_status_bar.h
3 * $Id$
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 1998 Gerald Combs
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * as published by the Free Software Foundation; either version 2
12 * of the License, or (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 #ifndef MAIN_STATUS_BAR_H
25 #define MAIN_STATUS_BAR_H
27 #include "wireshark_application.h"
28 #include "label_stack.h"
29 #include "progress_bar.h"
31 #include <QStatusBar>
32 #include <QLabel>
33 #include <QMenu>
35 #include "cfile.h"
37 class MainStatusBar : public QStatusBar
39 Q_OBJECT
40 public:
41 explicit MainStatusBar(QWidget *parent = 0);
42 void showExpert();
43 void hideExpert();
44 void expertUpdate();
46 private:
47 QLabel expert_status_;
48 LabelStack info_status_;
49 ProgressBar progress_bar_;
50 LabelStack packet_status_;
51 LabelStack profile_status_;
52 capture_file *cap_file_;
53 QMenu profile_menu_;
54 QMenu ctx_menu_;
55 QAction *edit_action_;
56 QAction *delete_action_;
58 signals:
60 public slots:
61 void setCaptureFile(capture_file *cf);
62 void pushTemporaryStatus(QString &message);
63 void popTemporaryStatus();
64 void pushFileStatus(QString &message);
65 void popFileStatus();
66 void pushFieldStatus(QString &message);
67 void popFieldStatus();
68 void pushFilterStatus(QString &message);
69 void popFilterStatus();
70 void pushProfileName();
71 void updateCaptureStatistics(capture_session * cap_session);
73 private slots:
74 void pushPacketStatus(QString &message);
75 void popPacketStatus();
76 void pushProfileStatus(QString &message);
77 void popProfileStatus();
78 void toggleBackground(bool enabled);
79 void switchToProfile();
80 void manageProfile();
81 void showProfileMenu(const QPoint &global_pos, Qt::MouseButton button);
84 #endif // MAIN_STATUS_BAR_H
87 * Editor modelines
89 * Local Variables:
90 * c-basic-offset: 4
91 * tab-width: 8
92 * indent-tabs-mode: nil
93 * End:
95 * ex: set shiftwidth=4 tabstop=8 expandtab:
96 * :indentSize=4:tabSize=8:noTabs=true: