summaryrefslogtreecommitdiff
path: root/ui/qt/color_utils.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2015-03-11 15:22:20 -0700
committerAnders Broman <a.broman58@gmail.com>2015-05-08 04:29:59 +0000
commitf77e02ccc62c9283eefba416efbb2f94e460066e (patch)
tree40aa62ed6f8c03e22cdc636e2335f3b810810b65 /ui/qt/color_utils.h
parent3d7ff97e4fa9211a064acbac0ec0c025a164d69e (diff)
downloadwireshark-f77e02ccc62c9283eefba416efbb2f94e460066e.tar.gz
Expert Info dialog.
Show all expert messages in a combined view. Group top-level items by a (severity, group, protocol) tuple. Let the user enable and disable messages via a check menu. Add ProtoTree::goToField and expert_info_t.hf_index. Use them to jump to what we hope is the afflicted item. Enable the context menu only if the user has selected a packet item. Add a free-form search field that matches expert summaries. This differs from the GTK+ version but hopefully provides a smoother workflow. Bug: 10931 Change-Id: Ia12cb7c27cdea1634fa2798fb7e4c1b23bd16ad2 Reviewed-on: https://code.wireshark.org/review/8294 Reviewed-by: Gerald Combs <gerald@wireshark.org> Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'ui/qt/color_utils.h')
-rw-r--r--ui/qt/color_utils.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/ui/qt/color_utils.h b/ui/qt/color_utils.h
index aa74adcfaf..6d5a872106 100644
--- a/ui/qt/color_utils.h
+++ b/ui/qt/color_utils.h
@@ -44,6 +44,15 @@ public:
static QRgb alphaBlend(const QColor &color1, const QColor &color2, qreal alpha);
static QRgb alphaBlend(const QBrush &brush1, const QBrush &brush2, qreal alpha);
+ // ...because they don't really fit anywhere else?
+ static const QColor expert_color_comment; /* green */
+ static const QColor expert_color_chat; /* light blue */
+ static const QColor expert_color_note; /* bright turquoise */
+ static const QColor expert_color_warn; /* yellow */
+ static const QColor expert_color_error; /* pale red */
+ static const QColor expert_color_foreground; /* black */
+ static const QColor hidden_proto_item; /* gray */
+
signals:
public slots: