summaryrefslogtreecommitdiff
path: root/ui/qt/main_window.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2014-07-09 10:50:51 -0700
committerGerald Combs <gerald@wireshark.org>2014-07-11 20:52:10 +0000
commitd1d88f575d58bad338e5760eac62c981cf4753a3 (patch)
treeeef0e833a31bcbbebf6bc3541af392489f578ac4 /ui/qt/main_window.h
parent14f943403aa57e2bfaa77df28a4ac23670e474b3 (diff)
downloadwireshark-d1d88f575d58bad338e5760eac62c981cf4753a3.tar.gz
Add plumbing for stat commands ("-z ...").
Trigger dialog creation by passing a method name to QMetaObject::invokeMethod. I'm not entirely sure this is sane but it seems to work OK. Move getopt processing further down in the main initialization sequence to more closely match GTK+ and allow for stat command registration. Change-Id: I5cd5375fa71dbadac69d528b2ba3bb13598dc3f6 Reviewed-on: https://code.wireshark.org/review/2964 Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/main_window.h')
-rw-r--r--ui/qt/main_window.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/ui/qt/main_window.h b/ui/qt/main_window.h
index 4fa4ae8580..725eb5b409 100644
--- a/ui/qt/main_window.h
+++ b/ui/qt/main_window.h
@@ -212,6 +212,13 @@ private slots:
void addDisplayFilterButton(QString df_text);
void displayFilterButtonClicked();
+ /** Pass stat cmd arguments to a slot.
+ * @param slot Partial slot name, e.g. "StatisticsIOGraph".
+ * @param "-z" argument, e.g. "io,stat".
+ * @param userdata Optional user data.
+ */
+ void openStatCommandDialog(const QString &menu_path, const char *arg, void *userdata);
+
// We should probably move these to main_window_actions.cpp similar to
// gtk/main_menubar.c
void on_actionFileOpen_triggered();
@@ -366,6 +373,7 @@ private slots:
void on_actionStatisticsHTTPRequests_triggered();
void on_actionStatisticsHTTPLoadDistribution_triggered();
void on_actionStatisticsPacketLen_triggered();
+ void statCommandIOGraph(const char *arg = NULL, void *userdata = NULL);
void on_actionStatisticsIOGraph_triggered();
void on_actionStatisticsSametime_triggered();