X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fgui%2Fmacosx%2Fplaylistinfo.h;h=3ae96643bf7be4a04e059e54c9ed23a8f4d3d7cf;hb=7911a9209f1a04fd824e2b41c9e9ee82fcf9b790;hp=120436daa5b6d701b7d030c5c80e78a3b8e2ed1a;hpb=ef5210f89137ff48891404fd80bef9b5e59e99cf;p=vlc diff --git a/modules/gui/macosx/playlistinfo.h b/modules/gui/macosx/playlistinfo.h index 120436daa5..3ae96643bf 100644 --- a/modules/gui/macosx/playlistinfo.h +++ b/modules/gui/macosx/playlistinfo.h @@ -1,16 +1,17 @@ /***************************************************************************** * playlistinfo.h: MacOS X interface module ***************************************************************************** - * Copyright (C) 2002-2004 VideoLAN - * $Id: playlist.h 7015 2004-03-08 15:22:58Z bigben $ + * Copyright (C) 2002-2008 VLC authors and VideoLAN + * $Id$ * - * Authors: Benjamin Pracht + * Authors: Benjamin Pracht + * 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 * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the @@ -18,15 +19,16 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/ /***************************************************************************** - * VLCPlaylistInfo interface + * VLCPlaylistInfo interface *****************************************************************************/ +@class VLCInfoTreeItem; -@interface VLCPlaylistInfo : NSObject +@interface VLCInfo : NSObject { IBOutlet id o_info_window; IBOutlet id o_uri_lbl; @@ -35,16 +37,81 @@ IBOutlet id o_uri_txt; IBOutlet id o_title_txt; IBOutlet id o_author_txt; - IBOutlet id o_btn_info_ok; - IBOutlet id o_btn_info_cancel; IBOutlet id o_outline_view; - IBOutlet id o_vlc_playlist; + + IBOutlet id o_tab_view; + + IBOutlet id o_collection_lbl; + IBOutlet id o_collection_txt; + IBOutlet id o_copyright_lbl; + IBOutlet id o_copyright_txt; + IBOutlet id o_date_lbl; + IBOutlet id o_date_txt; + IBOutlet id o_description_lbl; + IBOutlet id o_description_txt; + IBOutlet id o_encodedby_lbl; + IBOutlet id o_encodedby_txt; + IBOutlet id o_genre_lbl; + IBOutlet id o_genre_txt; + IBOutlet id o_language_lbl; + IBOutlet id o_language_txt; + IBOutlet id o_nowPlaying_lbl; + IBOutlet id o_nowPlaying_txt; + IBOutlet id o_publisher_lbl; + IBOutlet id o_publisher_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_lbl; + IBOutlet id o_audio_decoded_lbl; + IBOutlet id o_audio_decoded_txt; + IBOutlet id o_demux_bitrate_lbl; + IBOutlet id o_demux_bitrate_txt; + IBOutlet id o_demux_bytes_lbl; + IBOutlet id o_demux_bytes_txt; + IBOutlet id o_displayed_lbl; + IBOutlet id o_displayed_txt; + IBOutlet id o_input_bitrate_lbl; + IBOutlet id o_input_bitrate_txt; + IBOutlet id o_input_lbl; + IBOutlet id o_lost_abuffers_lbl; + IBOutlet id o_lost_abuffers_txt; + IBOutlet id o_lost_frames_lbl; + IBOutlet id o_lost_frames_txt; + IBOutlet id o_played_abuffers_lbl; + IBOutlet id o_played_abuffers_txt; + IBOutlet id o_read_bytes_lbl; + IBOutlet id o_read_bytes_txt; + IBOutlet id o_sent_bitrate_lbl; + IBOutlet id o_sent_bitrate_txt; + IBOutlet id o_sent_bytes_lbl; + IBOutlet id o_sent_bytes_txt; + IBOutlet id o_sent_packets_lbl; + IBOutlet id o_sent_packets_txt; + IBOutlet id o_sout_lbl; + IBOutlet id o_video_lbl; + IBOutlet id o_video_decoded_lbl; + IBOutlet id o_video_decoded_txt; + + VLCInfoTreeItem * rootItem; + + input_item_t * p_item; } -- (IBAction)togglePlaylistInfoPanel:(id)sender; -- (IBAction)infoCancel:(id)sender; -- (IBAction)infoOk:(id)sender; +- (void)initPanel; + +- (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; ++ (VLCInfo *)sharedInstance; @end @interface VLCInfoTreeItem : NSObject @@ -52,16 +119,15 @@ NSString *o_name; NSString *o_value; int i_object_id; - int i_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