From 78266fe17eb7cf0cc6e793d2202a716fdeb77e4b Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Fri, 22 Nov 2013 01:07:36 +0000 Subject: Add an initial "Decode As" dialog. Currently read-only. Fixup some of the Statistics menu items. svn path=/trunk/; revision=53499 --- ui/qt/decode_as_dialog.h | 76 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 ui/qt/decode_as_dialog.h (limited to 'ui/qt/decode_as_dialog.h') diff --git a/ui/qt/decode_as_dialog.h b/ui/qt/decode_as_dialog.h new file mode 100644 index 0000000000..207214355a --- /dev/null +++ b/ui/qt/decode_as_dialog.h @@ -0,0 +1,76 @@ +/* stats_tree_dialog.h + * + * $Id$ + * + * Wireshark - Network traffic analyzer + * By Gerald Combs + * 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 + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +#ifndef DECODE_AS_DIALOG_H +#define DECODE_AS_DIALOG_H + +#include "config.h" + +#include + +#include "cfile.h" + +#include + +namespace Ui { +class DecodeAsDialog; +} + +class DecodeAsDialog : public QDialog +{ + Q_OBJECT + +public: + explicit DecodeAsDialog(QWidget *parent = 0, capture_file *cf = NULL); + ~DecodeAsDialog(); + +public slots: + void setCaptureFile(capture_file *cf); + +private: + Ui::DecodeAsDialog *ui; + + capture_file *cap_file_; + + static void buildChangedList(const gchar *table_name, ftenum_t selector_type, + gpointer key, gpointer value, gpointer user_data); + static void buildDceRpcChangedList(gpointer data, gpointer user_data); + +private slots: + void fillTable(); +}; + +#endif // DECODE_AS_DIALOG_H + +/* + * 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: + */ -- cgit v1.2.3