aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/stats_tree_dialog.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2015-06-08 11:33:16 -0700
committerGerald Combs <gerald@wireshark.org>2015-06-08 19:51:34 +0000
commit2d863b9782f19e0821cacfbf6c7ab17fa1183317 (patch)
treea402d791b8411dc33135b5e78b296b2158b2fcfb /ui/qt/stats_tree_dialog.h
parent2533889f3c0116d64f374eab5677876c5366d134 (diff)
Add TapParameterDialog.
Split StatsTreeDialog into StatsTreeDialog and TapParameterDialog (its base class). This more closely matches the GTK+ UI and paves the way for more statistics dialogs. Change-Id: I2630385534e829d99724673ade372fcb33200d07 Reviewed-on: https://code.wireshark.org/review/8842 Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/stats_tree_dialog.h')
-rw-r--r--ui/qt/stats_tree_dialog.h24
1 files changed, 5 insertions, 19 deletions
diff --git a/ui/qt/stats_tree_dialog.h b/ui/qt/stats_tree_dialog.h
index 8e040338b9..59cf812a15 100644
--- a/ui/qt/stats_tree_dialog.h
+++ b/ui/qt/stats_tree_dialog.h
@@ -22,24 +22,19 @@
#ifndef STATS_TREE_DIALOG_H
#define STATS_TREE_DIALOG_H
+#include "tap_parameter_dialog.h"
+
#include <config.h>
#include <glib.h>
#include "epan/stats_tree_priv.h"
-#include "wireshark_dialog.h"
-
-namespace Ui {
-class StatsTreeDialog;
-class StatsTreeWidgetItem;
-}
-
struct _tree_cfg_pres {
class StatsTreeDialog* st_dlg;
};
-class StatsTreeDialog : public WiresharkDialog
+class StatsTreeDialog : public TapParameterDialog
{
Q_OBJECT
@@ -48,24 +43,15 @@ public:
~StatsTreeDialog();
static void setupNode(stat_node* node);
-public slots:
-
private:
- Ui::StatsTreeDialog *ui;
-
struct _tree_cfg_pres cfg_pr_;
stats_tree *st_;
stats_tree_cfg *st_cfg_;
- void fillTree();
+ virtual void fillTree();
static void resetTap(void *st_ptr);
static void drawTreeItems(void *st_ptr);
-
-private slots:
- void updateWidgets();
- void on_applyFilterButton_clicked();
- void on_actionCopyToClipboard_triggered();
- void on_actionSaveAs_triggered();
+ virtual QByteArray getTreeAsString(st_format_type format);
};
#endif // STATS_TREE_DIALOG_H