summaryrefslogtreecommitdiff
path: root/ui/qt
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2015-12-28 16:31:06 -0800
committerGuy Harris <guy@alum.mit.edu>2015-12-29 00:31:37 +0000
commit9067ee8f5a9d986efdc2fb7da9cd8f39017af129 (patch)
tree8a962e93c3904ef417ae8e5183e814d9d733fbf1 /ui/qt
parent0c156fec93e31a8d80653e0288925acf2275111e (diff)
downloadwireshark-9067ee8f5a9d986efdc2fb7da9cd8f39017af129.tar.gz
Rename new_stat_tap_ui to stat_tap_table_ui.
A "new" statistics tap UI is a statistics tap UI where the statistics are maintained as tables and common code handles the tables; what matters is the tables, not that it's "new". Change-Id: I7a0e63cfac98c24cd5e7dce973b9a0cc5b6a03ba Reviewed-on: https://code.wireshark.org/review/12897 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui/qt')
-rw-r--r--ui/qt/simple_statistics_dialog.cpp8
-rw-r--r--ui/qt/simple_statistics_dialog.h6
2 files changed, 7 insertions, 7 deletions
diff --git a/ui/qt/simple_statistics_dialog.cpp b/ui/qt/simple_statistics_dialog.cpp
index 2ea4a27aec..a950482045 100644
--- a/ui/qt/simple_statistics_dialog.cpp
+++ b/ui/qt/simple_statistics_dialog.cpp
@@ -32,7 +32,7 @@
// To do:
// - Hide rows with zero counts.
-static QHash<const QString, new_stat_tap_ui *> cfg_str_to_stu_;
+static QHash<const QString, stat_tap_table_ui *> cfg_str_to_stu_;
extern "C" {
static void
@@ -50,7 +50,7 @@ simple_stat_init(const char *args, void*) {
}
void register_simple_stat_tables(gpointer data, gpointer) {
- new_stat_tap_ui *stu = (new_stat_tap_ui*)data;
+ stat_tap_table_ui *stu = (stat_tap_table_ui*)data;
cfg_str_to_stu_[stu->cli_string] = stu;
TapParameterDialog::registerDialog(
@@ -154,7 +154,7 @@ private:
const stat_tap_table_item_type *fields_;
};
-SimpleStatisticsDialog::SimpleStatisticsDialog(QWidget &parent, CaptureFile &cf, struct _new_stat_tap_ui *stu, const QString filter, int help_topic) :
+SimpleStatisticsDialog::SimpleStatisticsDialog(QWidget &parent, CaptureFile &cf, struct _stat_tap_table_ui *stu, const QString filter, int help_topic) :
TapParameterDialog(parent, cf, help_topic),
stu_(stu)
{
@@ -182,7 +182,7 @@ TapParameterDialog *SimpleStatisticsDialog::createSimpleStatisticsDialog(QWidget
return NULL;
}
- new_stat_tap_ui *stu = cfg_str_to_stu_[cfg_str];
+ stat_tap_table_ui *stu = cfg_str_to_stu_[cfg_str];
return new SimpleStatisticsDialog(parent, cf, stu, filter);
}
diff --git a/ui/qt/simple_statistics_dialog.h b/ui/qt/simple_statistics_dialog.h
index 5513112d9e..47d1388514 100644
--- a/ui/qt/simple_statistics_dialog.h
+++ b/ui/qt/simple_statistics_dialog.h
@@ -31,7 +31,7 @@ class SimpleStatisticsDialog : public TapParameterDialog
Q_OBJECT
public:
- SimpleStatisticsDialog(QWidget &parent, CaptureFile &cf, struct _new_stat_tap_ui *stu, const QString filter, int help_topic = 0);
+ SimpleStatisticsDialog(QWidget &parent, CaptureFile &cf, struct _stat_tap_table_ui *stu, const QString filter, int help_topic = 0);
static TapParameterDialog *createSimpleStatisticsDialog(QWidget &parent, const QString cfg_str, const QString filter, CaptureFile &cf);
protected:
@@ -43,7 +43,7 @@ protected:
void addMissingRows(struct _new_stat_data_t *stat_data);
private:
- struct _new_stat_tap_ui *stu_;
+ struct _stat_tap_table_ui *stu_;
// Callbacks for register_tap_listener
static void tapReset(void *sd_ptr);
@@ -56,7 +56,7 @@ private slots:
/** Register function to register dissectors that support a "simple" statistics table.
*
- * @param data new_stat_tap_ui* representing dissetor stat table
+ * @param data stat_tap_table_ui* representing dissetor stat table
*/
void register_simple_stat_tables(gpointer data, gpointer);