diff --git a/English.lproj/MainMenu.xib b/English.lproj/MainMenu.xib index 4dc7d8d99..a1b4b2c9d 100644 --- a/English.lproj/MainMenu.xib +++ b/English.lproj/MainMenu.xib @@ -8,15 +8,7 @@ 353.00 YES - - - - - - - - - + YES @@ -88,10 +80,9 @@ Search - + 268 {{0, 14}, {96, 22}} - YES 343014976 @@ -188,10 +179,9 @@ Position - + 270 {{0, 14}, {96, 15}} - YES 604372736 @@ -217,7 +207,7 @@ {96, 15} - {96, 15} + {10000, 15} NO YES 0 @@ -232,10 +222,9 @@ Info Drawer - + 268 {{23, 14}, {24, 25}} - YES 67239424 @@ -274,10 +263,9 @@ Shuffle - + 268 {{10, 14}, {24, 25}} - YES 67239424 @@ -316,10 +304,9 @@ Volume - + 268 {{12, 14}, {24, 25}} - YES 67239424 @@ -358,10 +345,9 @@ File Tree - + 268 {{15, 14}, {24, 25}} - YES 67239424 @@ -400,10 +386,9 @@ Playback Buttons - + 268 {{9, 14}, {80, 24}} - YES -2080244224 @@ -467,10 +452,9 @@ Current Time - + 268 {{20, 14}, {38, 14}} - YES 67239488 @@ -509,10 +493,9 @@ Repeat - + 268 {{10, 14}, {24, 25}} - YES 67239424 @@ -2455,7 +2438,7 @@ OQA {3.40282e+38, 3.40282e+38} {213, 107} - + 256 YES @@ -2526,29 +2509,6 @@ OQA 2322 - - YES - - YES - Apple HTML pasteboard type - Apple PDF pasteboard type - Apple PICT pasteboard type - Apple PNG pasteboard type - Apple URL pasteboard type - CorePasteboardFlavorType 0x6D6F6F76 - CorePasteboardFlavorType 0x75726C20 - NSColor pasteboard type - NSFilenamesPboardType - NSStringPboardType - NeXT Encapsulated PostScript v1.2 pasteboard type - NeXT RTFD pasteboard type - NeXT Rich Text Format v1.0 pasteboard type - NeXT TIFF v4.0 pasteboard type - NeXT font pasteboard type - NeXT ruler pasteboard type - WebURLsWithTitlesPboardType - - {423, 14} @@ -2624,7 +2584,6 @@ OQA {{1, 1}, {423, 200}} - @@ -2656,7 +2615,6 @@ OQA {{20, 60}, {440, 202}} - 18 @@ -2752,7 +2710,6 @@ OQA {480, 376} - {{0, 0}, {1920, 1178}} {213, 129} @@ -2900,7 +2857,7 @@ OQA - + 258 YES @@ -3057,7 +3014,6 @@ OQA {321, 103} - NSView NSResponder @@ -3335,7 +3291,7 @@ OQA FileTreeDataSource - + 256 YES @@ -3363,7 +3319,6 @@ OQA {97, 177} - NSView @@ -3432,7 +3387,7 @@ OQA {3.40282e+38, 3.40282e+38} - + 256 YES @@ -3610,7 +3565,6 @@ OQA {480, 270} - {{0, 0}, {1440, 878}} {3.40282e+38, 3.40282e+38} @@ -6263,6 +6217,14 @@ OQA 2220 + + + playbackController + + + + 2221 + @@ -9128,7 +9090,7 @@ OQA com.apple.InterfaceBuilder.CocoaPlugin - {{140, 396}, {617, 227}} + {{140, 623}, {617, 0}} com.apple.InterfaceBuilder.CocoaPlugin {{85, 558}, {617, 0}} @@ -9445,7 +9407,7 @@ OQA {{195, 555}, {321, 103}} com.apple.InterfaceBuilder.CocoaPlugin - {{331, 436}, {164, 143}} + {{333, 437}, {164, 143}} com.apple.InterfaceBuilder.CocoaPlugin {{58, 502}, {164, 143}} @@ -9547,7 +9509,7 @@ OQA - 2220 + 2221 @@ -10264,6 +10226,10 @@ OQA VolumeButton PopupButton + + playbackController + PlaybackController + IBProjectSource Utils/VolumeButton.h diff --git a/Utils/VolumeButton.h b/Utils/VolumeButton.h index d4354fc95..7f0cdcae8 100644 --- a/Utils/VolumeButton.h +++ b/Utils/VolumeButton.h @@ -8,7 +8,10 @@ #import "PopupButton.h" +@class PlaybackController; + @interface VolumeButton : PopupButton { + IBOutlet PlaybackController *playbackController; } @end diff --git a/Utils/VolumeButton.m b/Utils/VolumeButton.m index 459994f04..3daf5e16c 100644 --- a/Utils/VolumeButton.m +++ b/Utils/VolumeButton.m @@ -13,6 +13,12 @@ - (void)scrollWheel:(NSEvent *)theEvent { + double change = [theEvent deltaY]; + + [(VolumeSlider *)_popView setDoubleValue:[(VolumeSlider *)_popView doubleValue] + change]; + + [playbackController changeVolume:_popView]; + [(VolumeSlider *)_popView showToolTipForDuration:1.0]; }