]> git.sesse.net Git - vlc/blob - modules/gui/macosx/playlist.h
Copyright fixes
[vlc] / modules / gui / macosx / playlist.h
1 /*****************************************************************************
2  * playlist.h: MacOS X interface module
3  *****************************************************************************
4  * Copyright (C) 2002-2005 VideoLAN (Centrale Réseaux) and its contributors
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 : NSOutlineView
29 {
30 }
31
32 @end
33
34 /*****************************************************************************
35  * VLCPlaylist interface 
36  *****************************************************************************/
37 @interface VLCPlaylist : NSObject
38 {
39     IBOutlet id o_controller;
40
41     IBOutlet id o_btn_playlist;
42     IBOutlet id o_playlist_view;
43     IBOutlet id o_outline_view;
44     IBOutlet id o_tc_name;
45     IBOutlet id o_tc_author;
46     IBOutlet id o_tc_duration;
47     IBOutlet id o_status_field;
48     IBOutlet id o_search_field;
49     IBOutlet id o_random_ckb;
50     IBOutlet id o_loop_popup;
51     IBOutlet id o_mi_save_playlist;
52     IBOutlet id o_ctx_menu;
53
54     IBOutlet id o_mi_play;
55     IBOutlet id o_mi_delete;
56     IBOutlet id o_mi_info;
57     IBOutlet id o_mi_selectall;
58     IBOutlet id o_mi_sort_name;
59     IBOutlet id o_mi_sort_author;
60     IBOutlet id o_mi_recursive_expand;
61
62     /* "services discovery" menu in the playlist menu */
63     IBOutlet id o_mi_services;
64     IBOutlet id o_mu_services;
65
66     /* "services discovery" menu in the main menu */
67     IBOutlet id o_mm_mi_services;
68     IBOutlet id o_mm_mu_services;
69
70     NSImage *o_descendingSortingImage;
71     NSImage *o_ascendingSortingImage;
72
73     NSMutableArray *o_nodes_array;
74     NSMutableArray *o_items_array;
75     NSMutableDictionary *o_outline_dict;
76
77     BOOL b_selected_item_met;
78     BOOL b_isSortDescending;
79     int i_current_view;
80     id o_tc_sortColumn;
81 }
82
83 - (void)initStrings;
84 - (void)searchfieldChanged:(NSNotification *)o_notification;
85 - (NSMenu *)menuForEvent:(NSEvent *)o_event;
86 - (NSOutlineView *)outlineView;
87
88 - (IBAction)handlePopUp:(id)sender;
89 - (IBAction)searchItem:(id)sender;
90
91 - (void)playlistUpdated;
92 - (void)playModeUpdated;
93 - (void)sortNode:(int)i_mode;
94 - (void)updateRowSelection;
95
96 - (IBAction)servicesChange:(id)sender;
97 - (IBAction)playItem:(id)sender;
98 - (IBAction)savePlaylist:(id)sender;
99 - (IBAction)deleteItem:(id)sender;
100 - (IBAction)selectAll:(id)sender;
101 - (IBAction)sortNodeByName:(id)sender;
102 - (IBAction)sortNodeByAuthor:(id)sender;
103 - (IBAction)recursiveExpandNode:(id)sender;
104
105 - (void)appendArray:(NSArray*)o_array atPos:(int)i_position enqueue:(BOOL)b_enqueue;
106 - (void)appendNodeArray:(NSArray*)o_array inNode:(playlist_item_t *)p_node atPos:(int)i_position inView:(int)i_view enqueue:(BOOL)b_enqueue;
107
108 - (playlist_item_t *)selectedPlaylistItem;
109
110 @end
111