| |
Changeset 61
- Timestamp:
- 02/06/07 01:42:04
(2 years ago)
- Author:
- mike
- Message:
[new] support for VM snapshots
[new] VPC7 importer: diskimages are converted to qcow2
[new] qcow replaced by qcow2
[fix] only supported diskimages (i.e. qcow2) prompt with option for saving
[fix] updated OS X Intel Patches for QEMU 0.9.0
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r54 |
r61 |
|
| 33 | 33 | |
|---|
| 34 | 34 | #Q |
|---|
| 35 | | patch -p0 -u < ../../q/patches/q_host-cocoa_01.diff |
|---|
| | 35 | patch -p0 -u < ../../q/patches/q_host-cocoa_02.diff |
|---|
| 36 | 36 | |
|---|
| 37 | 37 | #gcc4 patches |
|---|
| 38 | | patch -p1 -u < ../../q/patches/qemu-0.7.0-gcc4.patch |
|---|
| | 38 | patch -p1 -u < ../../q/patches/qemu-0.9.0-gcc4.patch |
|---|
| 39 | 39 | patch -p1 -u < ../../q/patches/qemu-0.7.2-dyngen-check-stack-clobbers.patch |
|---|
| 40 | 40 | patch -p1 -u < ../../q/patches/qemu-0.7.2-gcc4-opts.patch |
|---|
| … | … | |
| 42 | 42 | |
|---|
| 43 | 43 | #OS X86 patches |
|---|
| 44 | | patch -p1 -u < ../../q/patches/qemu-0.8.0-enforce-16byte-stack-boundary.patch |
|---|
| 45 | | patch -p1 -u -f < ../../q/patches/qemu-0.8.0-i386-FORCE_RET.patch |
|---|
| 46 | | patch -p1 -u < ../../q/patches/qemu-0.8.0-osx-intel-port.patch |
|---|
| | 44 | patch -p1 -u < ../../q/patches/qemu-0.9.0-enforce-16byte-stack-boundary.patch |
|---|
| | 45 | patch -p1 -u -f < ../../q/patches/qemu-0.9.0-i386-FORCE_RET.patch |
|---|
| | 46 | patch -p1 -u < ../../q/patches/qemu-0.9.0-osx-intel-port.patch |
|---|
| 47 | 47 | |
|---|
| 48 | 48 | patch -p1 -u < ../../q/patches/qemu-0.8.0-osx-bugfix.patch |
|---|
| r53 |
r61 |
|
| 35 | 35 | |
|---|
| 36 | 36 | #Q |
|---|
| 37 | | patch -p0 -u < ../../q/patches/q_host-cocoa_01.diff |
|---|
| | 37 | patch -p0 -u < ../../q/patches/q_host-cocoa_02.diff |
|---|
| 38 | 38 | |
|---|
| 39 | 39 | #rgb support for intel |
|---|
| r59 |
r61 |
|
| | 1 | Q-0.9.0d61 |
|---|
| | 2 | [new] support for VM snapshots |
|---|
| | 3 | [new] VPC7 importer: diskimages are converted to qcow2 |
|---|
| | 4 | [new] qcow replaced by qcow2 |
|---|
| | 5 | [fix] only supported diskimages (i.e. qcow2) prompt with option for saving |
|---|
| | 6 | [fix] updated OS X Intel Patches for QEMU 0.9.0 |
|---|
| | 7 | |
|---|
| | 8 | Q-0.8.2d60 |
|---|
| | 9 | [new] Localization: Polish by Krzysztof Nadzieja |
|---|
| | 10 | |
|---|
| 1 | 11 | Q-0.8.2d59 |
|---|
| 2 | 12 | [fix] Quartz: mousegrab released while FS Toolbar is visible |
|---|
| r53 |
r61 |
|
| 2 | 2 | * QEMU Cocoa display driver |
|---|
| 3 | 3 | * |
|---|
| 4 | | * Copyright (c) 2005, 2006 Pierre d'Herbemont |
|---|
| 5 | | * Mike Kronenberg |
|---|
| 6 | | * many code/inspiration from SDL 1.2 code (LGPL) |
|---|
| | 4 | * Copyright (c) 2005 - 2007 Pierre d'Herbemont |
|---|
| | 5 | * Mike Kronenberg |
|---|
| | 6 | * many code/inspiration from SDL 1.2 code (LGPL) |
|---|
| 7 | 7 | * |
|---|
| 8 | 8 | * Permission is hereby granted, free of charge, to any person obtaining a copy |
|---|
| … | … | |
| 37 | 37 | #import <OpenGL/CGLContext.h> |
|---|
| 38 | 38 | |
|---|
| 39 | | #import "vl.h" |
|---|
| | 39 | #import "../vl.h" |
|---|
| 40 | 40 | #import "../../../q/qcontrol/cocoaControlDOServer.h" |
|---|
| 41 | 41 | #import "cocoaQemuProgressWindow.h" |
|---|
| … | … | |
| 62 | 62 | NSTimer *progressWindowTimer; |
|---|
| 63 | 63 | id thisPC; |
|---|
| | 64 | BOOL WMSupportsSnapshots; |
|---|
| 64 | 65 | BOOL WMStopWhenInactive; |
|---|
| 65 | 66 | BOOL wMPausedByUser; |
|---|
| r58 |
r61 |
|
| 2 | 2 | * QEMU Cocoa display driver |
|---|
| 3 | 3 | * |
|---|
| 4 | | * Copyright (c) 2005, 2006 Pierre d'Herbemont |
|---|
| 5 | | * Mike Kronenberg |
|---|
| 6 | | * many code/inspiration from SDL 1.2 code (LGPL) |
|---|
| | 4 | * Copyright (c) 2005 - 2007 Pierre d'Herbemont |
|---|
| | 5 | * Mike Kronenberg |
|---|
| | 6 | * many code/inspiration from SDL 1.2 code (LGPL) |
|---|
| 7 | 7 | * |
|---|
| 8 | 8 | * Permission is hereby granted, free of charge, to any person obtaining a copy |
|---|
| … | … | |
| 93 | 93 | if ((self = [super init])) { |
|---|
| 94 | 94 | /* set allowed filetypes */ |
|---|
| 95 | | fileTypes = [[NSArray arrayWithObjects:@"qcow", @"raw", @"cow", @"vmdk", @"cloop", @"img", @"iso", @"dsk", @"dmg", @"cdr", @"toast", @"flp", @"fs", nil] retain]; |
|---|
| | 95 | fileTypes = [[NSArray arrayWithObjects:@"qcow2", @"qcow", @"raw", @"cow", @"vmdk", @"cloop", @"img", @"iso", @"dsk", @"dmg", @"cdr", @"toast", @"flp", @"fs", nil] retain]; |
|---|
| 96 | 96 | |
|---|
| 97 | 97 | /* pc */ |
|---|
| … | … | |
| 425 | 425 | |
|---|
| 426 | 426 | /* save VM */ |
|---|
| 427 | | qemu_savevm( [[NSString stringWithFormat: @"%@/saved.vm", pcPath] cString]); |
|---|
| | 427 | // qemu_savevm( [[NSString stringWithFormat: @"%@/saved.vm", pcPath] cString]); |
|---|
| | 428 | do_savevm([@"kju" cString]); |
|---|
| 428 | 429 | |
|---|
| 429 | 430 | /* hide progressWindow */ |
|---|
| … | … | |
| 539 | 540 | smbPath = [[NSString alloc] initWithString:[arguments objectAtIndex:i + 1]]; |
|---|
| 540 | 541 | |
|---|
| | 542 | if ([[arguments objectAtIndex:i] isEqual:@"-hda"]) |
|---|
| | 543 | if ([[arguments objectAtIndex:i+1] rangeOfString:@"qcow2"].length > 0) |
|---|
| | 544 | WMSupportsSnapshots = TRUE; |
|---|
| 541 | 545 | asprintf(&argv2[i2], "%s", [[arguments objectAtIndex:i] cString]); |
|---|
| 542 | 546 | i2++; |
|---|
| … | … | |
| 787 | 791 | pcStatus = @"shutdown"; |
|---|
| 788 | 792 | qemu_system_shutdown_request(); |
|---|
| 789 | | } else if ( [pcName isEqual:@""]) { |
|---|
| | 793 | } else if ( !WMSupportsSnapshots ) { |
|---|
| 790 | 794 | NSAlert *alert = [NSAlert alertWithMessageText: NSLocalizedStringFromTable(@"shutdownPC:text:1", @"Localizable", @"cocoaQemu") |
|---|
| 791 | 795 | defaultButton: NSLocalizedStringFromTable(@"shutdownPC:defaultButton:1", @"Localizable", @"cocoaQemu") |
|---|
| r34 |
r61 |
|
| 3 | 3 | @@ -420,6 +420,8 @@ |
|---|
| 4 | 4 | |
|---|
| 5 | | if (!bs->inserted) |
|---|
| 6 | | return -1; |
|---|
| | 5 | if (!drv) |
|---|
| | 6 | return -ENOMEDIUM; |
|---|
| 7 | 7 | + |
|---|
| 8 | 8 | + bs->activityLED = 1; |
|---|
| 9 | 9 | |
|---|
| 10 | | while (nb_sectors > 0) { |
|---|
| 11 | | if (sector_num == 0 && bs->boot_sector_enabled) { |
|---|
| | 10 | if (sector_num == 0 && bs->boot_sector_enabled && nb_sectors > 0) { |
|---|
| | 11 | memcpy(buf, bs->boot_sector_data, 512); |
|---|
| 12 | 12 | @@ -454,6 +456,7 @@ |
|---|
| 13 | 13 | int bdrv_write(BlockDriverState *bs, int64_t sector_num, |
|---|
| … | … | |
| 15 | 15 | { |
|---|
| 16 | 16 | + bs->activityLED = 1; |
|---|
| 17 | | if (!bs->inserted) |
|---|
| 18 | | return -1; |
|---|
| 19 | | if (bs->read_only) |
|---|
| | 17 | BlockDriver *drv = bs->drv; |
|---|
| | 18 | if (!bs->drv) |
|---|
| | 19 | return -ENOMEDIUM; |
|---|
| r53 |
r61 |
|
| 8 | 8 | #get/update QEMU |
|---|
| 9 | 9 | export CVS_RSH="ssh" |
|---|
| 10 | | cvs -z3 -d:pserver:anonymous@cvs.savannah.nongnu.org:/sources/qemu co -D "2006-07-24 18:00" qemu |
|---|
| | 10 | cvs -z3 -d:pserver:anonymous@cvs.savannah.nongnu.org:/sources/qemu co -D "2007-02-05 23:59" qemu |
|---|
| 11 | 11 | |
|---|
| 12 | 12 | #get/update [kju:] |
|---|
| r58 |
r61 |
|
| 2 | 2 | * QEMU Cocoa Control Controller |
|---|
| 3 | 3 | * |
|---|
| 4 | | * Copyright (c) 2005, 2006 Mike Kronenberg |
|---|
| | 4 | * Copyright (c) 2005 - 2007 Mike Kronenberg |
|---|
| 5 | 5 | * |
|---|
| 6 | 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy |
|---|
| … | … | |
| 840 | 840 | NSFileManager *fileManager = [NSFileManager defaultManager]; |
|---|
| 841 | 841 | |
|---|
| 842 | | while ([fileManager fileExistsAtPath:[NSString stringWithFormat:@"%@/%@", path, [NSString stringWithFormat:@"Harddisk_%d.qcow", i]]]) |
|---|
| | 842 | while ([fileManager fileExistsAtPath:[NSString stringWithFormat:@"%@/%@", path, [NSString stringWithFormat:@"Harddisk_%d.qcow2", i]]]) |
|---|
| 843 | 843 | i++; |
|---|
| 844 | | name = [NSString stringWithFormat:@"Harddisk_%d.qcow", i]; |
|---|
| | 844 | name = [NSString stringWithFormat:@"Harddisk_%d.qcow2", i]; |
|---|
| 845 | 845 | |
|---|
| 846 | 846 | /* convert diskImage */ |
|---|
| 847 | | NSArray *arguments = [NSArray arrayWithObjects:@"convert", @"-c", @"-O", @"qcow", oldImagePath, [NSString stringWithFormat:@"%@/%@", path, name], nil]; |
|---|
| | 847 | NSArray *arguments = [NSArray arrayWithObjects:@"convert", @"-c", @"-O", @"qcow2", oldImagePath, [NSString stringWithFormat:@"%@/%@", path, name], nil]; |
|---|
| 848 | 848 | NSTask *task; |
|---|
| 849 | 849 | task = [[NSTask alloc] init]; |
|---|
| … | … | |
| 1361 | 1361 | if ([[[thisPC objectForKey:@"PC Data"] objectForKey:@"state"] isEqual:@"saved"]) { |
|---|
| 1362 | 1362 | [arguments addObject: @"-loadvm"]; |
|---|
| 1363 | | [arguments addObject:[NSString stringWithFormat: @"%@/saved.vm", filename]]; |
|---|
| | 1363 | [arguments addObject: @"kju"]; |
|---|
| 1364 | 1364 | } |
|---|
| 1365 | 1365 | |
|---|
| r7 |
r61 |
|
| 2 | 2 | * QEMU Cocoa Control Diskimage Window |
|---|
| 3 | 3 | * |
|---|
| 4 | | * Copyright (c) 2005, 2006 Mike Kronenberg |
|---|
| | 4 | * Copyright (c) 2005 - 2007 Mike Kronenberg |
|---|
| 5 | 5 | * |
|---|
| 6 | 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy |
|---|
| … | … | |
| 105 | 105 | |
|---|
| 106 | 106 | if (qSender) { /* sheet for EditPCPanel */ |
|---|
| 107 | | [ qSender setCustomDIType:[ [ NSArray arrayWithObjects:@"raw", @"qcow", nil ] objectAtIndex:[ dIFormat indexOfSelectedItem ] ] size:[ dISize intValue ] ]; |
|---|
| | 107 | [ qSender setCustomDIType:[ [ NSArray arrayWithObjects:@"raw", @"qcow2", nil ] objectAtIndex:[ dIFormat indexOfSelectedItem ] ] size:[ dISize intValue ] ]; |
|---|
| 108 | 108 | [ self dIWindowClose:self]; |
|---|
| 109 | 109 | } else { /* standalone Window */ |
|---|
| 110 | 110 | NSSavePanel *sp = [ [ NSSavePanel alloc ] init ]; |
|---|
| 111 | | [ sp setRequiredFileType:[ [ NSArray arrayWithObjects:@"raw", @"qcow", nil ] objectAtIndex:[ dIFormat indexOfSelectedItem ] ] ]; |
|---|
| | 111 | [ sp setRequiredFileType:[ [ NSArray arrayWithObjects:@"raw", @"qcow2", nil ] objectAtIndex:[ dIFormat indexOfSelectedItem ] ] ]; |
|---|
| 112 | 112 | [ sp beginSheetForDirectory:NSHomeDirectory() |
|---|
| 113 | | file:[ NSString stringWithFormat: NSLocalizedStringFromTable(@"dIWindowCreate:file", @"Localizable", @"cocoaControlDiskImage"),[ [ NSArray arrayWithObjects:@"raw", @"qcow", nil ] objectAtIndex:[ dIFormat indexOfSelectedItem ] ] ] |
|---|
| | 113 | file:[ NSString stringWithFormat: NSLocalizedStringFromTable(@"dIWindowCreate:file", @"Localizable", @"cocoaControlDiskImage"),[ [ NSArray arrayWithObjects:@"raw", @"qcow2", nil ] objectAtIndex:[ dIFormat indexOfSelectedItem ] ] ] |
|---|
| 114 | 114 | modalForWindow:dIWindow |
|---|
| 115 | 115 | modalDelegate:self |
|---|
| … | … | |
| 147 | 147 | |
|---|
| 148 | 148 | /* create Image */ |
|---|
| 149 | | NSArray *arguments = [ NSArray arrayWithObjects:@"create",@"-f",[ [ NSArray arrayWithObjects:@"raw", @"qcow", nil ] objectAtIndex:[ dIFormat indexOfSelectedItem ] ],dIFileName,[ NSString stringWithFormat:@"%@M",[ dISize stringValue ] ],nil ]; |
|---|
| | 149 | NSArray *arguments = [ NSArray arrayWithObjects:@"create",@"-f",[ [ NSArray arrayWithObjects:@"raw", @"qcow2", nil ] objectAtIndex:[ dIFormat indexOfSelectedItem ] ],dIFileName,[ NSString stringWithFormat:@"%@M",[ dISize stringValue ] ],nil ]; |
|---|
| 150 | 150 | NSTask *task; |
|---|
| 151 | 151 | task = [ [ NSTask alloc ] init ]; |
|---|
| r53 |
r61 |
|
| 2 | 2 | * QEMU Cocoa Control PC Editor Window |
|---|
| 3 | 3 | * |
|---|
| 4 | | * Copyright (c) 2005, 2006 Mike Kronenberg |
|---|
| | 4 | * Copyright (c) 2005 - 2007 Mike Kronenberg |
|---|
| 5 | 5 | * |
|---|
| 6 | 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy |
|---|
| … | … | |
| 38 | 38 | if ((self = [super init])) { |
|---|
| 39 | 39 | userDefaults = [NSUserDefaults standardUserDefaults]; |
|---|
| 40 | | fileTypes = [[NSArray arrayWithObjects:@"qcow", @"raw", @"cow", @"vmdk", @"cloop", @"img", @"iso", @"dsk", @"dmg", @"cdr", @"toast", @"flp", @"fs", nil] retain]; |
|---|
| | 40 | fileTypes = [[NSArray arrayWithObjects:@"qcow2", @"qcow", @"raw", @"cow", @"vmdk", @"cloop", @"img", @"iso", @"dsk", @"dmg", @"cdr", @"toast", @"flp", @"fs", nil] retain]; |
|---|
| 41 | 41 | |
|---|
| 42 | 42 | return self; |
|---|
| … | … | |
| 249 | 249 | [scanner scanInt:&intResult]; |
|---|
| 250 | 250 | customImagePopUpButtonTemp = popUpButtonHda; |
|---|
| 251 | | [self setCustomDIType:@"qcow" size:intResult]; |
|---|
| | 251 | [self setCustomDIType:@"qcow2" size:intResult]; |
|---|
| 252 | 252 | } else { |
|---|
| 253 | 253 | [popUpButtonHda insertItemWithTitle:[NSString stringWithString:argument] atIndex:1]; |
|---|
| … | … | |
| 1004 | 1004 | if ([popUpButtonHda indexOfSelectedItem] > 0) { |
|---|
| 1005 | 1005 | if ([popUpButtonHda indexOfSelectedItem] == [popUpButtonHda indexOfItemWithTag:200]) { |
|---|
| 1006 | | [[thisPC objectForKey:@"Arguments"] appendFormat:[NSString stringWithFormat:@" -hda %@", [self createDI:@"qcow" withSize:10]]]; |
|---|
| | 1006 | [[thisPC objectForKey:@"Arguments"] appendFormat:[NSString stringWithFormat:@" -hda %@", [self createDI:@"qcow2" withSize:10]]]; |
|---|
| 1007 | 1007 | } else if ([popUpButtonHda indexOfSelectedItem] == [popUpButtonHda indexOfItemWithTag:201]) { |
|---|
| 1008 | | [[thisPC objectForKey:@"Arguments"] appendFormat:[NSString stringWithFormat:@" -hda %@", [self createDI:@"qcow" withSize:100]]]; |
|---|
| | 1008 | [[thisPC objectForKey:@"Arguments"] appendFormat:[NSString stringWithFormat:@" -hda %@", [self createDI:@"qcow2" withSize:100]]]; |
|---|
| 1009 | 1009 | } else if ([popUpButtonHda indexOfSelectedItem] == [popUpButtonHda indexOfItemWithTag:202]) { |
|---|
| 1010 | | [[thisPC objectForKey:@"Arguments"] appendFormat:[NSString stringWithFormat:@" -hda %@", [self createDI:@"qcow" withSize:4000]]]; |
|---|
| | 1010 | [[thisPC objectForKey:@"Arguments"] appendFormat:[NSString stringWithFormat:@" -hda %@", [self createDI:@"qcow2" withSize:4000]]]; |
|---|
| 1011 | 1011 | } else if ([popUpButtonHda indexOfSelectedItem] == [popUpButtonHda indexOfItemWithTag:203]) { |
|---|
| 1012 | 1012 | [[thisPC objectForKey:@"Arguments"] appendFormat:[NSString stringWithFormat:@" -hda %@", [self createDI:@"raw" withSize:4000]]]; |
|---|
| … | … | |
| 1021 | 1021 | if ([popUpButtonHdb indexOfSelectedItem] > 0) { |
|---|
| 1022 | 1022 | if ([popUpButtonHdb indexOfSelectedItem] == [popUpButtonHdb indexOfItemWithTag:200]) { |
|---|
| 1023 | | [[thisPC objectForKey:@"Arguments"] appendFormat:[NSString stringWithFormat:@" -hdb %@", [self createDI:@"qcow" withSize:10]]]; |
|---|
| | 1023 | [[thisPC objectForKey:@"Arguments"] appendFormat:[NSString stringWithFormat:@" -hdb %@", [self createDI:@"qcow2" withSize:10]]]; |
|---|
| 1024 | 1024 | } else if ([popUpButtonHdb indexOfSelectedItem] == [popUpButtonHdb indexOfItemWithTag:201]) { |
|---|
| 1025 | | [[thisPC objectForKey:@"Arguments"] appendFormat:[NSString stringWithFormat:@" -hdb %@", [self createDI:@"qcow" withSize:100]]]; |
|---|
| | 1025 | [[thisPC objectForKey:@"Arguments"] appendFormat:[NSString stringWithFormat:@" -hdb %@", [self createDI:@"qcow2" withSize:100]]]; |
|---|
| 1026 | 1026 | } else if ([popUpButtonHdb indexOfSelectedItem] == [popUpButtonHdb indexOfItemWithTag:202]) { |
|---|
| 1027 | | [[thisPC objectForKey:@"Arguments"] appendFormat:[NSString stringWithFormat:@" -hdb %@", [self createDI:@"qcow" withSize:4000]]]; |
|---|
| | 1027 | [[thisPC objectForKey:@"Arguments"] appendFormat:[NSString stringWithFormat:@" -hdb %@", [self createDI:@"qcow2" withSize:4000]]]; |
|---|
| 1028 | 1028 | } else if ([popUpButtonHdb indexOfSelectedItem] == [popUpButtonHdb indexOfItemWithTag:203]) { |
|---|
| 1029 | 1029 | [[thisPC objectForKey:@"Arguments"] appendFormat:[NSString stringWithFormat:@" -hdb %@", [self createDI:@"raw" withSize:4000]]]; |
|---|
| … | … | |
| 1038 | 1038 | if ([popUpButtonHdc indexOfSelectedItem] > 0) { |
|---|
| 1039 | 1039 | if ([popUpButtonHdc indexOfSelectedItem] == [popUpButtonHdb indexOfItemWithTag:200]) { |
|---|
| 1040 | | [[thisPC objectForKey:@"Arguments"] appendFormat:[NSString stringWithFormat:@" -hdc %@", [self createDI:@"qcow" withSize:10]]]; |
|---|
| | 1040 | [[thisPC objectForKey:@"Arguments"] appendFormat:[NSString stringWithFormat:@" -hdc %@", [self createDI:@"qcow2" withSize:10]]]; |
|---|
| 1041 | 1041 | } else if ([popUpButtonHdc indexOfSelectedItem] == [popUpButtonHdb indexOfItemWithTag:201]) { |
|---|
| 1042 | | [[thisPC objectForKey:@"Arguments"] appendFormat:[NSString stringWithFormat:@" -hdc %@", [self createDI:@"qcow" withSize:100]]]; |
|---|
| | 1042 | [[thisPC objectForKey:@"Arguments"] appendFormat:[NSString stringWithFormat:@" -hdc %@", [self createDI:@"qcow2" withSize:100]]]; |
|---|
| 1043 | 1043 | } else if ([popUpButtonHdc indexOfSelectedItem] == [popUpButtonHdb indexOfItemWithTag:202]) { |
|---|
| 1044 | | [[thisPC objectForKey:@"Arguments"] appendFormat:[NSString stringWithFormat:@" -hdc %@", [self createDI:@"qcow" withSize:4000]]]; |
|---|
| | 1044 | [[thisPC objectForKey:@"Arguments"] appendFormat:[NSString stringWithFormat:@" -hdc %@", [self createDI:@"qcow2" withSize:4000]]]; |
|---|
| 1045 | 1045 | } else if ([popUpButtonHdc indexOfSelectedItem] == [popUpButtonHdb indexOfItemWithTag:203]) { |
|---|
| 1046 | 1046 | [[thisPC objectForKey:@"Arguments"] appendFormat:[NSString stringWithFormat:@" -hdc %@", [self createDI:@"raw" withSize:4000]]]; |
|---|
| … | … | |
| 1055 | 1055 | if ([popUpButtonHdd indexOfSelectedItem] > 0) { |
|---|
| 1056 | 1056 | if ([popUpButtonHdd indexOfSelectedItem] == [popUpButtonHdb indexOfItemWithTag:200]) { |
|---|
| 1057 | | [[thisPC objectForKey:@"Arguments"] appendFormat:[NSString stringWithFormat:@" -hdd %@", [self createDI:@"qcow" withSize:10]]]; |
|---|
| | 1057 | [[thisPC objectForKey:@"Arguments"] appendFormat:[NSString stringWithFormat:@" -hdd %@", [self createDI:@"qcow2" withSize:10]]]; |
|---|
| 1058 | 1058 | } else if ([popUpButtonHdd indexOfSelectedItem] == [popUpButtonHdb indexOfItemWithTag:201]) { |
|---|
| 1059 | | [[thisPC objectForKey:@"Arguments"] appendFormat:[NSString stringWithFormat:@" -hdd %@", [self createDI:@"qcow" withSize:100]]]; |
|---|
| | 1059 | [[thisPC objectForKey:@"Arguments"] appendFormat:[NSString stringWithFormat:@" -hdd %@", [self createDI:@"qcow2" withSize:100]]]; |
|---|
| 1060 | 1060 | } else if ([popUpButtonHdd indexOfSelectedItem] == [popUpButtonHdb indexOfItemWithTag:202]) { |
|---|
| 1061 | | [[thisPC objectForKey:@"Arguments"] appendFormat:[NSString stringWithFormat:@" -hdd %@", [self createDI:@"qcow" withSize:4000]]]; |
|---|
| | 1061 | [[thisPC objectForKey:@"Arguments"] appendFormat:[NSString stringWithFormat:@" -hdd %@", [self createDI:@"qcow2" withSize:4000]]]; |
|---|
| 1062 | 1062 | } else if ([popUpButtonHdd indexOfSelectedItem] == [popUpButtonHdb indexOfItemWithTag:203]) { |
|---|
| 1063 | 1063 | [[thisPC objectForKey:@"Arguments"] appendFormat:[NSString stringWithFormat:@" -hdd %@", [self createDI:@"raw" withSize:4000]]]; |
|---|
Download in other formats:
| |