2015-06-01 23:29:17 +00:00
|
|
|
/* display_filter_expression_dialog.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
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef DISPLAY_FILTER_EXPRESSION_DIALOG_H
|
|
|
|
#define DISPLAY_FILTER_EXPRESSION_DIALOG_H
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
#include <epan/ftypes/ftypes.h>
|
|
|
|
|
2016-02-28 18:23:20 +00:00
|
|
|
#include "geometry_state_dialog.h"
|
2015-06-01 23:29:17 +00:00
|
|
|
|
|
|
|
class QTreeWidgetItem;
|
|
|
|
struct true_false_string;
|
|
|
|
struct _value_string;
|
|
|
|
struct _val64_string;
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class DisplayFilterExpressionDialog;
|
|
|
|
}
|
|
|
|
|
2016-02-28 18:23:20 +00:00
|
|
|
class DisplayFilterExpressionDialog : public GeometryStateDialog
|
2015-06-01 23:29:17 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit DisplayFilterExpressionDialog(QWidget *parent = 0);
|
|
|
|
~DisplayFilterExpressionDialog();
|
|
|
|
|
|
|
|
signals:
|
|
|
|
void insertDisplayFilter(const QString &filter);
|
|
|
|
|
|
|
|
private slots:
|
2016-04-24 21:18:44 +00:00
|
|
|
void fillTree();
|
2015-06-01 23:29:17 +00:00
|
|
|
void updateWidgets();
|
|
|
|
|
|
|
|
void on_fieldTreeWidget_itemSelectionChanged();
|
|
|
|
void on_relationListWidget_itemSelectionChanged();
|
|
|
|
void on_enumListWidget_itemSelectionChanged();
|
|
|
|
void on_searchLineEdit_textChanged(const QString &search_re);
|
|
|
|
void on_buttonBox_accepted();
|
|
|
|
void on_buttonBox_helpRequested();
|
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::DisplayFilterExpressionDialog *ui;
|
|
|
|
void fillEnumBooleanValues(const struct true_false_string *tfs);
|
|
|
|
void fillEnumIntValues(const struct _value_string *vals, int base);
|
|
|
|
void fillEnumInt64Values(const struct _val64_string *vals64, int base);
|
|
|
|
void fillEnumRangeValues(const struct _range_string *rvals);
|
|
|
|
|
|
|
|
enum ftenum ftype_;
|
|
|
|
const char *field_;
|
|
|
|
QString value_label_pfx_;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // DISPLAY_FILTER_EXPRESSION_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:
|
|
|
|
*/
|