/*****************************************************************************
* misc.h: code not specific to vlc
*****************************************************************************
- * Copyright (C) 2003 the VideoLAN team
+ * Copyright (C) 2003-2011 VLC authors and VideoLAN
* $Id$
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
+ * Felix Paul Kühne <fkuehne at videolan dot org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
#import <Cocoa/Cocoa.h>
#import <ApplicationServices/ApplicationServices.h>
+#import "CompatibilityFixes.h"
/*****************************************************************************
* NSAnimation (VLCAddition)
* Missing extension to NSWindow
*****************************************************************************/
-@interface VLCWindow : NSWindow
+@interface VLCWindow : NSWindow <NSWindowDelegate>
{
BOOL b_canBecomeKeyWindow;
BOOL b_isset_canBecomeKeyWindow;
@end
-/*****************************************************************************
- * VLCControllerWindow
- *****************************************************************************/
-
-
-@interface VLCControllerWindow : NSWindow
-{
-}
-
-@end
-
/*****************************************************************************
* VLCControllerView
*****************************************************************************/
@end
/*****************************************************************************
- * ITSliderCell
+ * TimeLineSlider
+ *****************************************************************************/
+
+@interface TimeLineSlider : NSSlider
+{
+}
+
+- (void)drawRect:(NSRect)rect;
+- (void)drawKnobInRect:(NSRect)knobRect;
+
+@end
+
+/*****************************************************************************
+ * ITSlider
*****************************************************************************/
-
+
@interface ITSlider : NSSlider
{
}
+- (void)drawRect:(NSRect)rect;
+- (void)drawKnobInRect:(NSRect)knobRect;
+
+@end
+
+/*****************************************************************************
+ * VLCTimeField interface
+ *****************************************************************************
+ * we need the implementation to catch our click-event in the controller window
+ *****************************************************************************/
+
+@interface VLCTimeField : NSTextField
+{
+}
+- (BOOL)timeRemaining;
@end
/*****************************************************************************
- * ITSliderCell
+ * VLCMainWindowSplitView interface
*****************************************************************************/
-
-@interface ITSliderCell : NSSliderCell
+@interface VLCMainWindowSplitView : NSSplitView
{
- NSImage *_knobOff;
- NSImage *_knobOn;
- BOOL b_mouse_down;
}
@end