]> git.sesse.net Git - vlc/blob - modules/gui/macosx/playlist.h
Consistent strings to avoid duplications
[vlc] / modules / gui / macosx / playlist.h
1 /*****************************************************************************
2  * playlist.h: MacOS X interface module
3  *****************************************************************************
4  * Copyright (C) 2002-2012 VLC authors and VideoLAN
5  * $Id$
6  *
7  * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
8  *          Derk-Jan Hartman <hartman at videolan dot org>
9  *          Felix Paul Kühne <fkuehne at videolan dot org>
10  *
11  * This program is free software; you can redistribute it and/or modify
12  * it under the terms of the GNU General Public License as published by
13  * the Free Software Foundation; either version 2 of the License, or
14  * (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software
23  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
24  *****************************************************************************/
25
26 #import "PXSourceList.h"
27
28 /*****************************************************************************
29  * VLCPlaylistView interface
30  *****************************************************************************/
31 @interface VLCPlaylistView : NSOutlineView
32
33 @end
34
35 /*****************************************************************************
36  * VLCPlaylistWizard interface
37  *****************************************************************************/
38 @interface VLCPlaylistWizard : NSObject
39 - (IBAction)reloadOutlineView;
40
41 @end
42
43 #import "PLModel.h"
44
45 /*****************************************************************************
46  * VLCPlaylist interface
47  *****************************************************************************/
48 @interface VLCPlaylist : NSObject<NSOutlineViewDataSource, NSOutlineViewDelegate>
49 {
50     IBOutlet VLCPlaylistView* o_outline_view;
51
52     IBOutlet id o_controller;
53     IBOutlet id o_playlist_wizard;
54
55     IBOutlet id o_btn_playlist;
56     IBOutlet id o_playlist_view;
57     IBOutlet id o_search_field;
58     IBOutlet id o_mi_save_playlist;
59     IBOutlet id o_ctx_menu;
60
61     IBOutlet id o_mi_play;
62     IBOutlet id o_mi_delete;
63     IBOutlet id o_mi_info;
64     IBOutlet id o_mi_preparse;
65     IBOutlet id o_mi_revealInFinder;
66     IBOutlet id o_mi_dl_cover_art;
67     IBOutlet id o_mi_selectall;
68     IBOutlet id o_mi_sort_name;
69     IBOutlet id o_mi_sort_author;
70     IBOutlet id o_mi_recursive_expand;
71
72     IBOutlet id o_save_accessory_view;
73     IBOutlet id o_save_accessory_popup;
74     IBOutlet id o_save_accessory_text;
75
76     IBOutlet id o_playlist_header;
77
78     int currentResumeTimeout;
79
80     PLModel *o_model;
81 }
82
83 - (PLModel *)model;
84
85 - (void)reloadStyles;
86
87 - (NSMenu *)menuForEvent:(NSEvent *)o_event;
88
89 - (IBAction)searchItem:(id)sender;
90
91 - (void)playlistUpdated;
92 - (void)outlineViewSelectionDidChange:(NSNotification *)notification;
93 - (void)sortNode:(int)i_mode;
94
95 - (void)currentlyPlayingItemChanged;
96
97 - (BOOL)isSelectionEmpty;
98
99 - (void)deletionCompleted;
100
101
102 - (IBAction)playItem:(id)sender;
103 - (IBAction)revealItemInFinder:(id)sender;
104 - (IBAction)preparseItem:(id)sender;
105 - (IBAction)downloadCoverArt:(id)sender;
106 - (IBAction)savePlaylist:(id)sender;
107 - (IBAction)deleteItem:(id)sender;
108 - (IBAction)selectAll:(id)sender;
109 - (IBAction)sortNodeByName:(id)sender;
110 - (IBAction)sortNodeByAuthor:(id)sender;
111 - (IBAction)recursiveExpandNode:(id)sender;
112 - (IBAction)showInfoPanel:(id)sender;
113
114 - (NSArray *)draggedItems;
115
116 /**
117  * Simplified version to add new items at the end of the current playlist
118  */
119 - (void)addPlaylistItems:(NSArray*)o_array;
120
121 /**
122  * Adds new items to the playlist, at specified parent node and index.
123  * @param o_array array of items. Each item is a Dictionary with meta info.
124  * @param i_plItemId parent playlist node id, -1 for default playlist
125  * @param i_position index for new items, -1 for appending at end
126  * @param b_start starts playback of first item if true
127  */
128 - (void)addPlaylistItems:(NSArray*)o_array withParentItemId:(int)i_plItemId atPos:(int)i_position startPlayback:(BOOL)b_start;
129
130
131 - (void)setColumn: (NSString *)o_column state: (NSInteger)i_state translationDict:(NSDictionary *)o_dict;
132 - (void)continuePlaybackWhereYouLeftOff:(input_thread_t *)p_input_thread;
133 - (void)storePlaybackPositionForItem:(input_thread_t *)p_input_thread;
134
135 @end