10#ifndef FILTER_DIALOG_H
11#define FILTER_DIALOG_H
17#include <QStyledItemDelegate>
76 void addFilter(QString name, QString filter,
bool start_editing =
false);
89 void selectionChanged(
const QItemSelection &selected,
const QItemSelection &deselected);
94 void on_newToolButton_clicked();
99 void on_deleteToolButton_clicked();
104 void on_copyToolButton_clicked();
109 void on_buttonBox_accepted();
114 void on_buttonBox_helpRequested();
139 virtual QWidget *
createEditor(QWidget *parent,
const QStyleOptionViewItem &option,
const QModelIndex &index)
const override;
146 virtual void setEditorData(QWidget *editor,
const QModelIndex &index)
const override;
169 virtual QValidator::State
validate(QString &
input,
int & pos)
const override;
184 virtual QValidator::State
validate(QString &
input,
int & pos)
const override;
A validator for filter strings used by the FilterDialog fields.
Definition filter_dialog.h:161
virtual QValidator::State validate(QString &input, int &pos) const override
Validates the input filter string.
Definition filter_dialog.cpp:294
~FilterDialog()
Destroys the FilterDialog.
Definition filter_dialog.cpp:107
FilterDialog(QWidget *parent=0, FilterType filter_type=CaptureFilter, const QString new_filter=QString())
Constructs a new FilterDialog.
Definition filter_dialog.cpp:30
FilterType
Defines the type of filter being managed by the dialog.
Definition filter_dialog.h:38
@ DisplayFilter
Definition filter_dialog.h:40
@ DisplayMacro
Definition filter_dialog.h:41
@ CaptureFilter
Definition filter_dialog.h:39
A list model for managing capture filters, display filters, and display macros.
Definition filter_list_model.h:25
Delegate for editing capture and display filters.
Definition filter_dialog.h:121
virtual void setEditorData(QWidget *editor, const QModelIndex &index) const override
Sets the data in the editor from the model.
Definition filter_dialog.cpp:283
FilterTreeDelegate(QObject *parent, FilterDialog::FilterType filter_type)
Constructs a new FilterTreeDelegate.
Definition filter_dialog.cpp:244
virtual QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override
Creates the editor widget for a specific item.
Definition filter_dialog.cpp:249
GeometryStateDialog(QWidget *parent, Qt::WindowFlags f=Qt::Window)
Constructs a new GeometryStateDialog with the specified parent and window flags.
Definition geometry_state_dialog.h:91
A validator for macro names.
Definition filter_dialog.h:176
virtual QValidator::State validate(QString &input, int &pos) const override
Validates the input macro name.
Definition filter_dialog.cpp:309