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>
|
|
|
|
|
2015-01-03 20:52:54 +00:00
|
|
|
#include <config.h>
|
2012-01-14 00:16:16 +00:00
|
|
|
|
|
|
|
#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
|
|
|
|
|
2014-09-09 20:42:58 +00:00
|
|
|
#include "capture_file.h"
|
|
|
|
#include "capture_file_dialog.h"
|
|
|
|
#include "capture_file_properties_dialog.h"
|
|
|
|
#include "capture_interfaces_dialog.h"
|
2012-01-04 22:13:01 +00:00
|
|
|
#include "display_filter_combo.h"
|
2012-10-01 22:40:20 +00:00
|
|
|
#include "file_set_dialog.h"
|
2014-04-29 15:10:27 +00:00
|
|
|
#include "filter_action.h"
|
2013-09-09 19:30:30 +00:00
|
|
|
#include "follow_stream_dialog.h"
|
2015-02-13 00:11:21 +00:00
|
|
|
#include "preferences_dialog.h"
|
2015-02-11 23:00:27 +00:00
|
|
|
|
|
|
|
class ByteViewTab;
|
|
|
|
class MainWelcome;
|
|
|
|
class PacketList;
|
|
|
|
class ProtoTree;
|
2012-01-04 22:13:01 +00:00
|
|
|
|
|
|
|
class QAction;
|
2014-10-21 20:36:10 +00:00
|
|
|
class QActionGroup;
|
|
|
|
|
2012-01-04 22:13:01 +00:00
|
|
|
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();
|
2014-09-30 20:19:24 +00:00
|
|
|
#ifdef HAVE_LIBPCAP
|
2014-09-29 23:27:11 +00:00
|
|
|
capture_session *captureSession() { return &cap_session_; }
|
2014-09-30 20:19:24 +00:00
|
|
|
#endif
|
2013-09-09 19:30:30 +00:00
|
|
|
|
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);
|
2013-12-21 16:55:43 +00:00
|
|
|
void closeEvent(QCloseEvent *event);
|
2012-01-04 22:13:01 +00:00
|
|
|
|
|
|
|
private:
|
2014-04-29 15:10:27 +00:00
|
|
|
// XXX Move to FilterUtils
|
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_;
|
2015-02-06 18:36:27 +00:00
|
|
|
QVector<unsigned> cur_layout_;
|
2012-08-17 00:58:50 +00:00
|
|
|
MainWelcome *main_welcome_;
|
|
|
|
DisplayFilterCombo *df_combo_box_;
|
2014-09-09 20:42:58 +00:00
|
|
|
CaptureFile capture_file_;
|
2014-09-23 20:35:10 +00:00
|
|
|
QFont mono_font_;
|
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-09-02 16:03:13 +00:00
|
|
|
ByteViewTab *byte_view_tab_;
|
2013-10-05 22:39:49 +00:00
|
|
|
QWidget empty_pane_;
|
2014-10-22 17:05:35 +00:00
|
|
|
QActionGroup *show_hide_actions_;
|
2014-10-21 20:36:10 +00:00
|
|
|
QActionGroup *time_display_actions_;
|
|
|
|
QActionGroup *time_precision_actions_;
|
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
|
2014-09-30 20:19:24 +00:00
|
|
|
capture_session cap_session_;
|
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-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
|
|
|
|
2014-10-21 20:36:10 +00:00
|
|
|
void initMainToolbarIcons();
|
2014-10-22 17:05:35 +00:00
|
|
|
void initShowHideMainWidgets();
|
2014-10-21 20:36:10 +00:00
|
|
|
void initTimeDisplayFormatMenu();
|
|
|
|
void initTimePrecisionFormatMenu();
|
|
|
|
|
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);
|
2015-01-06 09:22:48 +00:00
|
|
|
QMenu* findOrAddMenu(QMenu *parent_menu, QString& menu_text);
|
2012-08-20 21:22:01 +00:00
|
|
|
|
2012-07-19 21:49:52 +00:00
|
|
|
signals:
|
2015-02-11 23:00:27 +00:00
|
|
|
void showProgress(struct progdlg **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);
|
2014-09-23 20:35:10 +00:00
|
|
|
void monospaceFontChanged(const QFont &mono_font);
|
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();
|
2015-02-19 01:18:27 +00:00
|
|
|
void applyRecentPaneGeometry();
|
2014-12-10 00:54:17 +00:00
|
|
|
void layoutToolbars();
|
2015-02-20 14:30:23 +00:00
|
|
|
void updatePreferenceActions();
|
2012-10-01 22:40:20 +00:00
|
|
|
|
2014-09-09 20:42:58 +00:00
|
|
|
void captureCapturePrepared(capture_session *);
|
2015-02-19 01:18:27 +00:00
|
|
|
void captureCaptureUpdateStarted(capture_session *);
|
|
|
|
void captureCaptureUpdateFinished(capture_session *);
|
|
|
|
void captureCaptureFixedStarted(capture_session *);
|
2013-05-22 10:09:07 +00:00
|
|
|
void captureCaptureFixedFinished(capture_session *cap_session);
|
2015-02-19 01:18:27 +00:00
|
|
|
void captureCaptureStopping(capture_session *);
|
|
|
|
void captureCaptureFailed(capture_session *);
|
2012-08-31 22:25:51 +00:00
|
|
|
|
2014-09-09 20:42:58 +00:00
|
|
|
void captureFileOpened();
|
|
|
|
void captureFileReadStarted();
|
|
|
|
void captureFileReadFinished();
|
|
|
|
void captureFileClosing();
|
|
|
|
void captureFileClosed();
|
2012-01-04 22:13:01 +00:00
|
|
|
|
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();
|
2015-02-19 01:18:27 +00:00
|
|
|
void saveWindowGeometry();
|
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();
|
2014-11-06 10:19:25 +00:00
|
|
|
void fieldsChanged();
|
2015-01-01 19:41:03 +00:00
|
|
|
void showColumnEditor(int column);
|
2015-01-06 09:22:48 +00:00
|
|
|
void addStatsPluginsToMenu();
|
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();
|
|
|
|
|
2014-04-29 15:10:27 +00:00
|
|
|
// Handle FilterAction signals
|
|
|
|
void filterAction(QString& filter, FilterAction::Action action, FilterAction::ActionType type);
|
|
|
|
|
2014-07-09 17:50:51 +00:00
|
|
|
/** Pass stat cmd arguments to a slot.
|
2014-11-08 17:03:23 +00:00
|
|
|
* @param menu_path slot Partial slot name, e.g. "StatisticsIOGraph".
|
|
|
|
* @param arg "-z" argument, e.g. "io,stat".
|
2014-07-09 17:50:51 +00:00
|
|
|
* @param userdata Optional user data.
|
|
|
|
*/
|
|
|
|
void openStatCommandDialog(const QString &menu_path, const char *arg, void *userdata);
|
|
|
|
|
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();
|
2015-01-01 19:41:03 +00:00
|
|
|
void showPreferencesDialog(PreferencesDialog::PreferencesPane start_pane = PreferencesDialog::ppAppearance);
|
2013-01-05 02:30:58 +00:00
|
|
|
void on_actionEditPreferences_triggered();
|
2012-12-07 01:46:20 +00:00
|
|
|
|
2014-10-22 17:05:35 +00:00
|
|
|
void showHideMainWidgets(QAction *action);
|
2014-10-21 20:36:10 +00:00
|
|
|
void setTimestampFormat(QAction *action);
|
|
|
|
void setTimestampPrecision(QAction *action);
|
|
|
|
void on_actionViewTimeDisplaySecondsWithHoursAndMinutes_triggered(bool checked);
|
2014-12-12 20:35:31 +00:00
|
|
|
void setNameResolution();
|
|
|
|
void on_actionViewNameResolutionPhysical_triggered();
|
|
|
|
void on_actionViewNameResolutionNetwork_triggered();
|
|
|
|
void on_actionViewNameResolutionTransport_triggered();
|
|
|
|
// XXX We're not porting the concurrency action from GTK+ on purpose.
|
2014-09-23 20:35:10 +00:00
|
|
|
void zoomText();
|
|
|
|
void on_actionViewZoomIn_triggered();
|
|
|
|
void on_actionViewZoomOut_triggered();
|
|
|
|
void on_actionViewNormalSize_triggered();
|
2014-09-22 23:33:05 +00:00
|
|
|
void on_actionViewColorizePacketList_triggered(bool checked);
|
2015-02-05 00:36:19 +00:00
|
|
|
void on_actionViewColoringRules_triggered();
|
2014-09-23 20:35:10 +00:00
|
|
|
void on_actionViewResizeColumns_triggered();
|
2015-02-11 23:00:27 +00:00
|
|
|
|
|
|
|
void openPacketDialog(bool from_reference = false);
|
|
|
|
void on_actionViewShowPacketInNewWindow_triggered();
|
|
|
|
void on_actionViewShowPacketReferenceInNewWindow_triggered();
|
2014-02-16 18:13:29 +00:00
|
|
|
void on_actionViewReload_triggered();
|
|
|
|
|
2012-08-20 04:34:23 +00:00
|
|
|
void on_actionGoGoToPacket_triggered();
|
2015-02-20 14:30:23 +00:00
|
|
|
void on_actionGoAutoScroll_toggled(bool checked);
|
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();
|
2014-07-25 07:44:50 +00:00
|
|
|
void on_actionCaptureRefreshInterfaces_triggered();
|
2013-11-25 21:50:58 +00:00
|
|
|
#endif
|
2013-07-15 20:17:17 +00:00
|
|
|
|
2014-04-29 15:10:27 +00:00
|
|
|
void matchFieldFilter(FilterAction::Action action, FilterAction::ActionType filter_type);
|
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
|
2014-10-06 22:33:50 +00:00
|
|
|
void checkForUpdates();
|
2013-03-06 22:04:17 +00:00
|
|
|
#endif
|
|
|
|
|
2012-08-20 04:34:23 +00:00
|
|
|
void on_goToCancel_clicked();
|
|
|
|
void on_goToGo_clicked();
|
|
|
|
void on_goToLineEdit_returnPressed();
|
2014-09-18 21:09:55 +00:00
|
|
|
void on_actionCaptureStart_triggered();
|
|
|
|
void on_actionCaptureStop_triggered();
|
2013-07-09 18:08:40 +00:00
|
|
|
|
2014-11-12 22:24:16 +00:00
|
|
|
void on_actionStatisticsCaptureFileProperties_triggered();
|
2015-02-03 16:39:14 +00:00
|
|
|
void on_actionStatisticsProtocolHierarchy_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();
|
2014-08-06 17:07:42 +00:00
|
|
|
void statCommandConversations(const char *arg = NULL, void *userdata = NULL);
|
2014-04-29 15:10:27 +00:00
|
|
|
void on_actionStatisticsConversations_triggered();
|
2014-08-06 17:07:42 +00:00
|
|
|
void statCommandEndpoints(const char *arg = NULL, void *userdata = NULL);
|
|
|
|
void on_actionStatisticsEndpoints_triggered();
|
2013-11-21 01:28:17 +00:00
|
|
|
void on_actionStatisticsHART_IP_triggered();
|
|
|
|
void on_actionStatisticsHTTPPacketCounter_triggered();
|
|
|
|
void on_actionStatisticsHTTPRequests_triggered();
|
|
|
|
void on_actionStatisticsHTTPLoadDistribution_triggered();
|
|
|
|
void on_actionStatisticsPacketLen_triggered();
|
2015-02-19 01:18:27 +00:00
|
|
|
void statCommandIOGraph(const char *, void *);
|
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();
|
2014-12-30 11:31:46 +00:00
|
|
|
void on_actionStatisticsDNS_triggered();
|
2015-01-06 09:22:48 +00:00
|
|
|
void actionStatisticsPlugin_triggered();
|
2015-01-13 14:13:27 +00:00
|
|
|
void on_actionStatisticsHpfeeds_triggered();
|
2015-01-08 16:35:58 +00:00
|
|
|
void on_actionStatisticsHTTP2_triggered();
|
2013-11-21 01:28:17 +00:00
|
|
|
|
2014-11-19 00:21:42 +00:00
|
|
|
void openVoipCallsDialog(bool all_flows = false);
|
|
|
|
void on_actionTelephonyVoipCalls_triggered();
|
2013-11-21 01:28:17 +00:00
|
|
|
void on_actionTelephonyISUPMessages_triggered();
|
2015-01-15 01:25:56 +00:00
|
|
|
void on_actionTelephonyRTPStreams_triggered();
|
2013-11-21 01:28:17 +00:00
|
|
|
void on_actionTelephonyRTSPPacketCounter_triggered();
|
|
|
|
void on_actionTelephonySMPPOperations_triggered();
|
|
|
|
void on_actionTelephonyUCPMessages_triggered();
|
2014-11-19 00:21:42 +00:00
|
|
|
void on_actionTelephonySipFlows_triggered();
|
2014-06-16 22:20:16 +00:00
|
|
|
|
2015-01-22 11:27:23 +00:00
|
|
|
void on_actionATT_Server_Attributes_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:
|
|
|
|
*/
|