From af7fc8b7e4979e77d2d072789e98d58a0b175908 Mon Sep 17 00:00:00 2001 From: Dario Lombardo Date: Wed, 19 Oct 2016 20:53:40 +0200 Subject: Qt: add fullscreen feature. The feature activates/deactivates fullscreen mode of Qt UI. A new menu item has been added as well as a shortcut (F11 or Ctrl+Cmd+F) according to browsers common shortcut. Change-Id: I01906b494d0a13ce70d27c00ebbe03e6ec87cbd7 Reviewed-on: https://code.wireshark.org/review/18332 Reviewed-by: Peter Wu Petri-Dish: Peter Wu Tested-by: Peter Wu Reviewed-by: Dario Lombardo Tested-by: Petri Dish Buildbot Reviewed-by: Roland Knall --- ui/commandline.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ui/commandline.c') diff --git a/ui/commandline.c b/ui/commandline.c index c75b914ee8..f9c2547d19 100644 --- a/ui/commandline.c +++ b/ui/commandline.c @@ -176,6 +176,7 @@ commandline_print_usage(gboolean for_help_option) { #ifndef _WIN32 fprintf(output, " --display=DISPLAY X display to use\n"); #endif + fprintf(output, " --fullscreen start Wireshark in full screen\n"); #ifdef _WIN32 destroy_console(); @@ -396,6 +397,7 @@ void commandline_other_options(int argc, char *argv[], gboolean opt_reset) global_commandline_info.disable_protocol_slist = NULL; global_commandline_info.enable_heur_slist = NULL; global_commandline_info.disable_heur_slist = NULL; + global_commandline_info.full_screen = FALSE; while ((opt = getopt_long(argc, argv, optstring, long_options, NULL)) != -1) { switch (opt) { @@ -607,6 +609,9 @@ void commandline_other_options(int argc, char *argv[], gboolean opt_reset) case LONGOPT_DISABLE_HEURISTIC: /* disable heuristic dissection of protocol */ global_commandline_info.disable_heur_slist = g_slist_append(global_commandline_info.disable_heur_slist, optarg); break; + case LONGOPT_FULL_SCREEN: + global_commandline_info.full_screen = TRUE; + break; default: case '?': /* Bad flag - print usage message */ arg_error = TRUE; -- cgit v1.2.1