From: Peter Maydell <peter.maydell@linaro.org>
To: Programmingkid <programmingkidx@gmail.com>
Cc: QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH v3] ui/cocoa.m: Adds console items to the View menu
Date: Sun, 10 May 2015 20:27:46 +0100 [thread overview]
Message-ID: <CAFEAcA8-R03ZSZkn=X67VykLAnHC1PUuQWt3VTTu889=vsAXeA@mail.gmail.com> (raw)
In-Reply-To: <6B2F4FEE-33BA-45A5-97E1-09213E2AF1E6@gmail.com>
On 14 February 2015 at 15:50, Programmingkid <programmingkidx@gmail.com> wrote:
> Adds these items to the View menu:
> VGA
> Monitor
> Serial
> Parallel
>
> Signed-off-by: John Arbuckle <programmingkidx@gmail.com>
> +// Creates the view menu
> +static void create_view_menu()
> +{
> + NSMenu * menu;
> + NSMenuItem * menuItem;
> + menu = [[NSMenu alloc] initWithTitle:@"View"];
> + [menu addItem: [[[NSMenuItem alloc] initWithTitle:@"Enter Fullscreen"
> action:@selector(toggleFullScreen:) keyEquivalent:@"f"] autorelease]]; //
> Fullscreen
> + [menu addItem:[NSMenuItem separatorItem]]; //Separator
> + if(get_console_index("graphic") != -1)
> + [menu addItem: [[[NSMenuItem alloc] initWithTitle:@"VGA"
> action:@selector(displayVGA:) keyEquivalent:@""] autorelease]]; // VGA
> + if(get_console_index("monitor") != -1)
> + [menu addItem: [[[NSMenuItem alloc] initWithTitle:@"QEMU Monitor"
> action:@selector(displayMonitor:) keyEquivalent:@""] autorelease]]; // QEMU
> Monitor
> + if (get_console_index("serial") != -1)
> + [menu addItem: [[[NSMenuItem alloc] initWithTitle:@"Serial"
> action:@selector(displaySerial:) keyEquivalent:@""] autorelease]]; // Serial
> + if(get_console_index("parallel") != -1)
> + [menu addItem: [[[NSMenuItem alloc] initWithTitle:@"Parallel"
> action:@selector(displayParallel:) keyEquivalent:@""] autorelease]]; //
> Parallel
> + menuItem = [[[NSMenuItem alloc] initWithTitle:@"View" action:nil
> keyEquivalent:@""] autorelease];
> + [menuItem setSubmenu:menu];
> + [[NSApp mainMenu] insertItem: menuItem atIndex: 1]; // insert View menu
> after Application menu
> +}
> +
This patch needs to be reworked to use the new qemu_console_get_label(),
right?
thanks
-- PMM
prev parent reply other threads:[~2015-05-10 19:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.390.1423904003.31050.qemu-devel@nongnu.org>
2015-02-14 15:50 ` [Qemu-devel] [PATCH v3] ui/cocoa.m: Adds console items to the View menu Programmingkid
2015-05-10 19:27 ` Peter Maydell [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAFEAcA8-R03ZSZkn=X67VykLAnHC1PUuQWt3VTTu889=vsAXeA@mail.gmail.com' \
--to=peter.maydell@linaro.org \
--cc=programmingkidx@gmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).