X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fgui%2Fmacosx%2Fplaylistinfo.h;h=c3259a4e387c9a5aa9819e7a029ac86e83a3c92d;hb=09310519c4563642849f7c5ac0e01fa3de5d934e;hp=b312d19df6e1669b6704435a074775a004d3a163;hpb=62282b6d3695dced48260b7444231a047fbc7a5f;p=vlc diff --git a/modules/gui/macosx/playlistinfo.h b/modules/gui/macosx/playlistinfo.h index b312d19df6..c3259a4e38 100644 --- a/modules/gui/macosx/playlistinfo.h +++ b/modules/gui/macosx/playlistinfo.h @@ -1,11 +1,11 @@ /***************************************************************************** * playlistinfo.h: MacOS X interface module ***************************************************************************** - * Copyright (C) 2002-2006 the VideoLAN team + * Copyright (C) 2002-2008 the VideoLAN team * $Id$ * * Authors: Benjamin Pracht - * Felix Kühne + * Felix Paul Kühne * * 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 @@ -26,6 +26,7 @@ * VLCPlaylistInfo interface *****************************************************************************/ +@class VLCInfoTreeItem; @interface VLCInfo : NSObject { @@ -36,10 +37,6 @@ IBOutlet id o_uri_txt; IBOutlet id o_title_txt; IBOutlet id o_author_txt; - IBOutlet id o_btn_ok; - IBOutlet id o_btn_cancel; - IBOutlet id o_btn_delete_group; - IBOutlet id o_btn_add_group; IBOutlet id o_outline_view; IBOutlet id o_tab_view; @@ -60,10 +57,10 @@ IBOutlet id o_nowPlaying_txt; IBOutlet id o_publisher_lbl; IBOutlet id o_publisher_txt; - IBOutlet id o_rating_lbl; - IBOutlet id o_rating_txt; IBOutlet id o_seqNum_lbl; IBOutlet id o_seqNum_txt; + IBOutlet id o_image_well; + IBOutlet id o_saveMetaData_btn; IBOutlet id o_audio_box; IBOutlet id o_audio_decoded_lbl; @@ -98,21 +95,25 @@ IBOutlet id o_fps_lbl; IBOutlet id o_fps_txt; - playlist_item_t * p_item; + VLCInfoTreeItem * rootItem; + + input_item_t * p_item; NSTimer * o_statUpdateTimer; } -- (IBAction)togglePlaylistInfoPanel:(id)sender; -- (IBAction)toggleInfoPanel:(id)sender; -- (void)initPanel:(id)sender; -- (void)updatePanel; -- (IBAction)infoCancel:(id)sender; -- (IBAction)infoOk:(id)sender; -- (playlist_item_t *)getItem; -- (BOOL)isItemInPlaylist:(playlist_item_t *)p_item; +- (void)initPanel; +- (void)stopTimers; +- (IBAction)metaFieldChanged:(id)sender; +- (IBAction)saveMetaData:(id)sender; +- (IBAction)downloadCoverArt:(id)sender; +- (void)initMediaPanelStats; +- (void)updatePanelWithItem:(input_item_t *)_p_item; +- (input_item_t *)item; - (void)setMeta: (char *)meta forLabel: (id)theItem; - (void)updateStatistics: (NSTimer*)theTimer; + ++ (VLCInfo *)sharedInstance; @end @interface VLCInfoTreeItem : NSObject @@ -120,16 +121,15 @@ NSString *o_name; NSString *o_value; int i_object_id; - playlist_item_t * p_item; + input_item_t * p_item; VLCInfoTreeItem *o_parent; NSMutableArray *o_children; } -+ (VLCInfoTreeItem *)rootItem; - (int)numberOfChildren; -- (VLCInfoTreeItem *)childAtIndex:(int)i_index; -- (NSString *)getName; -- (NSString *)getValue; +- (VLCInfoTreeItem *)childAtIndex:(NSUInteger)i_index; +- (NSString *)name; +- (NSString *)value; - (void)refresh; @end