From d564ea9bea6ba07ac601ca555609677b498845dd Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Fri, 10 Jul 2015 16:15:55 -0700 Subject: Qt: Add Colorize Conversation menu items. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add the "View→Colorize Conversation" menu similar to the GTK+ UI. Add the "Reset" item under the "Colorize Conversation" menu instead of the top-level "View" menu. Make sure the "Reset" shortcut is Ctrl+Space even on OS X. Normally Qt would convert it to Cmd+Space, but that's used by Spotlight. Add StockIcon::colorIcon and use it to create filled square icons. Change-Id: I2af9e26d025cdaf97482422bbb9440e28e18d1ac Reviewed-on: https://code.wireshark.org/review/9595 Petri-Dish: Gerald Combs Tested-by: Petri Dish Buildbot Reviewed-by: Gerald Combs --- color_filters.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'color_filters.h') diff --git a/color_filters.h b/color_filters.h index 098d1c5833..04aafc87ec 100644 --- a/color_filters.h +++ b/color_filters.h @@ -87,6 +87,14 @@ color_filters_enable(gboolean enable); void color_filters_set_tmp(guint8 filt_nr, const gchar *filter, gboolean disabled); +/** Get a temporary color filter. + * + * @param filter_num A number from 1 to 10 specifying the color to fetch. + * @return The corresponding color or NULL. + */ +const color_filter_t * +color_filters_tmp_color(guint8 filter_num); + /** Reset the temporary color filters * */ -- cgit v1.2.1