playlist.h 3.43 KB
Newer Older
Renaud Dartus's avatar
Renaud Dartus committed
1
/*****************************************************************************
2
 * playlist.h: MacOS X interface module
Renaud Dartus's avatar
Renaud Dartus committed
3
 *****************************************************************************
4
 * Copyright (C) 2002-2005 VideoLAN
bigben's avatar
...    
bigben committed
5
 * $Id$
Renaud Dartus's avatar
Renaud Dartus committed
6
 *
7
 * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
8
 *          Derk-Jan Hartman <hartman at videolan dot org>
Renaud Dartus's avatar
Renaud Dartus committed
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
 *****************************************************************************/

25
26
27
/*****************************************************************************
 * VLCPlaylistView interface 
 *****************************************************************************/
hartman's avatar
hartman committed
28
@interface VLCPlaylistView : NSOutlineView
29
{
30
31
32
33
34
35
36
37
}

@end

/*****************************************************************************
 * VLCPlaylist interface 
 *****************************************************************************/
@interface VLCPlaylist : NSObject
38
{
bigben's avatar
bigben committed
39
40
    IBOutlet id o_controller;

41
    IBOutlet id o_btn_playlist;
42
    IBOutlet id o_playlist_view;
hartman's avatar
hartman committed
43
    IBOutlet id o_outline_view;
44
45
46
47
48
    IBOutlet id o_tc_name;
    IBOutlet id o_tc_author;
    IBOutlet id o_tc_duration;
    IBOutlet id o_status_field;
    IBOutlet id o_search_field;
49
50
51
    IBOutlet id o_random_ckb;
    IBOutlet id o_loop_popup;
    IBOutlet id o_mi_save_playlist;
52
53
54
55
56
57
    IBOutlet id o_ctx_menu;

    IBOutlet id o_mi_play;
    IBOutlet id o_mi_delete;
    IBOutlet id o_mi_info;
    IBOutlet id o_mi_selectall;
58
59
    IBOutlet id o_mi_sort_name;
    IBOutlet id o_mi_sort_author;
60

61
    /* "services discovery" menu in the playlist menu */
62
63
    IBOutlet id o_mi_services;
    IBOutlet id o_mu_services;
64

65
66
67
    /* "services discovery" menu in the main menu */
    IBOutlet id o_mm_mi_services;
    IBOutlet id o_mm_mu_services;
68

69
70
    NSImage *o_descendingSortingImage;
    NSImage *o_ascendingSortingImage;
bigben's avatar
bigben committed
71

hartman's avatar
hartman committed
72
    NSMutableDictionary *o_outline_dict;
bigben's avatar
bigben committed
73

hartman's avatar
hartman committed
74
75
76
    BOOL b_selected_item_met;
    BOOL b_isSortDescending;
    int i_current_view;
77
    id o_tc_sortColumn;
78
79
}

80
- (void)initStrings;
81
- (void)searchfieldChanged:(NSNotification *)o_notification;
bigben's avatar
bigben committed
82
- (NSMenu *)menuForEvent:(NSEvent *)o_event;
83
- (NSOutlineView *)outlineView;
hartman's avatar
hartman committed
84
85
86

- (IBAction)handlePopUp:(id)sender;
- (IBAction)searchItem:(id)sender;
Jon Lech Johansen's avatar
Jon Lech Johansen committed
87

88
- (void)playlistUpdated;
89
- (void)playModeUpdated;
90
- (void)sortNode:(int)i_mode;
91
- (void)updateRowSelection;
bigben's avatar
bigben committed
92

93
- (IBAction)servicesChange:(id)sender;
bigben's avatar
bigben committed
94
- (IBAction)playItem:(id)sender;
bigben's avatar
bigben committed
95
- (IBAction)deleteItem:(id)sender;
bigben's avatar
bigben committed
96
- (IBAction)selectAll:(id)sender;
97
98
- (IBAction)sortNodeByName:(id)sender;
- (IBAction)sortNodeByAuthor:(id)sender;
99

100
- (void)appendArray:(NSArray*)o_array atPos:(int)i_position enqueue:(BOOL)b_enqueue;
101
- (void)appendNodeArray:(NSArray*)o_array inNode:(playlist_item_t *)p_node atPos:(int)i_position inView:(int)i_view enqueue:(BOOL)b_enqueue;
102

103
104
- (playlist_item_t *)selectedPlaylistItem;

105
@end
106