]> git.sesse.net Git - vlc/blob - modules/gui/macosx/playlist.h
Add "enable/disable all group items" functions in playlist context menu
[vlc] / modules / gui / macosx / playlist.h
1 /*****************************************************************************
2  * playlist.h: MacOS X interface module
3  *****************************************************************************
4  * Copyright (C) 2002-2004 VideoLAN
5  * $Id$
6  *
7  * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
8  *          Derk-Jan Hartman <hartman at videolan dot org>
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     bool b_isSortDescending;
41
42     IBOutlet id o_window;
43     IBOutlet id o_btn_playlist;
44     IBOutlet id o_table_view;
45
46     IBOutlet id o_status_field;
47     IBOutlet id o_tc_id;
48     IBOutlet id o_tc_name;
49     IBOutlet id o_tc_author;
50     IBOutlet id o_tc_duration;
51     IBOutlet id o_tc_sortColumn;
52
53     IBOutlet id o_ctx_menu;
54     IBOutlet id o_mi_save_playlist;
55     IBOutlet id o_mi_info;
56     IBOutlet id o_mi_play;
57     IBOutlet id o_mi_delete;
58     IBOutlet id o_mi_selectall;
59     IBOutlet id o_mi_toggleItemsEnabled;
60     IBOutlet id o_mi_enableGroup;
61     IBOutlet id o_mi_disableGroup;
62
63     IBOutlet id o_random_ckb;
64
65     IBOutlet id o_search_keyword;
66     IBOutlet id o_search_button;
67
68     IBOutlet id o_loop_popup;
69
70 /*For playlist info window*/
71
72     IBOutlet id o_info_window;
73     IBOutlet id o_uri_lbl;
74     IBOutlet id o_title_lbl;
75     IBOutlet id o_author_lbl;
76     IBOutlet id o_uri_txt;
77     IBOutlet id o_title_txt;
78     IBOutlet id o_author_txt;
79     IBOutlet id o_btn_info_ok;
80     IBOutlet id o_btn_info_cancel;
81     IBOutlet id o_tbv_info;
82
83     NSImage *o_descendingSortingImage;
84     NSImage *o_ascendingSortingImage;
85 }
86
87 - (void)initStrings;
88 - (NSMenu *)menuForEvent:(NSEvent *)o_event;
89
90 - (IBAction)toggleWindow:(id)sender;
91 - (IBAction)savePlaylist:(id)sender;
92 - (IBAction)playItem:(id)sender;
93 - (IBAction)deleteItems:(id)sender;
94 - (IBAction)toggleItemsEnabled:(id)sender;
95 - (IBAction)enableGroup:(id)sender;
96 - (IBAction)disableGroup:(id)sender;
97 - (IBAction)selectAll:(id)sender;
98 - (IBAction)searchItem:(id)sender;
99 - (IBAction)handlePopUp:(id)sender;
100
101 - (void)appendArray:(NSArray*)o_array atPos:(int)i_position enqueue:(BOOL)b_enqueue;
102
103 - (void)updateRowSelection;
104 - (void)playlistUpdated;
105
106 /*For playlist info window*/
107
108 - (int)selectedPlaylistItem;
109 - (NSColor *)getColor:(int)i_group;
110
111 @end
112