Revision: 28655
http://sourceforge.net/p/bibdesk/svn/28655
Author: hofman
Date: 2024-01-23 09:38:09 +0000 (Tue, 23 Jan 2024)
Log Message:
-----------
rename class for progress indicator
Modified Paths:
--------------
trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m
trunk/bibdesk_vendorsrc/amaxwell/FileView/FVProgressIndicator.h
trunk/bibdesk_vendorsrc/amaxwell/FileView/FVProgressIndicator.m
Modified: trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m
===================================================================
--- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m 2024-01-23
09:36:22 UTC (rev 28654)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m 2024-01-23
09:38:09 UTC (rev 28655)
@@ -48,7 +48,7 @@
#import "FVOperationQueue.h"
#import "FVIconOperation.h"
#import "FVDownload.h"
-#import "FVProgressIndicatorCell.h"
+#import "FVProgressIndicator.h"
#import "FVSlider.h"
#import "FVColorMenuView.h"
#import "FVAccessibilityIconElement.h"
@@ -2606,7 +2606,7 @@
}
if ([_progressIndicators count]) {
- [_progressIndicators enumerateKeysAndObjectsUsingBlock:^(NSURL
*url, FVProgressIndicatorCell *progressIndicator, BOOL *stop){
+ [_progressIndicators enumerateKeysAndObjectsUsingBlock:^(NSURL
*url, FVProgressIndicator *progressIndicator, BOOL *stop){
NSUInteger anIndex = [progressIndicator indexInView];
// we only draw a if there's an active download for this
URL/index pair
if (anIndex < [self numberOfIcons] && [[self
URLAtIndex:anIndex] isEqual:url])
@@ -4107,7 +4107,7 @@
- (void)_progressTimerFired:(CFRunLoopTimerRef)timer
{
NSUInteger r, c;
- for (FVProgressIndicatorCell *progressIndicator in [_progressIndicators
allValues]) {
+ for (FVProgressIndicator *progressIndicator in [_progressIndicators
allValues]) {
if ([progressIndicator style] == FVProgressIndicatorIndeterminate) {
[progressIndicator animate];
if ([self _getGridRow:&r column:&c ofIndex:[progressIndicator
indexInView]])
@@ -4220,10 +4220,10 @@
}
- (void)updateProgressIndicator:(double)progress forURL:(NSURL *)aURL
atIndex:(NSUInteger)anIndex {
- FVProgressIndicatorCell *progressIndicator = [_progressIndicators
objectForKey:aURL];
+ FVProgressIndicator *progressIndicator = [_progressIndicators
objectForKey:aURL];
NSUInteger r, c;
if (progressIndicator == nil) {
- progressIndicator = [[FVProgressIndicatorCell alloc] init];
+ progressIndicator = [[FVProgressIndicator alloc] init];
[progressIndicator setIndexInView:anIndex];
if (_progressIndicators == nil)
_progressIndicators = [[NSMutableDictionary alloc] init];
Modified: trunk/bibdesk_vendorsrc/amaxwell/FileView/FVProgressIndicator.h
===================================================================
--- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVProgressIndicator.h
2024-01-23 09:36:22 UTC (rev 28654)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVProgressIndicator.h
2024-01-23 09:38:09 UTC (rev 28655)
@@ -1,5 +1,5 @@
//
-// FVProgressIndicatorCell.h
+// FVProgressIndicator.h
// FileView
//
// Created by Adam Maxwell on 2/15/08.
@@ -51,7 +51,7 @@
FVProgressIndicatorDeterminate = 0
};
-@interface FVProgressIndicatorCell : NSObject
+@interface FVProgressIndicator : NSObject
{
@private
CGFloat _currentProgress;
Modified: trunk/bibdesk_vendorsrc/amaxwell/FileView/FVProgressIndicator.m
===================================================================
--- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVProgressIndicator.m
2024-01-23 09:36:22 UTC (rev 28654)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVProgressIndicator.m
2024-01-23 09:38:09 UTC (rev 28655)
@@ -1,5 +1,5 @@
//
-// FVProgressIndicatorCell.m
+// FVProgressIndicator.m
// FileView
//
// Created by Adam Maxwell on 2/15/08.
@@ -36,10 +36,10 @@
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#import "FVProgressIndicatorCell.h"
+#import "FVProgressIndicator.h"
-@implementation FVProgressIndicatorCell
+@implementation FVProgressIndicator
@synthesize currentProgress=_currentProgress;
@synthesize style=_style;
@@ -48,7 +48,7 @@
static NSInteger numSteps = 8;
+ (void)initialize {
- FVINITIALIZE(FVProgressIndicatorCell);
+ FVINITIALIZE(FVProgressIndicator);
if (floor(NSAppKitVersionNumber) <= NSAppKitVersionNumber10_15)
numSteps = 12;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit