1 /*****************************************************************************
2 * playlist.h: MacOS X interface module
3 *****************************************************************************
4 * Copyright (C) 2002-2004 VideoLAN
7 * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
8 * Derk-Jan Hartman <hartman at videolan dot org>
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
23 *****************************************************************************/
25 /*****************************************************************************
26 * VLCPlaylistView interface
27 *****************************************************************************/
28 @interface VLCPlaylistView : NSOutlineView
34 /*****************************************************************************
35 * VLCPlaylist interface
36 *****************************************************************************/
37 @interface VLCPlaylist : NSObject
39 IBOutlet id o_controller;
41 IBOutlet id o_btn_playlist;
42 IBOutlet id o_outline_view;
43 IBOutlet id o_tc_name;
44 IBOutlet id o_tc_author;
45 IBOutlet id o_tc_duration;
46 IBOutlet id o_status_field;
47 IBOutlet id o_search_field;
48 IBOutlet id o_random_ckb;
49 IBOutlet id o_loop_popup;
50 IBOutlet id o_mi_save_playlist;
51 IBOutlet id o_ctx_menu;
53 IBOutlet id o_mi_play;
54 IBOutlet id o_mi_delete;
55 IBOutlet id o_mi_info;
56 IBOutlet id o_mi_selectall;
57 IBOutlet id o_mi_sort_name;
58 IBOutlet id o_mi_sort_author;
60 NSImage *o_descendingSortingImage;
61 NSImage *o_ascendingSortingImage;
63 NSMutableDictionary *o_outline_dict;
65 BOOL b_selected_item_met;
66 BOOL b_isSortDescending;
72 - (NSMenu *)menuForEvent:(NSEvent *)o_event;
73 - (NSOutlineView *)playlistView;
75 - (IBAction)handlePopUp:(id)sender;
76 - (IBAction)searchItem:(id)sender;
78 - (void)updateTogglePlaylistState;
79 - (void)playlistUpdated;
80 - (void)sortNode:(int)i_mode;
81 - (void)updateRowSelection;
83 - (IBAction)playItem:(id)sender;
84 - (IBAction)deleteItem:(id)sender;
85 - (IBAction)selectAll:(id)sender;
86 - (IBAction)sortNodeByName:(id)sender;
87 - (IBAction)sortNodeByAuthor:(id)sender;
89 - (void)appendArray:(NSArray*)o_array atPos:(int)i_position enqueue:(BOOL)b_enqueue;
91 - (playlist_item_t *)selectedPlaylistItem;