A toolbar that displays filter expressions and supports drag-and-drop operations.
More...
#include <filter_expression_toolbar.h>
|
|
void | filterExpressionsChanged () |
| | Slot triggered when the underlying list of filter expressions changes.
|
| |
|
| void | filterSelected (QString filter, bool apply) |
| | Signal emitted when a filter expression is selected.
|
| |
|
void | filterPreferences () |
| | Signal emitted to open the filter preferences dialog.
|
| |
| void | filterEdit (int uatIndex) |
| | Signal emitted to edit a filter expression at a specific index.
|
| |
| void | actionMoved (QAction *action, int oldPos, int newPos) |
| | Signal emitted when an action has been moved via drag and drop.
|
| |
| void | newFilterDropped (QString description, QString filter) |
| | Signal emitted when a new filter is dropped onto the toolbar.
|
| |
|
| void | onCustomMenuHandler (const QPoint &pos) |
| | Handles custom context menu requests on the toolbar.
|
| |
| void | onActionMoved (QAction *action, int oldPos, int newPos) |
| | Slot triggered when an action is dragged and moved within the toolbar.
|
| |
| void | onFilterDropped (QString description, QString filter) |
| | Slot triggered when a filter is dropped onto the toolbar.
|
| |
|
| virtual bool | event (QEvent *event) override |
| | Handles events directed to the toolbar.
|
| |
| virtual bool | eventFilter (QObject *obj, QEvent *ev) override |
| | Filters events for watched objects.
|
| |
| virtual WiresharkMimeData * | createMimeData (QString name, int position) override |
| | Creates MIME data representing a dragged filter expression.
|
| |
| virtual void | childEvent (QChildEvent *event) |
| | Handles child events, such as when widgets are added or removed.
|
| |
| virtual void | dragEnterEvent (QDragEnterEvent *event) |
| | Handles drag enter events to accept valid drop targets.
|
| |
| virtual void | dragMoveEvent (QDragMoveEvent *event) |
| | Handles drag move events for visual feedback during drag operations.
|
| |
| virtual void | dropEvent (QDropEvent *event) |
| | Handles drop events to finalize reordering or add new items.
|
| |
A toolbar that displays filter expressions and supports drag-and-drop operations.
◆ FilterExpressionToolBar()
| FilterExpressionToolBar::FilterExpressionToolBar |
( |
QWidget * |
parent = Q_NULLPTR | ) |
|
|
explicit |
◆ createMimeData()
| WiresharkMimeData * FilterExpressionToolBar::createMimeData |
( |
QString |
name, |
|
|
int |
position |
|
) |
| |
|
overrideprotectedvirtual |
Creates MIME data representing a dragged filter expression.
- Parameters
-
| name | The name of the dragged item. |
| position | The position index of the item. |
- Returns
- A pointer to the created WiresharkMimeData.
Reimplemented from DragDropToolBar.
◆ event()
| bool FilterExpressionToolBar::event |
( |
QEvent * |
event | ) |
|
|
overrideprotectedvirtual |
Handles events directed to the toolbar.
- Parameters
-
| event | The event to process. |
- Returns
- True if the event was handled, false otherwise.
◆ eventFilter()
| bool FilterExpressionToolBar::eventFilter |
( |
QObject * |
obj, |
|
|
QEvent * |
ev |
|
) |
| |
|
overrideprotectedvirtual |
Filters events for watched objects.
- Parameters
-
| obj | The object being filtered. |
| ev | The event to filter. |
- Returns
- True if the event is filtered out, false otherwise.
Reimplemented from DragDropToolBar.
◆ filterEdit
| void FilterExpressionToolBar::filterEdit |
( |
int |
uatIndex | ) |
|
|
signal |
Signal emitted to edit a filter expression at a specific index.
- Parameters
-
| uatIndex | The UAT row index of the filter expression. |
◆ filterSelected
| void FilterExpressionToolBar::filterSelected |
( |
QString |
filter, |
|
|
bool |
apply |
|
) |
| |
|
signal |
Signal emitted when a filter expression is selected.
- Parameters
-
| filter | The filter expression string. |
| apply | True to apply the filter immediately, false to just prepare it. |
◆ onActionMoved
| void FilterExpressionToolBar::onActionMoved |
( |
QAction * |
action, |
|
|
int |
oldPos, |
|
|
int |
newPos |
|
) |
| |
|
protectedslot |
Slot triggered when an action is dragged and moved within the toolbar.
- Parameters
-
| action | The action that was moved. |
| oldPos | The previous position index. |
| newPos | The new position index. |
◆ onCustomMenuHandler
| void FilterExpressionToolBar::onCustomMenuHandler |
( |
const QPoint & |
pos | ) |
|
|
protectedslot |
Handles custom context menu requests on the toolbar.
- Parameters
-
| pos | The position where the context menu was requested. |
◆ onFilterDropped
| void FilterExpressionToolBar::onFilterDropped |
( |
QString |
description, |
|
|
QString |
filter |
|
) |
| |
|
protectedslot |
Slot triggered when a filter is dropped onto the toolbar.
- Parameters
-
| description | The label/description of the dropped filter. |
| filter | The filter expression string. |
The documentation for this class was generated from the following files:
- /builds/wireshark/wireshark/ui/qt/widgets/filter_expression_toolbar.h
- /builds/wireshark/wireshark/ui/qt/widgets/filter_expression_toolbar.cpp