24#include <QSortFilterProxyModel>
26#include <QWidgetAction>
28#include <QActionGroup>
57 virtual QWidget *
createWidget(QWidget *parent)
override;
67 QLineEdit * _lineEdit;
118 GList ** _recentColumnList;
121 QActionGroup * _actions;
131 void headerContextMenu(
const QPoint &pos);
137 void columnTriggered(
bool checked =
false);
143 void menuActionTriggered(QAction * act);
149 void filterColumn(
bool checked =
false);
207 virtual bool filterAcceptsRow(
int source_row,
const QModelIndex &source_parent)
const override;
215 virtual bool filterAcceptsColumn(
int source_column,
const QModelIndex &source_parent)
const override;
223 virtual bool lessThan(
const QModelIndex &source_left,
const QModelIndex &source_right)
const override;
227 QList<int> hideColumns_;
243 int mapToSourceColumn(
int proxyColumn)
const;
274 TrafficTree(QString baseName, GList ** recentColumnList, QWidget *parent =
nullptr);
308 virtual void setModel(QAbstractItemModel *model)
override;
372 QMenu * createActionSubMenu(
FilterAction::Action cur_action, QModelIndex idx,
bool isConversation);
388 void customContextMenu(
const QPoint &pos);
393 void useFilterAction();
398 void clipboardAction();
408 void toggleSaveRawAction();
415 void handleDataChanged(
const QModelIndex &topLeft,
const QModelIndex &bottomRight,
const QList<int>);
420 void handleLayoutChanged(
const QList<QPersistentModelIndex>, QAbstractItemModel::LayoutChangeHint);
DataModel for tap user data.
Definition atap_data_model.h:33
Action
Defines an action to be taken with a filter.
Definition filter_action.h:30
ActionType
Defines how the new filter should be combined with the existing one.
Definition filter_action.h:43
virtual bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const override
Determines if a row from the source model should be included.
Definition traffic_tree.cpp:323
void filterForColumn(int column, int filterOn, QString filterText)
Applies filtering criteria for a specific column.
Definition traffic_tree.cpp:274
@ TRAFFIC_DATA_GREATER
Filter for values strictly greater than the target.
Definition traffic_tree.h:166
@ TRAFFIC_DATA_EQUAL
Filter for values equal to the target.
Definition traffic_tree.h:168
@ TRAFFIC_DATA_LESS
Filter for values strictly less than the target.
Definition traffic_tree.h:164
TrafficDataFilterProxy(QObject *parent=nullptr)
Constructs a new TrafficDataFilterProxy.
Definition traffic_tree.cpp:264
virtual bool lessThan(const QModelIndex &source_left, const QModelIndex &source_right) const override
Compares two items for sorting.
Definition traffic_tree.cpp:379
bool columnVisible(int column) const
Checks if a column is currently visible.
Definition traffic_tree.cpp:541
virtual bool filterAcceptsColumn(int source_column, const QModelIndex &source_parent) const override
Determines if a column from the source model should be included.
Definition traffic_tree.cpp:494
void setColumnVisibility(int column, bool visible)
Sets the visibility for a specific column.
Definition traffic_tree.cpp:526
virtual void setModel(QAbstractItemModel *model) override
Sets the data model for the tree view.
Definition traffic_tree.cpp:568
void applyRecentColumns()
Applies the recently visible columns configuration.
Definition traffic_tree.cpp:893
void columnsChanged(QList< int > columns)
Slot triggered when columns are changed.
Definition traffic_tree.cpp:899
void widenColumnToContents(int column)
Increase column width if necessary to fit contents, but don't narrow it.
Definition traffic_tree.cpp:774
QMenu * createCopyMenu(QWidget *parent=nullptr)
Create a menu containing clipboard copy entries for this tab.
Definition traffic_tree.cpp:718
void tapListenerEnabled(bool enable)
Enables or disables the tap listener.
Definition traffic_tree.cpp:590
void filterAction(QString filter, FilterAction::Action action, FilterAction::ActionType type)
Signal emitted to perform a display filter action.
eTrafficTreeClipboard
Type for the selection of export.
Definition traffic_tree.h:259
@ CLIPBOARD_CSV
export as CSV
Definition traffic_tree.h:261
@ CLIPBOARD_YAML
export as YAML
Definition traffic_tree.h:263
@ CLIPBOARD_JSON
export as JSON
Definition traffic_tree.h:265
TrafficTree(QString baseName, GList **recentColumnList, QWidget *parent=nullptr)
Constructs a new TrafficTree.
Definition traffic_tree.cpp:547
friend class TrafficTreeHeaderView
Definition traffic_tree.h:381
void columnsHaveChanged(QList< int > columns)
Signal emitted when the visible columns have changed.
void disableTap()
Disables the tap completely.
Definition traffic_tree.cpp:885