History | View | Annotate | Download (39.1 kB)
ui/cocoa: Add ".qcow2" to extension list for image load dialog
Add ".qcow2" to the list of file extensions which are acceptedby the initial disk image load dialog which is displayed if theuser runs QEMU without any command line arguments.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>...
ui/cocoa: Fix code for starting QEMU via image file load dialog
Fix a number of bugs in the code for starting QEMU via the imagefile load dialog: * use the actual argv0 rather than "qemu": this avoids failures to find BIOS image files caused by not looking in the correct directory...
ui/cocoa: Redraw at correct size when switching surface
If the surface switch involved a resize, we were doing the redrawat the old size rather than the new, because the update ofscreen.width and screen.height was being done after the setFramemethod calls which triggered a redraw. Normally this isn't very...
ui/cocoa: Draw black rectangle if we have no data yet
If our redraw method is called before we have any data from the guest,then draw a black rectangle rather than leaving the window empty.This mostly only matters when the guest machine has no framebuffer...
ui/cocoa: Remove stray tabs
The ui/cocoa.m file has just three lines with hardcoded tabs; fix them.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>Reviewed-by: Stefan Weil <sw@weilnetz.de>Message-id: 1387886052-27067-1-git-send-email-peter.maydell@linaro.org
ui/cocoa: Send warning message to stderr, not stdout
Bring a warning message into line with the others in this file bysending it to stderr, not stdout.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>Message-id: 1386543546-31919-4-git-send-email-peter.maydell@linaro.org
ui/cocoa: Pass command key through to guest when VM has mousegrab
The guest might want to be able to use the command key for its wonpurposes (as command if it is MacOS X, or for the Windows key ifit is a PC guest, for instance). In line with other UI frontends,...
ui/cocoa: Correct typos in comments and variable names
Fix various non-user-visible typos in comments and variable names.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>Reviewed-by: Stefan Weil <sw@weilnetz.de>Message-id: 1386543546-31919-3-git-send-email-peter.maydell@linaro.org
ui/cocoa: Use macro ARRAY_SIZE where possible
This improves readability and simplifies the code.
Cc: Andreas Färber <andreas.faerber@web.de>Cc: Anthony Liguori <aliguori@amazon.com>Signed-off-by: Stefan Weil <sw@weilnetz.de>Reviewed-by: Peter Maydell <peter.maydell@linaro.org>...
cocoa: Avoid deprecated NSOpenPanel beginSheetForDirectory
In MacOSX 10.6 and above the NSOpenPanel beginSheetForDirectorymethod is deprecated. Use the preferred replacements instead.We retain the original code for use on earlier MacOSX versionsbecause the replacement methods don't exist before 10.6....
cocoa: Avoid deprecated NSOpenPanel filename method
Avoid the NSOpenPanel filename method (deprecated in MacOSX 10.6)in favour of using the URL method and extracting the path from theresulting NSUrl object.
cocoa: Avoid deprecated CPS* functions
The functions CPSGetCurrentProcess and CPSEnableForegroundOperationare deprecated in newer versions of MacOSX and cause warning messagesto be logged to the system log. Instead, use the new preferred methodof promoting our console process up to a graphical app with menubar...
cocoa: Fix leaks of NSScreen and NSConcreteMapTable
On MacOSX 10.8 QEMU provokes system log messages:11/03/2013 17:03:29.998 qemu-system-arm42586: objc42586: Object0x7ffbf9c2f3b0 of class NSScreen autoreleased with no pool in place - justleaking - break on objc_autoreleaseNoPool() to debug...
console: zap ds arg from register_displaychangelistener
We don't have multiple DisplayStates any more,so passing it in as argument is not needed.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/cocoa.m: Fix recent compile breakage
Fix failures to compile introduced by recent console commits1dbfa00503, 81c0d5a6) which removed is_graphic_console() andvga_hw_update() without updating the cocoa UI backend to match.
ui/cocoa.m: Fix compile failures introduced by recent console changes
Fix various compilation failures introduced by the recent consolechanges.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>Message-id: 1363638501-29603-1-git-send-email-peter.maydell@linaro.org...
cocoa: stop using DisplayState
Rework DisplayStateListener callbacks to not use the DisplayStateany more.
console: zap displaystate from dcl callbacks
Now that nobody depends on DisplayState in DisplayChangeListenercallbacks any more we can remove the parameter from all callbacks.
console: fix displaychangelisteners interface
Split callbacks into separate Ops struct. Pass DisplayChangeListenerpointer as first argument to all callbacks. Uninline a bunch ofdisplay functions and move them from console.h to console.c
console: rework DisplaySurface handling [dcl/ui side]
Replace the dpy_gfx_resize and dpy_gfx_setdata DisplayChangeListenercallbacks with a dpy_gfx_switch callback which notifies the ui codewhen the framebuffer backing storage changes.
cocoa: Replace non-portable asprintf() by g_strdup_printf()
Signed-off-by: Stefan Weil <sw@weilnetz.de>Signed-off-by: Andreas Färber <andreas.faerber@web.de>
cocoa: Fix VBE function Set Display Start
Register a dpy_gfx_setdata callback so that the Cocoa codeis notified whenever the screen start address changes.
Commit 1d3323d has a similar fix for the VNC UI.
Signed-off-by: Henry Harrington <henry.harrington@gmail.com>...
softmmu: move include files to include/sysemu/
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
ui: move files to ui/ and include/ui/
ui/cocoa.m: Update to new DisplayChangeListener member names
Commit a93a4a2 changed the names of some fields in DisplayChangeListenerand broke compilation of the cocoa UI. Update to the new names.
Acked-by: Gerd Hoffmann <kraxel@redhat.com>Reviewed-by: Andreas Färber <andreas.faerber@web.de>...
cocoa: Suppress Cocoa frontend for -qtest
Signed-off-by: Andreas Färber <andreas.faerber@web.de>
Replace Qemu by QEMU in comments
The official spelling is QEMU.
Signed-off-by: Stefan Weil <sw@weilnetz.de>Reviewed-by: Andreas Färber <afaerber@suse.de>[blauwirbel@gmail.com: fixed comment style in hw/sun4m.c]Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
cocoa: Close sheet after image file selection
If no disk image is specified, the Cocoa frontend displays a modal sheetto let the user select an image file to boot from.
This sheet is never closed and it permanently obscures the emulator window.
Close it after obtaining the file name in case the user did select a file....
Convert last qemu_free and qemu_malloc uses
7267c0947d7e8ae5dff7bafd932c3bc285f43e5c misseda few cases, fix them.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
cocoa: Provide central qemu_main() prototype
This fixes a missing prototype warning in vl.c and obsoletesthe prototype in cocoa.m. Adjust callers in cocoa.m to supplythird argument, which is currently only used on Linux/ppc.
The prototype is designed so that it could be shared with SDL...
cocoa: Avoid warning related to multiple handleEvent: definitions
Avoid compiler confusion as to which method signature to use for thehandleEvent: selector on OSX >= 10.6 by making the variable type-safeas opposed to generic 'id' type.Requires moving the variable definition to after the class definition....
Cocoa: avoid displaying window when command-line contains '-h' or '-help'
There was already a check in place to avoid displaying a windowin certain modes such as vnc, nographic or curses.
Add a check for '-h' and '-help' to avoid displaying a window for a split-...
cocoa: do not create a spurious window for -version
When invoked with -version, qemu will exit just after displaying the version,so there is no need to create a window.Also handles --XXX options.
Signed-off-by: Tristan Gingold <gingold@adacore.com>Signed-off-by: Andreas Färber <andreas.faerber@web.de>
Delete useless 'extern' qualifiers for functions
'extern' qualifier is useless for function declarations. Deletethem.
ui: move all ui components in ui/
Move sdl, vnc, curses and cocoa UI into ui/ to cleanupthe root directory. Also remove some unnecessary explicittargets from Makefile.
aliguori: fix build when srcdir != objdir
Signed-off-by: Corentin Chary <corentincj@iksaif.net>...