23#include <QSortFilterProxyModel>
25#include <QWidgetAction>
27#include <QActionGroup>
66 QLineEdit * _lineEdit;
117 GList ** _recentColumnList;
120 QActionGroup * _actions;
130 void headerContextMenu(
const QPoint &pos);
136 void columnTriggered(
bool checked =
false);
142 void menuActionTriggered(QAction * act);
148 void filterColumn(
bool checked =
false);
206 virtual bool filterAcceptsRow(
int source_row,
const QModelIndex &source_parent)
const;
214 virtual bool filterAcceptsColumn(
int source_column,
const QModelIndex &source_parent)
const;
222 virtual bool lessThan(
const QModelIndex &source_left,
const QModelIndex &source_right)
const;
226 QList<int> hideColumns_;
242 int mapToSourceColumn(
int proxyColumn)
const;
273 TrafficTree(QString baseName, GList ** recentColumnList, QWidget *parent =
nullptr);
307 virtual void setModel(QAbstractItemModel *model)
override;
371 QMenu * createActionSubMenu(
FilterAction::Action cur_action, QModelIndex idx,
bool isConversation);
387 void customContextMenu(
const QPoint &pos);
392 void useFilterAction();
397 void clipboardAction();
407 void toggleSaveRawAction();
414 void handleDataChanged(
const QModelIndex &topLeft,
const QModelIndex &bottomRight,
415#
if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
425 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
Proxy model handling sorting, filtering, and column visibility for traffic data.
Definition traffic_tree.h:156
void filterForColumn(int column, int filterOn, QString filterText)
Applies filtering criteria for a specific column.
Definition traffic_tree.cpp:274
virtual bool lessThan(const QModelIndex &source_left, const QModelIndex &source_right) const
Compares two items for sorting.
Definition traffic_tree.cpp:453
virtual bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const
Determines if a row from the source model should be included.
Definition traffic_tree.cpp:323
virtual bool filterAcceptsColumn(int source_column, const QModelIndex &source_parent) const
Determines if a column from the source model should be included.
Definition traffic_tree.cpp:568
bool columnVisible(int column) const
Checks if a column is currently visible.
Definition traffic_tree.cpp:615
void setColumnVisibility(int column, bool visible)
Sets the visibility for a specific column.
Definition traffic_tree.cpp:600
@ TRAFFIC_DATA_GREATER
Filter for values strictly greater than the target.
Definition traffic_tree.h:165
@ TRAFFIC_DATA_EQUAL
Filter for values equal to the target.
Definition traffic_tree.h:167
@ TRAFFIC_DATA_LESS
Filter for values strictly less than the target.
Definition traffic_tree.h:163
Tree view tailored for displaying network traffic conversations and endpoints.
Definition traffic_tree.h:250
virtual void setModel(QAbstractItemModel *model) override
Sets the data model for the tree view.
Definition traffic_tree.cpp:642
void applyRecentColumns()
Applies the recently visible columns configuration.
Definition traffic_tree.cpp:973
void columnsChanged(QList< int > columns)
Slot triggered when columns are changed.
Definition traffic_tree.cpp:979
void widenColumnToContents(int column)
Increase column width if necessary to fit contents, but don't narrow it.
Definition traffic_tree.cpp:848
QMenu * createCopyMenu(QWidget *parent=nullptr)
Create a menu containing clipboard copy entries for this tab.
Definition traffic_tree.cpp:792
void tapListenerEnabled(bool enable)
Enables or disables the tap listener.
Definition traffic_tree.cpp:664
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:258
@ CLIPBOARD_CSV
export as CSV
Definition traffic_tree.h:260
@ CLIPBOARD_YAML
export as YAML
Definition traffic_tree.h:262
@ CLIPBOARD_JSON
export as JSON
Definition traffic_tree.h:264
void columnsHaveChanged(QList< int > columns)
Signal emitted when the visible columns have changed.
void disableTap()
Disables the tap completely.
Definition traffic_tree.cpp:965