Skip to content
Snippets Groups Projects
Commit 1d0379b4 authored by Marvin Scholz's avatar Marvin Scholz
Browse files

macosx: Remove VLCProgressView

Remove unused VLCProgressView
parent aef2d858
No related branches found
No related tags found
No related merge requests found
......@@ -49,16 +49,6 @@
@end
/*****************************************************************************
* ProgressView
*****************************************************************************/
@interface VLCProgressView : NSView
- (void)scrollWheel:(NSEvent *)o_event;
@end
/*****************************************************************************
* VLCVolumeSliderCommon
*****************************************************************************/
......
......@@ -149,50 +149,6 @@
@end
/*****************************************************************************
* ProgressView
*****************************************************************************/
@implementation VLCProgressView : NSView
- (void)scrollWheel:(NSEvent *)o_event
{
BOOL b_forward = NO;
CGFloat f_deltaY = [o_event deltaY];
CGFloat f_deltaX = [o_event deltaX];
if ([o_event isDirectionInvertedFromDevice])
f_deltaX = -f_deltaX; // optimisation, actually double invertion of f_deltaY here
else
f_deltaY = -f_deltaY;
// positive for left / down, negative otherwise
CGFloat f_delta = f_deltaX + f_deltaY;
CGFloat f_abs;
int i_vlckey;
if (f_delta > 0.0f)
f_abs = f_delta;
else {
b_forward = YES;
f_abs = -f_delta;
}
for (NSUInteger i = 0; i < (int)(f_abs/4.+1.) && f_abs > 0.05 ; i++) {
if (b_forward)
[[VLCCoreInteraction sharedInstance] forwardExtraShort];
else
[[VLCCoreInteraction sharedInstance] backwardExtraShort];
}
}
- (BOOL)acceptsFirstResponder
{
return YES;
}
@end
/*****************************************************************************
* VLCVolumeSliderCommon
*****************************************************************************/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment