]> git.sesse.net Git - vlc/blobdiff - modules/gui/macosx/playlist.h
macosx: dynamically create context and main sub menu for playlist table header select...
[vlc] / modules / gui / macosx / playlist.h
index 50a2b9210e8667b00e2b8a9e3f84c43e0bffd825..8c6f9ff4c9a7afbb6e24debb93a10221d24036e7 100644 (file)
 
 #import "PXSourceList.h"
 
+/* playlist column definitions */
+#define TRACKNUM_COLUMN @"tracknumber"
+#define TITLE_COLUMN @"name"
+#define ARTIST_COLUMN @"artist"
+#define DURATION_COLUMN @"duration"
+#define GENRE_COLUMN @"genre"
+#define ALBUM_COLUMN @"album"
+#define DESCRIPTION_COLUMN @"description"
+#define DATE_COLUMN @"date"
+#define LANGUAGE_COLUMN @"language"
+#define URI_COLUMN @"uri"
+
 /*****************************************************************************
  * VLCPlaylistView interface
  *****************************************************************************/
@@ -39,9 +51,6 @@
  *****************************************************************************/
 @interface VLCPlaylistCommon : NSObject <NSOutlineViewDataSource, NSOutlineViewDelegate>
 {
-    IBOutlet id o_tc_name;
-    IBOutlet id o_tc_author;
-    IBOutlet id o_tc_duration;
     IBOutlet VLCPlaylistView* o_outline_view;
 
     IBOutlet id o_tc_name_other;
 
 - (void)setPlaylistRoot: (playlist_item_t *)root_item;
 - (playlist_item_t *)currentPlaylistRoot;
-- (void)initStrings;
 - (playlist_item_t *)selectedPlaylistItem;
 - (NSOutlineView *)outlineView;
-- (void)swapPlaylists:(id)newList;
 @end
 
 /*****************************************************************************
     IBOutlet id o_save_accessory_popup;
     IBOutlet id o_save_accessory_text;
 
+    IBOutlet id o_playlist_header;
 
     NSImage *o_descendingSortingImage;
     NSImage *o_ascendingSortingImage;
 - (void)appendArray:(NSArray*)o_array atPos:(int)i_position enqueue:(BOOL)b_enqueue;
 - (void)appendNodeArray:(NSArray*)o_array inNode:(playlist_item_t *)p_node atPos:(int)i_position enqueue:(BOOL)b_enqueue;
 
+- (void)setColumn: (NSString *)o_column state: (NSInteger)i_state;
 @end