1 /*****************************************************************************
2 * playlistinfo.h: MacOS X interface module
3 *****************************************************************************
4 * Copyright (C) 2002-2004 the VideoLAN team
7 * Authors: Benjamin Pracht <bigben at videolan dot org>
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.
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.
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 *****************************************************************************/
24 /*****************************************************************************
25 * VLCPlaylistInfo interface
26 *****************************************************************************/
29 @interface VLCInfo : NSObject
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;
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;
44 playlist_item_t * p_item;
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;
57 @interface VLCInfoTreeItem : NSObject
62 playlist_item_t * p_item;
63 VLCInfoTreeItem *o_parent;
64 NSMutableArray *o_children;
67 + (VLCInfoTreeItem *)rootItem;
68 - (int)numberOfChildren;
69 - (VLCInfoTreeItem *)childAtIndex:(int)i_index;
70 - (NSString *)getName;
71 - (NSString *)getValue;