2012-07-19 21:49:52 +00:00
|
|
|
/* main_status_bar.h
|
2012-01-04 22:13:01 +00:00
|
|
|
*
|
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
2012-06-28 22:56:06 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2012-01-04 22:13:01 +00:00
|
|
|
*/
|
|
|
|
|
2012-07-19 21:49:52 +00:00
|
|
|
#ifndef MAIN_STATUS_BAR_H
|
|
|
|
#define MAIN_STATUS_BAR_H
|
2012-01-14 00:16:16 +00:00
|
|
|
|
2012-12-03 19:58:55 +00:00
|
|
|
#include "wireshark_application.h"
|
2012-01-14 00:16:16 +00:00
|
|
|
#include "label_stack.h"
|
2012-07-19 21:49:52 +00:00
|
|
|
#include "progress_bar.h"
|
2012-01-04 22:13:01 +00:00
|
|
|
|
|
|
|
#include <QStatusBar>
|
2012-07-31 20:00:25 +00:00
|
|
|
#include <QLabel>
|
2012-12-30 19:33:05 +00:00
|
|
|
#include <QMenu>
|
2012-01-04 22:13:01 +00:00
|
|
|
|
2012-12-03 19:58:55 +00:00
|
|
|
#include "cfile.h"
|
|
|
|
|
2012-01-04 22:13:01 +00:00
|
|
|
class MainStatusBar : public QStatusBar
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit MainStatusBar(QWidget *parent = 0);
|
2012-07-31 20:00:25 +00:00
|
|
|
void showExpert();
|
|
|
|
void hideExpert();
|
2012-12-17 23:03:21 +00:00
|
|
|
void expertUpdate();
|
2012-01-04 22:13:01 +00:00
|
|
|
|
2012-01-14 00:16:16 +00:00
|
|
|
private:
|
2012-11-05 20:13:06 +00:00
|
|
|
QLabel expert_status_;
|
|
|
|
LabelStack info_status_;
|
|
|
|
ProgressBar progress_bar_;
|
|
|
|
LabelStack packet_status_;
|
|
|
|
LabelStack profile_status_;
|
2012-12-03 19:58:55 +00:00
|
|
|
capture_file *cap_file_;
|
2012-12-30 19:33:05 +00:00
|
|
|
QMenu profile_menu_;
|
|
|
|
QMenu ctx_menu_;
|
|
|
|
QAction *edit_action_;
|
|
|
|
QAction *delete_action_;
|
2012-01-14 00:16:16 +00:00
|
|
|
|
2012-01-04 22:13:01 +00:00
|
|
|
signals:
|
|
|
|
|
|
|
|
public slots:
|
2012-12-03 19:58:55 +00:00
|
|
|
void setCaptureFile(capture_file *cf);
|
2012-01-14 00:16:16 +00:00
|
|
|
void pushTemporaryStatus(QString &message);
|
|
|
|
void popTemporaryStatus();
|
|
|
|
void pushFileStatus(QString &message);
|
|
|
|
void popFileStatus();
|
|
|
|
void pushFieldStatus(QString &message);
|
|
|
|
void popFieldStatus();
|
|
|
|
void pushFilterStatus(QString &message);
|
|
|
|
void popFilterStatus();
|
2012-12-30 19:33:05 +00:00
|
|
|
void pushProfileName();
|
2013-05-22 08:47:17 +00:00
|
|
|
void updateCaptureStatistics(capture_session * cap_session);
|
2012-12-30 19:33:05 +00:00
|
|
|
|
|
|
|
private slots:
|
2012-01-14 00:16:16 +00:00
|
|
|
void pushPacketStatus(QString &message);
|
|
|
|
void popPacketStatus();
|
|
|
|
void pushProfileStatus(QString &message);
|
|
|
|
void popProfileStatus();
|
2012-11-30 23:14:53 +00:00
|
|
|
void toggleBackground(bool enabled);
|
2012-12-30 19:33:05 +00:00
|
|
|
void switchToProfile();
|
|
|
|
void manageProfile();
|
|
|
|
void showProfileMenu(const QPoint &global_pos, Qt::MouseButton button);
|
2012-01-04 22:13:01 +00:00
|
|
|
};
|
|
|
|
|
2012-07-19 21:49:52 +00:00
|
|
|
#endif // MAIN_STATUS_BAR_H
|
2012-09-04 08:18:31 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Editor modelines
|
|
|
|
*
|
|
|
|
* Local Variables:
|
|
|
|
* c-basic-offset: 4
|
|
|
|
* tab-width: 8
|
|
|
|
* indent-tabs-mode: nil
|
|
|
|
* End:
|
|
|
|
*
|
|
|
|
* ex: set shiftwidth=4 tabstop=8 expandtab:
|
|
|
|
* :indentSize=4:tabSize=8:noTabs=true:
|
|
|
|
*/
|