diff --git a/AnimatedGif.xcodeproj/project.pbxproj b/AnimatedGif.xcodeproj/project.pbxproj index f1779a1..aaa6739 100644 --- a/AnimatedGif.xcodeproj/project.pbxproj +++ b/AnimatedGif.xcodeproj/project.pbxproj @@ -7,6 +7,8 @@ objects = { /* Begin PBXBuildFile section */ + CC1777EB20A1E8C40043C210 /* LICENSE.md in Sources */ = {isa = PBXBuildFile; fileRef = CC1777E920A1E7DF0043C210 /* LICENSE.md */; }; + CC1777EC20A1E95D0043C210 /* LICENSE.md in Resources */ = {isa = PBXBuildFile; fileRef = CC1777E920A1E7DF0043C210 /* LICENSE.md */; }; CC24BA9B1BF124350045BDC7 /* AnimatedGifView.h in Headers */ = {isa = PBXBuildFile; fileRef = CC24BA9A1BF124350045BDC7 /* AnimatedGifView.h */; }; CC24BA9D1BF124350045BDC7 /* AnimatedGifView.m in Sources */ = {isa = PBXBuildFile; fileRef = CC24BA9C1BF124350045BDC7 /* AnimatedGifView.m */; }; CC4486F21C8A3A50008520D2 /* thumbnail.png in Resources */ = {isa = PBXBuildFile; fileRef = CC4486F01C8A3A50008520D2 /* thumbnail.png */; }; @@ -16,6 +18,7 @@ /* Begin PBXFileReference section */ CC1073C41C78947900AC5F63 /* es */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = es; path = es.lproj/Options.xib; sourceTree = ""; }; + CC1777E920A1E7DF0043C210 /* LICENSE.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; path = LICENSE.md; sourceTree = SOURCE_ROOT; }; CC24BA951BF124350045BDC7 /* AnimatedGif.saver */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = AnimatedGif.saver; sourceTree = BUILT_PRODUCTS_DIR; }; CC24BA991BF124350045BDC7 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; CC24BA9A1BF124350045BDC7 /* AnimatedGifView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AnimatedGifView.h; sourceTree = ""; }; @@ -68,6 +71,7 @@ CC24BA981BF124350045BDC7 /* Supporting Files */ = { isa = PBXGroup; children = ( + CC1777E920A1E7DF0043C210 /* LICENSE.md */, CC4486F01C8A3A50008520D2 /* thumbnail.png */, CC4486F11C8A3A50008520D2 /* thumbnail@2x.png */, CC24BA991BF124350045BDC7 /* Info.plist */, @@ -146,6 +150,7 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( + CC1777EC20A1E95D0043C210 /* LICENSE.md in Resources */, CC4486F21C8A3A50008520D2 /* thumbnail.png in Resources */, CCC3B9991C788F8E00FBE423 /* Options.xib in Resources */, CC4486F31C8A3A50008520D2 /* thumbnail@2x.png in Resources */, @@ -159,6 +164,7 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( + CC1777EB20A1E8C40043C210 /* LICENSE.md in Sources */, CC24BA9D1BF124350045BDC7 /* AnimatedGifView.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; diff --git a/AnimatedGif/AnimatedGifView.h b/AnimatedGif/AnimatedGifView.h index 005d448..2d930db 100644 --- a/AnimatedGif/AnimatedGifView.h +++ b/AnimatedGif/AnimatedGifView.h @@ -32,6 +32,7 @@ #define DEFAULT_ANIME_TIME_INTER 1/15.0 #define GL_ALPHA_OPAQUE 1.0f #define NS_ALPHA_OPAQUE 1.0 +#define NEVER_CHANGE_GIF 30 @interface AnimatedGifView : ScreenSaverView { diff --git a/AnimatedGif/AnimatedGifView.m b/AnimatedGif/AnimatedGifView.m index e2dbaf3..5a28c4a 100644 --- a/AnimatedGif/AnimatedGifView.m +++ b/AnimatedGif/AnimatedGifView.m @@ -174,7 +174,7 @@ - (void)startAnimation backgrRed = [defaults floatForKey:@"BackgrRed"]; backgrGreen = [defaults floatForKey:@"BackgrGreen"]; backgrBlue = [defaults floatForKey:@"BackgrBlue"]; - NSInteger changeIntervalInSec = [defaults integerForKey:@"ChangeInterval"] * 60; + NSInteger changeIntervalInMin = [defaults integerForKey:@"ChangeInterval"]; // select a random file from directory or keep the file if it was already a file NSString *newGifFileName = [self getRandomGifFile:gifFileName]; @@ -196,11 +196,11 @@ - (void)startAnimation filter = filterOption; // check if it is a file or a directory - if ([self isDir:gifFileName]) + if ([self isDir:gifFileName] && ((changeIntervalInMin) != NEVER_CHANGE_GIF)) { // start a one-time timer at end of startAnimation otherwise the time for loading the GIF is part of the timer - [NSTimer scheduledTimerWithTimeInterval:changeIntervalInSec + [NSTimer scheduledTimerWithTimeInterval:(changeIntervalInMin * 60) target:self selector:@selector(timerMethod) userInfo:nil @@ -507,7 +507,14 @@ - (NSWindow*)configureSheet [self.popupButtonViewOptions selectItemWithTag:viewOpt]; [self.popupButtonFilterOptions selectItemWithTag:filterOpt]; [self.sliderChangeInterval setIntegerValue:changeInter]; - [self.labelChangeInterval setStringValue:[self.sliderChangeInterval stringValue]]; + if ([self.sliderChangeInterval intValue] == NEVER_CHANGE_GIF) + { + [self.labelChangeInterval setStringValue:[self.labelChIntT4 stringValue]]; + } + else + { + [self.labelChangeInterval setStringValue:[self.sliderChangeInterval stringValue]]; + } [self enableSliderFpsManual:frameRateManual]; [self.labelFpsManual setStringValue:[self.sliderFpsManual stringValue]]; [self.colorWellBackgrColor setColor:[NSColor colorWithRed:bgrRed green:bgrGreen blue:bgrBlue alpha:NS_ALPHA_OPAQUE]]; @@ -663,7 +670,14 @@ - (IBAction)selectSliderFpsManual:(id)sender - (IBAction)selectSliderChangeInterval:(id)sender { // update label with actual selected value of slider - [self.labelChangeInterval setStringValue:[self.sliderChangeInterval stringValue]]; + if ([self.sliderChangeInterval intValue] == NEVER_CHANGE_GIF) + { + [self.labelChangeInterval setStringValue:[self.labelChIntT4 stringValue]]; + } + else + { + [self.labelChangeInterval setStringValue:[self.sliderChangeInterval stringValue]]; + } } - (void)enableSliderChangeInterval:(BOOL)enable diff --git a/AnimatedGif/Info.plist b/AnimatedGif/Info.plist index 54fa76b..826db40 100644 --- a/AnimatedGif/Info.plist +++ b/AnimatedGif/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType BNDL CFBundleShortVersionString - 1.3.7 + 1.3.8 CFBundleSignature com.waitsnake.animatedgif CFBundleVersion diff --git a/AnimatedGif/de.lproj/Options.xib b/AnimatedGif/de.lproj/Options.xib index c24f075..89a3fc3 100644 --- a/AnimatedGif/de.lproj/Options.xib +++ b/AnimatedGif/de.lproj/Options.xib @@ -1,5 +1,5 @@ - + @@ -186,14 +186,6 @@ - - - - - - - - @@ -332,6 +324,14 @@ DQ + + + + + + + + diff --git a/AnimatedGif/en.lproj/Options.xib b/AnimatedGif/en.lproj/Options.xib index cd40b0f..d5d4a5b 100644 --- a/AnimatedGif/en.lproj/Options.xib +++ b/AnimatedGif/en.lproj/Options.xib @@ -1,5 +1,5 @@ - + @@ -198,14 +198,6 @@ Gw - - - - - - - - @@ -332,6 +324,14 @@ Gw + + + + + + + + diff --git a/AnimatedGif/es.lproj/Options.xib b/AnimatedGif/es.lproj/Options.xib index 355f3b9..9e4420c 100644 --- a/AnimatedGif/es.lproj/Options.xib +++ b/AnimatedGif/es.lproj/Options.xib @@ -1,5 +1,5 @@ - + @@ -197,14 +197,6 @@ Gw - - - - - - - - @@ -332,6 +324,14 @@ Gw + + + + + + + + diff --git a/AnimatedGif/ja.lproj/Options.xib b/AnimatedGif/ja.lproj/Options.xib index cde55bd..bc67fc0 100644 --- a/AnimatedGif/ja.lproj/Options.xib +++ b/AnimatedGif/ja.lproj/Options.xib @@ -1,5 +1,5 @@ - + @@ -202,14 +202,6 @@ Gw - - - - - - - - @@ -332,6 +324,14 @@ Gw + + + + + + + + diff --git a/Release/AnimatedGif.saver.zip b/Release/AnimatedGif.saver.zip index 9cc7f2a..e26c3d8 100644 Binary files a/Release/AnimatedGif.saver.zip and b/Release/AnimatedGif.saver.zip differ