diff --git a/SheepShaver/src/MacOSX/Launcher/English.lproj/VMListWindow.nib/designable.nib b/SheepShaver/src/MacOSX/Launcher/English.lproj/VMListWindow.nib/designable.nib index 0c44848d..c71e47ba 100644 --- a/SheepShaver/src/MacOSX/Launcher/English.lproj/VMListWindow.nib/designable.nib +++ b/SheepShaver/src/MacOSX/Launcher/English.lproj/VMListWindow.nib/designable.nib @@ -8,6 +8,7 @@ 353.00 YES + YES @@ -63,7 +64,6 @@ 256 {374, 94} - YES @@ -153,7 +153,6 @@ {{1, 1}, {355, 94}} - @@ -164,7 +163,6 @@ 256 {{356, 1}, {15, 94}} - _doScroller: 3.947369e-01 @@ -174,7 +172,6 @@ 256 {{-100, -100}, {374, 15}} - YES 1 @@ -184,7 +181,6 @@ {{20, 60}, {372, 96}} - 146 @@ -197,10 +193,9 @@ 293 {{302, 12}, {96, 32}} - YES - 67239424 + 604110336 134217728 Launch @@ -218,10 +213,9 @@ 293 {{206, 12}, {96, 32}} - YES - 67239424 + 604110336 134217728 Settings... @@ -239,7 +233,6 @@ 293 {{14, 12}, {96, 32}} - YES 67239424 @@ -260,7 +253,6 @@ 268 {{17, 164}, {147, 17}} - YES 68288064 @@ -280,9 +272,8 @@ 293 - {{110, 11}, {96, 32}} + {{110, 12}, {96, 32}} - YES 67239424 @@ -301,7 +292,6 @@ {412, 201} - {{0, 0}, {1680, 1028}} {412, 223} @@ -367,6 +357,38 @@ 53 + + + importButton + + + + 54 + + + + launchButton + + + + 55 + + + + newButton + + + + 56 + + + + settingsButton + + + + 57 + @@ -415,8 +437,8 @@ - + @@ -579,8 +601,8 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - {{151, 461}, {412, 201}} - {{151, 461}, {412, 201}} + {{308, 569}, {412, 201}} + {{308, 569}, {412, 201}} {196, 240} {{357, 418}, {480, 270}} @@ -631,7 +653,7 @@ - 53 + 57 @@ -643,6 +665,7 @@ YES YES + deleteVirtualMachine: editVirtualMachineSettings: importVirtualMachine: launchVirtualMachine: @@ -654,11 +677,27 @@ id id id + id - vmList - NSTableView + YES + + YES + importButton + launchButton + newButton + settingsButton + vmList + + + YES + NSButton + NSButton + NSButton + NSButton + NSTableView + IBProjectSource diff --git a/SheepShaver/src/MacOSX/Launcher/English.lproj/VMListWindow.nib/keyedobjects.nib b/SheepShaver/src/MacOSX/Launcher/English.lproj/VMListWindow.nib/keyedobjects.nib index b93d99cd..23a3b0ba 100644 Binary files a/SheepShaver/src/MacOSX/Launcher/English.lproj/VMListWindow.nib/keyedobjects.nib and b/SheepShaver/src/MacOSX/Launcher/English.lproj/VMListWindow.nib/keyedobjects.nib differ diff --git a/SheepShaver/src/MacOSX/Launcher/VMListController.h b/SheepShaver/src/MacOSX/Launcher/VMListController.h index 2656eff1..200320f3 100644 --- a/SheepShaver/src/MacOSX/Launcher/VMListController.h +++ b/SheepShaver/src/MacOSX/Launcher/VMListController.h @@ -22,6 +22,10 @@ @interface VMListController : NSWindowController { IBOutlet NSTableView *vmList; + IBOutlet NSButton *newButton; + IBOutlet NSButton *importButton; + IBOutlet NSButton *settingsButton; + IBOutlet NSButton *launchButton; NSMutableArray *vmArray; } diff --git a/SheepShaver/src/MacOSX/Launcher/VMListController.mm b/SheepShaver/src/MacOSX/Launcher/VMListController.mm index 4cb52720..e739647a 100644 --- a/SheepShaver/src/MacOSX/Launcher/VMListController.mm +++ b/SheepShaver/src/MacOSX/Launcher/VMListController.mm @@ -32,7 +32,6 @@ Drag-drop to re-arrange order of VMs Drag VM from Finder to import Don't show Preferences menu in spawned SheepShaver instances - or make them use the same nib file as this app! -Disable buttons on empty selection */ @@ -85,6 +84,17 @@ Disable buttons on empty selection return [vmArray objectAtIndex: r]; // [[vmArray objectAtIndex: r] lastPathComponent]; } +- (void) tableViewSelectionDidChange: (NSNotification *) notification +{ + if ([vmList selectedRow] >= 0) { + [settingsButton setEnabled:YES]; + [launchButton setEnabled:YES]; + } else { + [settingsButton setEnabled:NO]; + [launchButton setEnabled:NO]; + } +} + //- (NSString *) tableView: (NSTableView *) table toolTipForCell: (NSCell *) cell rect: (NSRectPointer) rect // tableColumn: (NSTableColumn *) c row: (int) r mouseLocation: (NSPoint) loc //{