From 9872f4f509a4ed7299604c918bb28a21c7ce7b7a Mon Sep 17 00:00:00 2001 From: Matthias Neeracher Date: Sun, 6 Jul 2008 11:08:39 +0000 Subject: [PATCH] Adjust tempo through menu --- English.lproj/MainMenu.xib | 92 +++++++++++++++++++++++++++++++++----- Sources/VLDocument.h | 1 + Sources/VLDocument.mm | 5 +++ 3 files changed, 88 insertions(+), 10 deletions(-) diff --git a/English.lproj/MainMenu.xib b/English.lproj/MainMenu.xib index 97e2550..98768d7 100644 --- a/English.lproj/MainMenu.xib +++ b/English.lproj/MainMenu.xib @@ -2,13 +2,13 @@ 1050 - 9C7010 - 648 - 949.26 + 9E17 + 652 + 949.33 352.00 YES - + @@ -811,6 +811,36 @@ 8 + + + YES + YES + + + 2147483647 + + + + + + Faster + ] + 1048576 + 2147483647 + + + 5 + + + + Slower + [ + 1048576 + 2147483647 + + + -5 + @@ -2153,6 +2183,22 @@ 100327 + + + adjustTempo: + + + + 100331 + + + + adjustTempo: + + + + 100332 + @@ -3003,6 +3049,9 @@ + + + @@ -3143,6 +3192,21 @@ + + 100328 + + + + + 100329 + + + + + 100330 + + + @@ -3205,6 +3269,9 @@ 100323.IBPluginDependency 100324.IBPluginDependency 100325.IBPluginDependency + 100328.IBPluginDependency + 100329.IBPluginDependency + 100330.IBPluginDependency 103.IBPluginDependency 103.ImportedFromIB2 106.IBPluginDependency @@ -3426,18 +3493,18 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - {{63, 1042}, {114, 23}} + {{63, 733}, {114, 23}} com.apple.InterfaceBuilder.CocoaPlugin {{548, 732}, {114, 23}} com.apple.InterfaceBuilder.CocoaPlugin - {{177, 1002}, {237, 63}} + {{177, 693}, {237, 63}} com.apple.InterfaceBuilder.CocoaPlugin {{662, 692}, {237, 63}} com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - {{266, 988}, {236, 103}} + {{561, 583}, {236, 153}} com.apple.InterfaceBuilder.CocoaPlugin {{245, 622}, {236, 103}} com.apple.InterfaceBuilder.CocoaPlugin @@ -3447,7 +3514,7 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - {{804, 840}, {219, 273}} + {{804, 463}, {219, 273}} com.apple.InterfaceBuilder.CocoaPlugin {{193, 502}, {212, 223}} com.apple.InterfaceBuilder.CocoaPlugin @@ -3470,6 +3537,9 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -3628,7 +3698,7 @@ com.apple.InterfaceBuilder.CocoaPlugin - {{611, 1113}, {472, 20}} + {{316, 736}, {472, 20}} com.apple.InterfaceBuilder.CocoaPlugin {{0, 725}, {472, 20}} @@ -3689,7 +3759,7 @@ - 100327 + 100332 @@ -3701,6 +3771,7 @@ YES action: + adjustTempo: dump: editDisplayOptions: editRepeat: @@ -3731,6 +3802,7 @@ id id id + id diff --git a/Sources/VLDocument.h b/Sources/VLDocument.h index 6a33d7e..d8178ef 100644 --- a/Sources/VLDocument.h +++ b/Sources/VLDocument.h @@ -78,6 +78,7 @@ enum { - (IBAction) stop:(id)sender; - (IBAction) playStop:(id)sender; - (IBAction) playMusic:(id)sender; +- (IBAction) adjustTempo:(id)sender; - (IBAction) togglePlayElements:(id)sender; - (NSString *) tmpPath; diff --git a/Sources/VLDocument.mm b/Sources/VLDocument.mm index 60f6327..03f0ecf 100644 --- a/Sources/VLDocument.mm +++ b/Sources/VLDocument.mm @@ -613,6 +613,11 @@ } } +- (IBAction) adjustTempo:(id)sender +{ + [self setSongTempo:[songTempo intValue]+[sender tag]]; +} + - (IBAction) showOutput:(id)sender { [self createTmpFileWithExtension:@"pdf" ofType:@"VLPDFType"];