]> git.sesse.net Git - vlc/blobdiff - modules/gui/macosx/playlistinfo.h
macosx: Fix the info panel. Remove the use of maybe-freed-ptr. Make it display curren...
[vlc] / modules / gui / macosx / playlistinfo.h
index f9b302526e64536a4f3d53d82013bb5cc6e4fea6..82cb58223b39cdd61979c4b71383cd3f1b73c6d3 100644 (file)
@@ -1,17 +1,17 @@
 /*****************************************************************************
  * playlistinfo.h: MacOS X interface module
  *****************************************************************************
- * Copyright (C) 2002-2006 the VideoLAN team
+ * Copyright (C) 2002-2008 the VideoLAN team
  * $Id$
  *
  * Authors: Benjamin Pracht <bigben at videolan dot org>
- *          Felix hne <fkuehne at videolan dot org>
+ *          Felix Paul Kühne <fkuehne at videolan dot org>
  *
  * 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
  *****************************************************************************/
 
 /*****************************************************************************
- * VLCPlaylistInfo interface 
+ * VLCPlaylistInfo interface
  *****************************************************************************/
 
+@class VLCInfoTreeItem;
 
 @interface VLCInfo : NSObject
 {
     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;
 
     IBOutlet id o_collection_lbl;
     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;
     IBOutlet id o_video_box;
     IBOutlet id o_video_decoded_lbl;
     IBOutlet id o_video_decoded_txt;
+       IBOutlet id o_fps_lbl;
+       IBOutlet id o_fps_txt;
 
-    playlist_item_t * p_item;
-}
+    VLCInfoTreeItem * rootItem;
 
-- (IBAction)togglePlaylistInfoPanel:(id)sender;
-- (IBAction)toggleInfoPanel:(id)sender;
-- (void)initPanel:(id)sender;
-- (IBAction)infoCancel:(id)sender;
-- (IBAction)infoOk:(id)sender;
-- (playlist_item_t *)getItem;
-- (BOOL)isItemInPlaylist:(playlist_item_t *)p_item;
+    input_item_t * p_item;
+    NSTimer * o_statUpdateTimer;
+}
 
+- (void)initPanel;
+- (IBAction)metaFieldChanged:(id)sender;
+- (IBAction)saveMetaData:(id)sender;
+- (void)initMediaPanelStats;
+- (void)updatePanelWithItem:(input_item_t *)_p_item;
+- (input_item_t *)item;
 - (void)setMeta: (char *)meta forLabel: (id)theItem;
-- (void)updateStatistics;
-/*- (void)setIntStat: (int)value forLabel: (id)theItem withFormat: (NSString *)format;
-- (void)setFloatStat: (float)value forLabel: (id)theItem withFormat: (NSString *)format;
-*/
+- (void)updateStatistics: (NSTimer*)theTimer;
+
++ (VLCInfo *)sharedInstance;
 @end
 
 @interface VLCInfoTreeItem : NSObject
     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;
+- (NSString *)name;
+- (NSString *)value;
 - (void)refresh;
 
 @end