]> git.sesse.net Git - vlc/blob - extras/package/macosx/VLC_app/Sources/VLCBrowsableVideoView.h
vlc_threads_funcs.h: Don't attempt to track pthread_cond_wait() that takes a long...
[vlc] / extras / package / macosx / VLC_app / Sources / VLCBrowsableVideoView.h
1 /*****************************************************************************
2  * VLCBrowsableVideoView.h: VideoView subclasses that allow fullscreen
3  * browsing
4  *****************************************************************************
5  * Copyright (C) 2007 Pierre d'Herbemont
6  * Copyright (C) 2007 the VideoLAN team
7  * $Id$
8  *
9  * Authors: Pierre d'Herbemont <pdherbemont # videolan.org>
10  *
11  * This program is free software; you can redistribute it and/or modify
12  * it under the terms of the GNU General Public License as published by
13  * the Free Software Foundation; either version 2 of the License, or
14  * (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software
23  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
24  *****************************************************************************/
25
26 #import <QuartzCore/QuartzCore.h>
27 #import <VLCKit/VLCKit.h>
28 #import "VLCAppAdditions.h"
29
30 @interface VLCBrowsableVideoView : VLCVideoView {
31     BOOL            menuDisplayed;
32     NSArray *       itemsTree;
33     NSRange         displayedItems;
34     NSInteger       selectedIndex;
35     CALayer *       selectionLayer;
36     CALayer *       backLayer;
37     CALayer *       menuLayer;
38     NSIndexPath *   selectedPath;
39     NSString *      nodeKeyPath;
40     NSString *      contentKeyPath;
41     id              selectedObject;
42     BOOL            fullScreen;
43     
44     /* Actions on non-node items*/
45     id target;
46     SEL action;
47
48     /* FullScreenTransition */
49     VLCWindow * fullScreenWindow;
50     NSViewAnimation * fullScreenAnim1;
51     NSViewAnimation * fullScreenAnim2;
52     NSView * tempFullScreenView;
53 }
54
55 /* Binds an nsarray to that property. But don't forget the set the access keys. */
56 @property (retain) NSArray * itemsTree;
57 @property (copy) NSString * nodeKeyPath;
58 @property (copy) NSString * contentKeyPath;
59
60 @property (readonly, retain) id selectedObject;
61
62 @property (readwrite) BOOL fullScreen;
63
64 /* Set up a specific action to do, on items that don't have node.
65  * action first argument is the browsableVideoView. You can get the selected object,
66  * with -selectedObject */
67 @property (retain) id target;
68 @property  SEL action;
69
70 - (void)toggleMenu;
71 - (void)displayMenu;
72 - (void)hideMenu;
73 @end