From b67b983156edf617a114668a4a0e119926f4f2fe Mon Sep 17 00:00:00 2001
From: asvitkine <>
Date: Sun, 2 Aug 2009 23:17:18 +0000
Subject: [PATCH] disable buttons when no selection
---
.../VMListWindow.nib/designable.nib | 79 +++++++++++++-----
.../VMListWindow.nib/keyedobjects.nib | Bin 8157 -> 8475 bytes
.../src/MacOSX/Launcher/VMListController.h | 4 +
.../src/MacOSX/Launcher/VMListController.mm | 12 ++-
4 files changed, 74 insertions(+), 21 deletions(-)
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
{{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 b93d99cd7b2e122883da411d984a4806d85eab8f..23a3b0ba362478e433d32016b175d4ea49491895 100644
GIT binary patch
delta 3510
zcmZuzdz?+x9^Y%Nv-dvxz4r5*y**|a45sm{>y;QHc?`m!6l0vs$(e_lGmj)^MdgY_
zr>IDUUdW?Ki6K#m)GbE0lt)UE#*jSnn!C;nSGUjIf1I;EYkk-6_x=99zqR&0&|^`r
zdAXo+et1!A19%^71KYuF@HyB6_JXg$L2wBC%#3Fwa10y=zcSh21ULzPhYa*X0V>dd
zCUjr}*bp{>O<^i*3DaR4*b&|gyTGon2kZ&^z`k$*90-@6ZPfbYYNa1*SAo8cDt0o)3=!%yHZNCXp+gk+>36=?_~ow*ws
z$V3*hk%Iy#h+O2M2B;xwgc_qHlnfq6O;A&m!rX(Jq2{P1N<(cbc7jQu$tE&|EFc?6
zHi;3IJWCc5LN*YFaAX>JA9o|qRg6GsGH6!uh&CKFTn8Ryeglt#ne=x(XvCC)Ip9e!
z*YJU>O#C;T%5MUdU^Cbf_w)?qBhUbR0(MYX8Q2xi)q8<2<16(>Tou^&D%cnQLT`<}
z1^eTd^yGLlPF4OI`^WfTqXq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-EP0N6M7EOc>_)}KC+)2B!|dh@)h}-d_%q^$H@tDlAI=I
z$Q5!ecxx~<*f7{A*d*9A*gTjKY#Gc9whktqNOs~m!4bjH!3n{N;D^C4f|Vg5)HHNQ
zs7q)-XmqGNv@EncROt$CBe#Xy%FT4!yB*w)Za24wJHeggPI0HY)7=?v!kz8Tb?3Va
z+~?gF+?U+N?h^M^_cgb|UGA=MSGud+x7@egf4ghl_3mbO3q_Qt0+pzrs&T5*05z#i
z2@O$7lW1+4OzY5F=&dxBHl&Sc6WWwErx~;*&7`eq8`_q(qgk{g?L@oKuJk_Io%W=?
zXm8q=4xo?FL39WmN^|LO8lgqBgqG4VbSxc5r_$-PoX)2Ux#|O;=E|FL&E&>Nm;V= 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
//{