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"
37 class MainStatusBar
: public QStatusBar
41 explicit MainStatusBar(QWidget
*parent
= 0);
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_
;
55 QAction
*edit_action_
;
56 QAction
*delete_action_
;
61 void setCaptureFile(capture_file
*cf
);
62 void pushTemporaryStatus(QString
&message
);
63 void popTemporaryStatus();
64 void pushFileStatus(QString
&message
);
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
);
74 void pushPacketStatus(QString
&message
);
75 void popPacketStatus();
76 void pushProfileStatus(QString
&message
);
77 void popProfileStatus();
78 void toggleBackground(bool enabled
);
79 void switchToProfile();
81 void showProfileMenu(const QPoint
&global_pos
, Qt::MouseButton button
);
84 #endif // MAIN_STATUS_BAR_H
92 * indent-tabs-mode: nil
95 * ex: set shiftwidth=4 tabstop=8 expandtab:
96 * :indentSize=4:tabSize=8:noTabs=true: