From: Michael J. Rubinsky Date: Mon, 24 Nov 2008 19:54:45 +0000 (-0500) Subject: * visual feedback when remote gallery is created successsfully X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=35366892e404af07fe21fc6685ab559484ad5f90;p=horde.git * visual feedback when remote gallery is created successsfully * enable/disable some more controls (still more todo) * auto select the new remote gallery in the NSComboBox (for some reason exporting to the newly created gallery in the same export session seems to silently fail - no promises at this point) --- diff --git a/iPhoto2Ansel/AnselExportController.m b/iPhoto2Ansel/AnselExportController.m index 3074460ad..ce097ede7 100644 --- a/iPhoto2Ansel/AnselExportController.m +++ b/iPhoto2Ansel/AnselExportController.m @@ -205,11 +205,16 @@ // See if we have everything we need to export... - (void)canExport { - if ([anselController state] == TURAnselStateConnected && - currentGallery != nil) { - [mExportMgr enableControls]; + if ([anselController state] == TURAnselStateConnected) { + [newGalleryButton setEnabled: YES]; + [galleryCombo setEnabled: YES]; + if (currentGallery != nil) { + [mExportMgr enableControls]; + } } else { - [mExportMgr disableControls]; + [newGalleryButton setEnabled: NO]; + [mExportMgr disableControls]; + [galleryCombo setEnabled: YES]; } } // Runs in a new thread. @@ -246,8 +251,15 @@ NSDictionary *results = [[anselController createNewGallery: [NSDictionary dictionaryWithObjectsAndKeys: galleryName, @"name", nil]] retain]; if ([anselController state] != TURAnselStateError) { - NSLog(@"Added %@", results); + NSAlert *alert = [[NSAlert alloc] init]; + [alert setMessageText: @"Gallery successfully created."]; + [alert beginSheetModalForWindow: [self window] + modalDelegate: nil + didEndSelector: nil + contextInfo: nil]; [galleryCombo reloadData]; + [galleryCombo selectItemAtIndex: [galleryCombo numberOfItems] - 1]; + [alert release]; } [results release]; } @@ -387,7 +399,7 @@ [currentGallery setDelegate:nil]; [currentGallery autorelease]; currentGallery = [[anselController getGalleryByIndex:row] retain]; - NSLog(@"THe selected gallery: %@", currentGallery); + NSLog(@"The selected gallery: %@", currentGallery); [currentGallery setDelegate: self]; [self canExport]; } diff --git a/iPhoto2Ansel/English.lproj/Panel.nib/info.nib b/iPhoto2Ansel/English.lproj/Panel.nib/info.nib index d55a3324a..64a4a91f8 100644 --- a/iPhoto2Ansel/English.lproj/Panel.nib/info.nib +++ b/iPhoto2Ansel/English.lproj/Panel.nib/info.nib @@ -10,7 +10,7 @@ 5 IBOpenObjects - 6 + 136 IBSystem Version 9F33 diff --git a/iPhoto2Ansel/English.lproj/Panel.nib/keyedobjects.nib b/iPhoto2Ansel/English.lproj/Panel.nib/keyedobjects.nib index 85eed5875..d5e224c8d 100644 Binary files a/iPhoto2Ansel/English.lproj/Panel.nib/keyedobjects.nib and b/iPhoto2Ansel/English.lproj/Panel.nib/keyedobjects.nib differ