2012-01-04 22:13:01 +00:00
|
|
|
/* main_window.h
|
|
|
|
*
|
|
|
|
* 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
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MAINWINDOW_H
|
|
|
|
#define MAINWINDOW_H
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
2012-01-14 00:16:16 +00:00
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
#include <glib.h>
|
|
|
|
|
|
|
|
#include "file.h"
|
|
|
|
|
2012-08-31 22:25:51 +00:00
|
|
|
#include "ui/ui_util.h"
|
|
|
|
|
2013-09-03 16:06:20 +00:00
|
|
|
#include <epan/prefs.h>
|
|
|
|
|
2012-08-31 22:25:51 +00:00
|
|
|
#ifdef HAVE_LIBPCAP
|
|
|
|
#include "capture_opts.h"
|
|
|
|
#endif
|
2014-06-30 05:08:59 +00:00
|
|
|
#include <capchild/capture_session.h>
|
2012-08-31 22:25:51 +00:00
|
|
|
|
2012-01-04 22:13:01 +00:00
|
|
|
#include <QMainWindow>
|
|
|
|
#include <QSplitter>
|
2012-08-31 22:25:51 +00:00
|
|
|
|
|
|
|
#ifdef _WIN32
|
|
|
|
# include <QTimer>
|
|
|
|
#else
|
|
|
|
# include <QSocketNotifier>
|
|
|
|
#endif
|
|
|
|
|
2012-01-04 22:13:01 +00:00
|
|
|
#include "main_welcome.h"
|
2012-08-13 01:50:14 +00:00
|
|
|
#include "packet_list.h"
|
2012-01-04 22:13:01 +00:00
|
|
|
#include "display_filter_combo.h"
|
2012-07-19 21:49:52 +00:00
|
|
|
#include "progress_bar.h"
|
2012-10-01 22:40:20 +00:00
|
|
|
#include "file_set_dialog.h"
|
2012-10-12 23:40:29 +00:00
|
|
|
#include "capture_file_dialog.h"
|
2013-07-09 18:08:40 +00:00
|
|
|
#include "summary_dialog.h"
|
2013-09-09 19:30:30 +00:00
|
|
|
#include "follow_stream_dialog.h"
|
2013-11-25 14:15:49 +00:00
|
|
|
#include "capture_interfaces_dialog.h"
|
2014-01-02 17:04:10 +00:00
|
|
|
#include "about_dialog.h"
|
2012-01-04 22:13:01 +00:00
|
|
|
|
|
|
|
class QAction;
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class MainWindow;
|
|
|
|
}
|
|
|
|
|
|
|
|
class MainWindow : public QMainWindow
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit MainWindow(QWidget *parent = 0);
|
|
|
|
~MainWindow();
|
2012-08-31 22:25:51 +00:00
|
|
|
void setPipeInputHandler(gint source, gpointer user_data, int *child_process, pipe_input_cb_t input_cb);
|
2012-01-04 22:13:01 +00:00
|
|
|
|
2013-09-09 19:30:30 +00:00
|
|
|
QString getFilter();
|
|
|
|
|
2012-01-04 22:13:01 +00:00
|
|
|
protected:
|
2012-08-23 02:59:31 +00:00
|
|
|
bool eventFilter(QObject *obj, QEvent *event);
|
2012-01-04 22:13:01 +00:00
|
|
|
void keyPressEvent(QKeyEvent *event);
|
2012-08-31 22:25:51 +00:00
|
|
|
void closeEvent (QCloseEvent *event);
|
2012-01-04 22:13:01 +00:00
|
|
|
|
|
|
|
private:
|
2012-12-07 01:46:20 +00:00
|
|
|
enum MatchSelected {
|
|
|
|
MatchSelectedReplace,
|
|
|
|
MatchSelectedAnd,
|
|
|
|
MatchSelectedOr,
|
|
|
|
MatchSelectedNot,
|
|
|
|
MatchSelectedAndNot,
|
|
|
|
MatchSelectedOrNot
|
|
|
|
};
|
|
|
|
|
|
|
|
enum CopySelected {
|
|
|
|
CopySelectedDescription,
|
|
|
|
CopySelectedFieldName,
|
|
|
|
CopySelectedValue
|
|
|
|
};
|
|
|
|
|
2012-08-17 00:58:50 +00:00
|
|
|
Ui::MainWindow *main_ui_;
|
|
|
|
QMenu *open_recent_menu_;
|
2013-10-05 22:39:49 +00:00
|
|
|
QSplitter master_split_;
|
|
|
|
QSplitter extra_split_;
|
2012-08-17 00:58:50 +00:00
|
|
|
MainWelcome *main_welcome_;
|
|
|
|
DisplayFilterCombo *df_combo_box_;
|
|
|
|
capture_file *cap_file_;
|
2013-10-05 22:39:49 +00:00
|
|
|
// XXX - packet_list_, proto_tree_, and byte_view_tab_ should
|
|
|
|
// probably be full-on values instead of pointers.
|
2012-08-17 00:58:50 +00:00
|
|
|
PacketList *packet_list_;
|
2012-12-07 01:46:20 +00:00
|
|
|
ProtoTree *proto_tree_;
|
2012-08-20 21:22:01 +00:00
|
|
|
QWidget *previous_focus_;
|
2012-10-01 22:40:20 +00:00
|
|
|
FileSetDialog file_set_dialog_;
|
2013-07-09 18:08:40 +00:00
|
|
|
SummaryDialog summary_dialog_;
|
2013-09-02 16:03:13 +00:00
|
|
|
ByteViewTab *byte_view_tab_;
|
2013-10-05 22:39:49 +00:00
|
|
|
QWidget empty_pane_;
|
2013-09-02 16:03:13 +00:00
|
|
|
|
2012-08-31 22:25:51 +00:00
|
|
|
bool capture_stopping_;
|
2013-08-08 00:26:57 +00:00
|
|
|
bool capture_filter_valid_;
|
2013-11-25 21:50:58 +00:00
|
|
|
#ifdef HAVE_LIBPCAP
|
2013-11-25 14:15:49 +00:00
|
|
|
CaptureInterfacesDialog capture_interfaces_dialog_;
|
2013-11-25 21:50:58 +00:00
|
|
|
#endif
|
2012-08-31 22:25:51 +00:00
|
|
|
|
|
|
|
// Pipe input
|
|
|
|
gint pipe_source_;
|
|
|
|
gpointer pipe_user_data_;
|
|
|
|
int *pipe_child_process_;
|
|
|
|
pipe_input_cb_t pipe_input_cb_;
|
|
|
|
#ifdef _WIN32
|
|
|
|
QTimer *pipe_timer_;
|
|
|
|
#else
|
|
|
|
QSocketNotifier *pipe_notifier_;
|
|
|
|
#endif
|
|
|
|
|
2013-10-30 22:39:52 +00:00
|
|
|
void saveWindowGeometry();
|
2013-09-03 16:06:20 +00:00
|
|
|
QWidget* getLayoutWidget(layout_pane_content_e type);
|
2013-10-30 22:39:52 +00:00
|
|
|
|
2012-09-06 22:58:39 +00:00
|
|
|
void mergeCaptureFile();
|
2012-09-17 23:40:53 +00:00
|
|
|
void importCaptureFile();
|
2012-09-26 19:52:53 +00:00
|
|
|
void saveCaptureFile(capture_file *cf, bool stay_closed);
|
|
|
|
void saveAsCaptureFile(capture_file *cf, bool must_support_comments, bool stay_closed);
|
2012-10-08 20:01:59 +00:00
|
|
|
void exportSelectedPackets();
|
2012-10-12 23:40:29 +00:00
|
|
|
void exportDissections(export_type_e export_type);
|
2012-10-08 20:01:59 +00:00
|
|
|
|
|
|
|
void fileAddExtension(QString &file_name, int file_type, bool compressed);
|
2012-10-01 22:40:20 +00:00
|
|
|
bool testCaptureFileClose(bool from_quit = false, QString& before_what = *new QString());
|
|
|
|
void captureStop();
|
2012-08-31 22:25:51 +00:00
|
|
|
|
2013-07-09 18:08:40 +00:00
|
|
|
void setTitlebarForSelectedTreeRow();
|
2013-03-31 22:59:56 +00:00
|
|
|
void setTitlebarForCaptureFile();
|
2013-04-01 17:57:47 +00:00
|
|
|
void setTitlebarForCaptureInProgress();
|
2012-08-31 22:25:51 +00:00
|
|
|
void setMenusForCaptureFile(bool force_disable = false);
|
|
|
|
void setMenusForCaptureInProgress(bool capture_in_progress = false);
|
|
|
|
void setMenusForCaptureStopping();
|
2012-11-01 22:12:57 +00:00
|
|
|
void setForCapturedPackets(bool have_captured_packets);
|
2012-10-01 22:40:20 +00:00
|
|
|
void setMenusForFileSet(bool enable_list_files);
|
2013-07-09 18:08:40 +00:00
|
|
|
|
2012-08-31 22:25:51 +00:00
|
|
|
void setForCaptureInProgress(gboolean capture_in_progress = false);
|
2012-08-20 21:22:01 +00:00
|
|
|
|
2012-07-19 21:49:52 +00:00
|
|
|
signals:
|
|
|
|
void showProgress(progdlg_t **dlg_p, bool animate, const QString message, bool terminate_is_stop, bool *stop_flag, float pct);
|
2012-10-30 19:21:24 +00:00
|
|
|
void setCaptureFile(capture_file *cf);
|
2013-09-06 00:41:07 +00:00
|
|
|
void setDissectedCaptureFile(capture_file *cf);
|
2012-12-07 01:46:20 +00:00
|
|
|
void displayFilterSuccess(bool success);
|
2012-07-19 21:49:52 +00:00
|
|
|
|
2012-01-04 22:13:01 +00:00
|
|
|
public slots:
|
2012-10-02 18:47:05 +00:00
|
|
|
// in main_window_slots.cpp
|
2014-03-06 16:58:39 +00:00
|
|
|
void openCaptureFile(QString& cf_path = *new QString(), QString& display_filter = *new QString(), unsigned int type = WTAP_TYPE_AUTO);
|
2012-12-07 01:46:20 +00:00
|
|
|
void filterPackets(QString& new_filter = *new QString(), bool force = false);
|
2013-07-09 18:08:40 +00:00
|
|
|
void updateForUnsavedChanges();
|
2013-09-03 13:29:09 +00:00
|
|
|
void layoutPanes();
|
2012-10-01 22:40:20 +00:00
|
|
|
|
2013-05-22 10:09:07 +00:00
|
|
|
void captureCapturePrepared(capture_session *cap_session);
|
|
|
|
void captureCaptureUpdateStarted(capture_session *cap_session);
|
|
|
|
void captureCaptureUpdateFinished(capture_session *cap_session);
|
|
|
|
void captureCaptureFixedStarted(capture_session *cap_session);
|
|
|
|
void captureCaptureFixedFinished(capture_session *cap_session);
|
|
|
|
void captureCaptureStopping(capture_session *cap_session);
|
|
|
|
void captureCaptureFailed(capture_session *cap_session);
|
2012-08-31 22:25:51 +00:00
|
|
|
|
2012-10-01 22:40:20 +00:00
|
|
|
void captureFileOpened(const capture_file *cf);
|
2012-01-14 00:16:16 +00:00
|
|
|
void captureFileReadStarted(const capture_file *cf);
|
|
|
|
void captureFileReadFinished(const capture_file *cf);
|
|
|
|
void captureFileClosing(const capture_file *cf);
|
|
|
|
void captureFileClosed(const capture_file *cf);
|
2012-01-04 22:13:01 +00:00
|
|
|
|
2012-12-29 01:39:02 +00:00
|
|
|
void configurationProfileChanged(const gchar *profile_name);
|
2013-02-06 18:22:54 +00:00
|
|
|
void filterExpressionsChanged();
|
2012-12-29 01:39:02 +00:00
|
|
|
|
2012-01-04 22:13:01 +00:00
|
|
|
private slots:
|
2012-10-02 18:47:05 +00:00
|
|
|
// in main_window_slots.cpp
|
2012-08-31 22:25:51 +00:00
|
|
|
void startCapture();
|
|
|
|
void pipeTimeout();
|
|
|
|
void pipeActivated(int source);
|
|
|
|
void pipeNotifierDestroyed();
|
|
|
|
void stopCapture();
|
|
|
|
|
2013-10-30 23:54:46 +00:00
|
|
|
void loadWindowGeometry();
|
2012-01-04 22:13:01 +00:00
|
|
|
void updateRecentFiles();
|
2012-08-31 22:25:51 +00:00
|
|
|
void recentActionTriggered();
|
2013-09-09 19:30:30 +00:00
|
|
|
void setMenusForFollowStream();
|
2012-12-17 23:03:21 +00:00
|
|
|
void setMenusForSelectedPacket();
|
2012-10-16 00:01:23 +00:00
|
|
|
void setMenusForSelectedTreeRow(field_info *fi = NULL);
|
2012-12-03 19:58:55 +00:00
|
|
|
void interfaceSelectionChanged();
|
2013-08-08 00:26:57 +00:00
|
|
|
void captureFilterSyntaxChanged(bool valid);
|
2012-12-17 23:03:21 +00:00
|
|
|
void redissectPackets();
|
2013-01-23 19:04:36 +00:00
|
|
|
void recreatePacketList();
|
2012-08-31 22:25:51 +00:00
|
|
|
|
2014-06-04 09:03:59 +00:00
|
|
|
void startInterfaceCapture(bool valid);
|
|
|
|
|
2013-05-20 18:56:33 +00:00
|
|
|
void setFeaturesEnabled(bool enabled = true);
|
|
|
|
|
2013-02-06 18:22:54 +00:00
|
|
|
void addDisplayFilterButton(QString df_text);
|
|
|
|
void displayFilterButtonClicked();
|
|
|
|
|
2012-12-17 23:03:21 +00:00
|
|
|
// We should probably move these to main_window_actions.cpp similar to
|
|
|
|
// gtk/main_menubar.c
|
2012-08-31 07:56:24 +00:00
|
|
|
void on_actionFileOpen_triggered();
|
2012-09-06 22:58:39 +00:00
|
|
|
void on_actionFileMerge_triggered();
|
2013-03-31 04:17:47 +00:00
|
|
|
void on_actionFileImportFromHexDump_triggered();
|
2012-08-14 00:25:42 +00:00
|
|
|
void on_actionFileClose_triggered();
|
2012-09-26 19:52:53 +00:00
|
|
|
void on_actionFileSave_triggered();
|
|
|
|
void on_actionFileSaveAs_triggered();
|
2012-10-01 22:40:20 +00:00
|
|
|
void on_actionFileSetListFiles_triggered();
|
|
|
|
void on_actionFileSetNextFile_triggered();
|
|
|
|
void on_actionFileSetPreviousFile_triggered();
|
2012-10-08 20:01:59 +00:00
|
|
|
void on_actionFileExportPackets_triggered();
|
2012-10-12 23:40:29 +00:00
|
|
|
void on_actionFileExportAsPlainText_triggered();
|
|
|
|
// We're dropping PostScript exports
|
|
|
|
void on_actionFileExportAsCSV_triggered();
|
|
|
|
void on_actionFileExportAsCArrays_triggered();
|
|
|
|
void on_actionFileExportAsPSML_triggered();
|
|
|
|
void on_actionFileExportAsPDML_triggered();
|
2012-10-16 00:01:23 +00:00
|
|
|
void on_actionFileExportPacketBytes_triggered();
|
2012-10-18 21:14:43 +00:00
|
|
|
void on_actionFileExportObjectsDICOM_triggered();
|
|
|
|
void on_actionFileExportObjectsHTTP_triggered();
|
|
|
|
void on_actionFileExportObjectsSMB_triggered();
|
2014-06-02 09:24:58 +00:00
|
|
|
void on_actionFileExportObjectsTFTP_triggered();
|
2012-11-01 20:57:45 +00:00
|
|
|
void on_actionFilePrint_triggered();
|
2012-09-17 23:40:53 +00:00
|
|
|
|
2014-01-14 18:37:40 +00:00
|
|
|
void on_actionFileExportPDU_triggered();
|
2012-12-07 01:46:20 +00:00
|
|
|
void on_actionFileExportSSLSessionKeys_triggered();
|
|
|
|
|
|
|
|
void actionEditCopyTriggered(MainWindow::CopySelected selection_type);
|
|
|
|
void on_actionEditCopyDescription_triggered();
|
|
|
|
void on_actionEditCopyFieldName_triggered();
|
|
|
|
void on_actionEditCopyValue_triggered();
|
|
|
|
void on_actionEditCopyAsFilter_triggered();
|
2012-12-15 01:04:39 +00:00
|
|
|
void on_actionEditFindPacket_triggered();
|
|
|
|
void on_actionEditFindNext_triggered();
|
|
|
|
void on_actionEditFindPrevious_triggered();
|
2012-12-17 23:03:21 +00:00
|
|
|
void on_actionEditMarkPacket_triggered();
|
|
|
|
void on_actionEditMarkAllDisplayed_triggered();
|
|
|
|
void on_actionEditUnmarkAllDisplayed_triggered();
|
2012-12-29 01:39:02 +00:00
|
|
|
void on_actionEditNextMark_triggered();
|
|
|
|
void on_actionEditPreviousMark_triggered();
|
2012-12-17 23:03:21 +00:00
|
|
|
void on_actionEditIgnorePacket_triggered();
|
|
|
|
void on_actionEditIgnoreAllDisplayed_triggered();
|
|
|
|
void on_actionEditUnignoreAllDisplayed_triggered();
|
|
|
|
void on_actionEditSetTimeReference_triggered();
|
|
|
|
void on_actionEditUnsetAllTimeReferences_triggered();
|
|
|
|
void on_actionEditNextTimeReference_triggered();
|
|
|
|
void on_actionEditPreviousTimeReference_triggered();
|
2012-12-21 17:37:57 +00:00
|
|
|
void on_actionEditTimeShift_triggered();
|
2012-12-23 04:37:58 +00:00
|
|
|
void on_actionEditPacketComment_triggered();
|
2012-12-29 01:39:02 +00:00
|
|
|
void on_actionEditConfigurationProfiles_triggered();
|
2013-01-05 02:30:58 +00:00
|
|
|
void on_actionEditPreferences_triggered();
|
2012-12-07 01:46:20 +00:00
|
|
|
|
2014-02-16 18:13:29 +00:00
|
|
|
void on_actionViewReload_triggered();
|
2014-03-11 15:52:48 +00:00
|
|
|
void on_actionViewToolbarMainToolbar_triggered();
|
|
|
|
void on_actionViewToolbarDisplayFilter_triggered();
|
2014-02-16 18:13:29 +00:00
|
|
|
|
2012-08-20 04:34:23 +00:00
|
|
|
void on_actionGoGoToPacket_triggered();
|
2012-08-20 21:22:01 +00:00
|
|
|
void resetPreviousFocus();
|
|
|
|
|
2013-11-25 21:50:58 +00:00
|
|
|
#ifdef HAVE_LIBPCAP
|
2013-07-15 20:17:17 +00:00
|
|
|
void on_actionCaptureOptions_triggered();
|
2013-11-25 21:50:58 +00:00
|
|
|
#endif
|
2013-07-15 20:17:17 +00:00
|
|
|
|
2012-12-07 20:08:00 +00:00
|
|
|
void matchSelectedFilter(MainWindow::MatchSelected filter_type, bool apply = false, bool copy_only = false);
|
2012-12-07 01:46:20 +00:00
|
|
|
void on_actionAnalyzeAAFSelected_triggered();
|
|
|
|
void on_actionAnalyzeAAFNotSelected_triggered();
|
|
|
|
void on_actionAnalyzeAAFAndSelected_triggered();
|
|
|
|
void on_actionAnalyzeAAFOrSelected_triggered();
|
|
|
|
void on_actionAnalyzeAAFAndNotSelected_triggered();
|
|
|
|
void on_actionAnalyzeAAFOrNotSelected_triggered();
|
|
|
|
void on_actionAnalyzePAFSelected_triggered();
|
|
|
|
void on_actionAnalyzePAFNotSelected_triggered();
|
|
|
|
void on_actionAnalyzePAFAndSelected_triggered();
|
|
|
|
void on_actionAnalyzePAFOrSelected_triggered();
|
|
|
|
void on_actionAnalyzePAFAndNotSelected_triggered();
|
|
|
|
void on_actionAnalyzePAFOrNotSelected_triggered();
|
2013-11-13 22:18:01 +00:00
|
|
|
|
2013-11-22 01:07:36 +00:00
|
|
|
void on_actionAnalyzeDecodeAs_triggered();
|
|
|
|
|
2013-11-13 22:18:01 +00:00
|
|
|
void openFollowStreamDialog(follow_type_t type);
|
2013-09-09 19:30:30 +00:00
|
|
|
void on_actionAnalyzeFollowTCPStream_triggered();
|
|
|
|
void on_actionAnalyzeFollowUDPStream_triggered();
|
|
|
|
void on_actionAnalyzeFollowSSLStream_triggered();
|
2012-12-07 01:46:20 +00:00
|
|
|
|
2012-09-25 20:08:11 +00:00
|
|
|
void on_actionHelpContents_triggered();
|
|
|
|
void on_actionHelpMPWireshark_triggered();
|
|
|
|
void on_actionHelpMPWireshark_Filter_triggered();
|
2013-07-23 10:32:02 +00:00
|
|
|
void on_actionHelpMPCapinfos_triggered();
|
2012-09-25 20:08:11 +00:00
|
|
|
void on_actionHelpMPDumpcap_triggered();
|
|
|
|
void on_actionHelpMPEditcap_triggered();
|
2013-07-23 10:32:02 +00:00
|
|
|
void on_actionHelpMPMergecap_triggered();
|
|
|
|
void on_actionHelpMPRawShark_triggered();
|
|
|
|
void on_actionHelpMPReordercap_triggered();
|
2012-09-25 20:08:11 +00:00
|
|
|
void on_actionHelpMPText2cap_triggered();
|
2013-07-23 10:32:02 +00:00
|
|
|
void on_actionHelpMPTShark_triggered();
|
2012-07-25 11:53:44 +00:00
|
|
|
void on_actionHelpWebsite_triggered();
|
|
|
|
void on_actionHelpFAQ_triggered();
|
|
|
|
void on_actionHelpAsk_triggered();
|
|
|
|
void on_actionHelpDownloads_triggered();
|
|
|
|
void on_actionHelpWiki_triggered();
|
|
|
|
void on_actionHelpSampleCaptures_triggered();
|
2014-01-02 17:04:10 +00:00
|
|
|
void on_actionHelpAbout_triggered();
|
2013-03-06 22:04:17 +00:00
|
|
|
|
|
|
|
#ifdef HAVE_SOFTWARE_UPDATE
|
|
|
|
void on_actionHelpCheckForUpdates_triggered();
|
|
|
|
#endif
|
|
|
|
|
2012-08-20 04:34:23 +00:00
|
|
|
void on_goToCancel_clicked();
|
|
|
|
void on_goToGo_clicked();
|
|
|
|
void on_goToLineEdit_returnPressed();
|
2012-08-31 22:25:51 +00:00
|
|
|
void on_actionStartCapture_triggered();
|
|
|
|
void on_actionStopCapture_triggered();
|
2013-07-09 18:08:40 +00:00
|
|
|
|
|
|
|
void on_actionSummary_triggered();
|
2013-10-24 22:52:30 +00:00
|
|
|
void on_actionStatisticsFlowGraph_triggered();
|
2013-09-04 23:15:59 +00:00
|
|
|
void openTcpStreamDialog(int graph_type);
|
2013-08-27 18:13:20 +00:00
|
|
|
void on_actionStatisticsTcpStreamStevens_triggered();
|
2013-09-13 22:29:05 +00:00
|
|
|
void on_actionStatisticsTcpStreamTcptrace_triggered();
|
2013-09-04 23:15:59 +00:00
|
|
|
void on_actionStatisticsTcpStreamThroughput_triggered();
|
2013-09-08 01:25:27 +00:00
|
|
|
void on_actionStatisticsTcpStreamRoundTripTime_triggered();
|
2013-09-09 01:40:06 +00:00
|
|
|
void on_actionStatisticsTcpStreamWindowScaling_triggered();
|
2013-12-13 07:25:30 +00:00
|
|
|
void openSCTPAllAssocsDialog();
|
|
|
|
void on_actionSCTPShowAllAssociations_triggered();
|
|
|
|
void on_actionSCTPAnalyseThisAssociation_triggered();
|
2013-12-18 13:49:10 +00:00
|
|
|
void on_actionSCTPFilterThisAssociation_triggered();
|
2012-01-04 22:13:01 +00:00
|
|
|
|
2013-11-21 01:28:17 +00:00
|
|
|
void openStatisticsTreeDialog(const gchar *abbr);
|
2014-04-08 22:13:45 +00:00
|
|
|
void on_actionStatistics29WestTopics_Advertisements_by_Topic_triggered();
|
|
|
|
void on_actionStatistics29WestTopics_Advertisements_by_Source_triggered();
|
|
|
|
void on_actionStatistics29WestTopics_Advertisements_by_Transport_triggered();
|
|
|
|
void on_actionStatistics29WestTopics_Queries_by_Topic_triggered();
|
|
|
|
void on_actionStatistics29WestTopics_Queries_by_Receiver_triggered();
|
|
|
|
void on_actionStatistics29WestTopics_Wildcard_Queries_by_Pattern_triggered();
|
|
|
|
void on_actionStatistics29WestTopics_Wildcard_Queries_by_Receiver_triggered();
|
|
|
|
void on_actionStatistics29WestQueues_Advertisements_by_Queue_triggered();
|
|
|
|
void on_actionStatistics29WestQueues_Advertisements_by_Source_triggered();
|
|
|
|
void on_actionStatistics29WestQueues_Queries_by_Queue_triggered();
|
|
|
|
void on_actionStatistics29WestQueues_Queries_by_Receiver_triggered();
|
|
|
|
void on_actionStatistics29WestUIM_Streams_triggered();
|
|
|
|
void on_actionStatistics29WestUIM_Stream_Flow_Graph_triggered();
|
|
|
|
void on_actionStatistics29WestLBTRM_triggered();
|
|
|
|
void on_actionStatistics29WestLBTRU_triggered();
|
2013-11-21 01:28:17 +00:00
|
|
|
void on_actionStatisticsANCP_triggered();
|
|
|
|
void on_actionStatisticsBACappInstanceId_triggered();
|
|
|
|
void on_actionStatisticsBACappIP_triggered();
|
|
|
|
void on_actionStatisticsBACappObjectId_triggered();
|
|
|
|
void on_actionStatisticsBACappService_triggered();
|
|
|
|
void on_actionStatisticsCollectd_triggered();
|
|
|
|
void on_actionStatisticsHART_IP_triggered();
|
|
|
|
void on_actionStatisticsHTTPPacketCounter_triggered();
|
|
|
|
void on_actionStatisticsHTTPRequests_triggered();
|
|
|
|
void on_actionStatisticsHTTPLoadDistribution_triggered();
|
|
|
|
void on_actionStatisticsPacketLen_triggered();
|
Add a Qt I/O Graph dialog.
For each graph you can set:
- Its visibility
- A name
- A display filter
- Color, from a fixed list
- Plot style: Line, Impulse, Bar, Stacked Bar, Dot, Square, Diamond
- Basic Y Axes (packets/s, bytes/s, bits/s)
- Computed Y Axes (SUM, MIN, AVG, MAX)
- Smoothing
You can pan and zoom using the mouse and keyboard. Clicking on a graph
selects the last packet for that interval. If all graphs have the same Y
axis a single label is shown, otherwise a legend is shown.
The time scale (X axis) can be toggled between relative seconds and the
time of day.
Graphs can be saved as PDF, PNG, BMP, and JPEG. Settings are "sticky"
via the io_graphs UAT.
To do:
- Minimize graph drawing delays.
- Figure out why smoothing differs from GTK+
- Everything else at the top of io_graph_dialog.cpp
- Fix empty resets.
A fair amount of code was copied from TCPStreamDialog. We might want to
subclass QCustomPlot and place the shared code there.
Move common syntax checking to SyntaxLineEdit.
Move some common code from ui/gtk/io_stat.c to ui/io_graph_item.[ch] and
use it in both GTK+ and Qt.
Make the io_graph_item_t array allocation in io_stat.c static. The
behavior should be identical and this gives us additional compile-time
checks.
Change-Id: I9a3d544469b7048f0761fdbf7bcf20f44ae76577
Reviewed-on: https://code.wireshark.org/review/435
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Tested-by: Gerald Combs <gerald@wireshark.org>
2014-02-12 00:07:10 +00:00
|
|
|
void on_actionStatisticsIOGraph_triggered();
|
2013-11-21 01:28:17 +00:00
|
|
|
void on_actionStatisticsSametime_triggered();
|
|
|
|
|
|
|
|
void on_actionTelephonyISUPMessages_triggered();
|
|
|
|
void on_actionTelephonyRTSPPacketCounter_triggered();
|
|
|
|
void on_actionTelephonySMPPOperations_triggered();
|
|
|
|
void on_actionTelephonyUCPMessages_triggered();
|
2014-06-16 22:20:16 +00:00
|
|
|
|
|
|
|
void changeEvent(QEvent* event);
|
2013-11-21 01:28:17 +00:00
|
|
|
};
|
2014-01-02 17:04:10 +00:00
|
|
|
|
2012-01-04 22:13:01 +00:00
|
|
|
#endif // MAINWINDOW_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:
|
|
|
|
*/
|