diff options
author | Gerald Combs <gerald@wireshark.org> | 2016-02-23 10:04:16 -0800 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2016-02-26 17:28:04 +0000 |
commit | 070fc33e8501168debf879b9068da5da8e6445d6 (patch) | |
tree | b502f9c492f44ffe73f386dfdf9ea584f1178729 /ui/qt/capture_filter_edit.h | |
parent | 10358a2f14a69fbbf0e3042429399e4934a79674 (diff) | |
download | wireshark-070fc33e8501168debf879b9068da5da8e6445d6.tar.gz |
Qt: Update selected interface filter behavior.
Change the selected interface behavior in the main window and the
capture interfaces dialog to better handle multiple selections. Attempt
to document this at the top of interface_tree.cpp.
Move the default capture filter code from CaptureFilterEdit to
MainWelcome. Add a "conflicting filter" check to CaptureEdit which
updates the placeholder text.
Handle conflicting filters in the main welcome screen and the capture
interfaces dialog. Propagate interface selections and filter updates in
the capture interfaces dialog to the main welcome screen.
Consolidate some of the interface handling code in InterfaceTree and
CaptureInterfacesDialog.
Make sure CaptureInterfacesDialog manages the global capture options by
device name instead numeric index.
Start deprecating prefs.capture_devices_filter and
capture_dev_user_cfilter_find.
Change some member function names so that they're hopefully more clear
and consistent.
Ping-Bug: 11886
Change-Id: I63b06dbae29c2c45ee9252092ad54bdcbacae6e6
Reviewed-on: https://code.wireshark.org/review/14129
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/capture_filter_edit.h')
-rw-r--r-- | ui/qt/capture_filter_edit.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ui/qt/capture_filter_edit.h b/ui/qt/capture_filter_edit.h index bb9daf6232..df3c1eb362 100644 --- a/ui/qt/capture_filter_edit.h +++ b/ui/qt/capture_filter_edit.h @@ -34,6 +34,11 @@ class CaptureFilterEdit : public SyntaxLineEdit Q_OBJECT public: explicit CaptureFilterEdit(QWidget *parent = 0, bool plain = false); + void setConflict(bool conflict = false); + // No selections: (QString(), false) + // Selections, same filter: (filter, false) + // Selections, different filters (QString(), true) + static QPair<const QString, bool> getSelectedFilter(); protected: void paintEvent(QPaintEvent *evt); @@ -50,7 +55,6 @@ public slots: void prepareFilter(); private slots: - void initCaptureFilter(); void applyCaptureFilter(); void checkFilter(const QString &filter); void setFilterSyntaxState(QString filter, int state, QString err_msg); |