Revision: 2623
http://skim-app.svn.sourceforge.net/skim-app/?rev=2623&view=rev
Author: hofman
Date: 2007-08-07 14:01:10 -0700 (Tue, 07 Aug 2007)
Log Message:
-----------
Show progress sheet during saving of disk image.
Modified Paths:
--------------
trunk/Dutch.lproj/Localizable.strings
trunk/French.lproj/Localizable.strings
trunk/Italian.lproj/Localizable.strings
trunk/SKDocument.h
trunk/SKDocument.m
Modified: trunk/Dutch.lproj/Localizable.strings
===================================================================
(Binary files differ)
Modified: trunk/French.lproj/Localizable.strings
===================================================================
(Binary files differ)
Modified: trunk/Italian.lproj/Localizable.strings
===================================================================
(Binary files differ)
Modified: trunk/SKDocument.h
===================================================================
--- trunk/SKDocument.h 2007-08-07 20:26:01 UTC (rev 2622)
+++ trunk/SKDocument.h 2007-08-07 21:01:10 UTC (rev 2623)
@@ -62,6 +62,10 @@
IBOutlet NSView *readNotesAccessoryView;
IBOutlet NSButton *replaceNotesCheckButton;
+ IBOutlet NSWindow *progressSheet;
+ IBOutlet NSProgressIndicator *progressBar;
+ IBOutlet NSTextField *progressField;
+
// variables to be saved:
NSData *pdfData;
Modified: trunk/SKDocument.m
===================================================================
--- trunk/SKDocument.m 2007-08-07 20:26:01 UTC (rev 2622)
+++ trunk/SKDocument.m 2007-08-07 21:01:10 UTC (rev 2623)
@@ -95,6 +95,7 @@
[noteDicts release];
[readNotesAccessoryView release];
[lastModifiedDate release];
+ [progressSheet release];
[super dealloc];
}
@@ -599,6 +600,22 @@
if (NSOKButton == returnCode && [self fileURL]) {
+ if (progressSheet == nil) {
+ if ([NSBundle loadNibNamed:@"ProgressSheet" owner:self]) {
+ [progressBar setUsesThreadedAnimation:YES];
+ } else {
+ NSLog(@"Failed to load ProgressSheet.nib");
+ return;
+ }
+ }
+
+ [progressField setStringValue:[NSLocalizedString(@"Saving Disk Image",
@"Message for progress sheet") stringByAppendingEllipsis]];
+ [progressBar setIndeterminate:YES];
+ [progressBar startAnimation:self];
+
+ [sheet orderOut:self];
+ [NSApp beginSheet:progressSheet modalForWindow:[[self
mainWindowController] window] modalDelegate:nil didEndSelector:NULL
contextInfo:NULL];
+
NSFileManager *fm = [NSFileManager defaultManager];
NSString *baseTmpDir = [NSTemporaryDirectory()
stringByAppendingPathComponent:@"net.sourceforge.skim-app.skim"];
NSString *tmpDir = baseTmpDir;
@@ -666,6 +683,10 @@
}
[fm removeFileAtPath:tmpDir handler:nil];
+
+ [NSApp endSheet:progressSheet];
+ [progressBar stopAnimation:self];
+ [progressSheet orderOut:self];
}
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit