]> git.sesse.net Git - vlc/blob - modules/gui/macosx/playlistinfo.h
00eb9ed3b062a8cd01daed51b8c68ace0d9c9aef
[vlc] / modules / gui / macosx / playlistinfo.h
1 /*****************************************************************************
2  * playlistinfo.h: MacOS X interface module
3  *****************************************************************************
4  * Copyright (C) 2002-2004 VideoLAN
5  * $Id$
6  *
7  * Authors: Benjamin Pracht <bigben at videolan dot org> 
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  * 
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
22  *****************************************************************************/
23
24 /*****************************************************************************
25  * VLCPlaylistInfo interface 
26  *****************************************************************************/
27
28
29 @interface VLCInfo : NSObject
30 {
31     IBOutlet id o_info_window;
32     IBOutlet id o_uri_lbl;
33     IBOutlet id o_title_lbl;
34     IBOutlet id o_author_lbl;
35     IBOutlet id o_uri_txt;
36     IBOutlet id o_title_txt;
37     IBOutlet id o_author_txt;
38     IBOutlet id o_btn_ok;
39     IBOutlet id o_btn_cancel;
40     IBOutlet id o_btn_delete_group;
41     IBOutlet id o_btn_add_group;
42     IBOutlet id o_outline_view;
43
44     playlist_item_t * p_item;
45 }
46
47 - (IBAction)togglePlaylistInfoPanel:(id)sender;
48 - (IBAction)toggleInfoPanel:(id)sender;
49 - (void)initPanel:(id)sender;
50 - (IBAction)infoCancel:(id)sender;
51 - (IBAction)infoOk:(id)sender;
52 - (playlist_item_t *)getItem;
53 - (bool)isItemInPlaylist:(playlist_item_t *)p_item;
54
55 @end
56
57 @interface VLCInfoTreeItem : NSObject
58 {
59     NSString *o_name;
60     NSString *o_value;
61     int i_object_id;
62     playlist_item_t * p_item;
63     VLCInfoTreeItem *o_parent;
64     NSMutableArray *o_children;
65 }
66
67 + (VLCInfoTreeItem *)rootItem;
68 - (int)numberOfChildren;
69 - (VLCInfoTreeItem *)childAtIndex:(int)i_index;
70 - (NSString *)getName;
71 - (NSString *)getValue;
72 - (void)refresh;
73
74 @end
75