]> git.sesse.net Git - vlc/blob - modules/gui/macosx/playlist.h
Added random, repeat one and repeat all checkboxes to the playlist
[vlc] / modules / gui / macosx / playlist.h
1 /*****************************************************************************
2  * playlist.h: MacOS X interface plugin
3  *****************************************************************************
4  * Copyright (C) 2002-2003 VideoLAN
5  * $Id: playlist.h,v 1.13 2003/11/16 11:21:48 bigben Exp $
6  *
7  * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
8  *          Derk-Jan Hartman <thedj@users.sourceforge.net>
9  *
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.
14  * 
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.
19  *
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  *****************************************************************************/
24
25 /*****************************************************************************
26  * VLCPlaylistView interface 
27  *****************************************************************************/
28 @interface VLCPlaylistView : NSTableView
29 {
30 }
31
32 @end
33
34 /*****************************************************************************
35  * VLCPlaylist interface 
36  *****************************************************************************/
37 @interface VLCPlaylist : NSObject
38 {
39     int i_moveRow;
40     
41     IBOutlet id o_window;
42     IBOutlet id o_table_view;
43     
44     IBOutlet id o_status_field;
45     IBOutlet id o_tc_name;
46     IBOutlet id o_tc_author;
47
48     IBOutlet id o_ctx_menu;
49     IBOutlet id o_mi_save_playlist;
50     IBOutlet id o_mi_play;
51     IBOutlet id o_mi_delete;
52     IBOutlet id o_mi_selectall;
53
54     IBOutlet id o_random_ckb;
55     IBOutlet id o_loop_ckb;
56     IBOutlet id o_repeat_ckb;
57 }
58
59 - (NSMenu *)menuForEvent:(NSEvent *)o_event;
60
61 - (IBAction)toggleWindow:(id)sender;
62 - (IBAction)savePlaylist:(id)sender;
63 - (IBAction)playItem:(id)sender;
64 - (IBAction)deleteItems:(id)sender;
65 - (IBAction)selectAll:(id)sender;
66
67 - (void)appendArray:(NSArray*)o_array atPos:(int)i_position enqueue:(BOOL)b_enqueue;
68
69 - (void)updateRowSelection;
70 - (void)playlistUpdated;
71
72 @end