Received: from eggs.gnu.org ([2001:4830:134:3::10]:59597) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YBTHE-0004N9-RM for qemu-devel@nongnu.org; Wed, 14 Jan 2015 14:06:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YBTHA-0006F7-QY for qemu-devel@nongnu.org; Wed, 14 Jan 2015 14:06:48 -0500 Received: from mail-qa0-x22b.google.com ([2607:f8b0:400d:c00::22b]:56855) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YBTHA-0006F1-L7 for qemu-devel@nongnu.org; Wed, 14 Jan 2015 14:06:44 -0500 Received: by mail-qa0-f43.google.com with SMTP id v10so8021165qac.2 for ; Wed, 14 Jan 2015 11:06:44 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Programmingkid In-Reply-To: Date: Wed, 14 Jan 2015 14:06:41 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: <331F475D-CF41-47E3-B519-BA99AD37D6AE@gmail.com> References: <1B8AA8D9-61F0-4FE2-A0DF-A3321FBD72AB@gmail.com> <0FFE82CE-80F6-41BD-8AFF-F63500FFF8AD@gmail.com> Subject: Re: [Qemu-devel] [PATCH] Machine menu patch for Mac OS X List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: qemu-devel qemu-devel On Jan 14, 2015, at 1:42 PM, Peter Maydell wrote: > On 14 January 2015 at 18:34, Programmingkid = wrote: >>=20 >> On Jan 14, 2015, at 12:42 PM, Peter Maydell wrote: >>=20 >>> On 13 January 2015 at 01:49, Programmingkid = wrote: >>>> This patch adds a Machine menu to QEMU. This menu gives the user = the ability to easily work with floppy and CD image files. >>>>=20 >>>> Features: >>>> Menu items to switch floppy and CD image files. >>>> Menu items to eject floppy and CD image files. >>>> Menu item to use /dev/cdrom. >>>> Verifies with the user before quitting QEMU by displaying a dialog = box. >>>>=20 >>>> Signed-off-by: John Arbuckle >>>=20 >>> Hi. I'm afraid I couldn't get this patch to apply -- is it dependent >>> on one of your other patches? >>=20 >> I have been making a lot of changes to cocoa.m. Can you suggest a way >> to make these changes not interfere with each other? >=20 > It can be hard to avoid in that kind of situation. Sometimes the > best you can do is just to say which patches it depends on. That sounds like a good idea. >=20 >=20 >>> Isn't this changing of the title string going to conflict with the >>> changes that we make for mouse grab/ungrab? >>=20 >> Unfortunately yes, but I still need a way to alert the user that QEMU >> is paused. I guess I could find a way to make both messages show up >> in the titlebar. Or I could display a message in the main window that >> says "Paused". Will come up with something soon. >=20 > ui/gtk.c has a 'gd_update_caption()' function which sets the title > string as appropriate for the current situation; that is then called > from the places which change the UI state. That's probably as good > an approach as any. I was thinking about displaying the word "Paused" behind the darked QEMU = window. The "Paused" will be in big letters - maybe in a red color.=20 >=20 >>> You don't know that the machine being emulated has a floppy drive >>> at all, or that it's called "floppy0"... >>=20 >> I did only use the PC and Mac targets. I know there are others. It = looks >> like conditionally adding some of these menu items will have to do. I >> guess detecting if the guest machine has a floppy and/or cdrom drive = can >> be done - hopefully... >=20 > It's not impossible. But none of the other UIs are trying to do that > kind of thing yet; I'd suggest postponing those parts. Bringing the > OSX UI into line with features already implementing in another UI > is simpler than adding features no other UI has, because you're not > trying to break new ground. I think innovation is exactly what QEMU needs. If everyone is waiting = for someone else to make the first move, we all remain stuck.=20 >=20 >>> In the GTK UI we call this "Reset". We also have a "Power Down" = which would >>> probably be nice for consistency. >>=20 >> Changing Restart to Reset will be done. I don't know how to >> implement "Power Down", so I'm not sure about that one. >=20 > It's easy: just call qmp_system_powerdown(NULL). Ok, is that something that tells the guest operating system it is to = shut down? >=20 >> Do you think anyone will ever make SDL or GTK UIs for QEMU work >> on Mac OS X? >=20 > Hard to say. I won't, because I don't have the GTK dependencies > available to me. And there don't really seem to be any other > developers trying to work with QEMU on OSX except you. > It should be possible in theory to get SDL or GTK UIs working, > but you'd have to fix up places where the cocoa UI assumes > it's always present, I expect. Ok, which one is better - SDL, or GTK? If someone ever decided to port = one of these UIs to Mac OS X, which one should that person work on?