playlist.h 2.79 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-2004 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
{
39
    IBOutlet id o_btn_playlist;
hartman's avatar
hartman committed
40
    IBOutlet id o_outline_view;
41 42 43 44 45
    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;
46 47 48
    IBOutlet id o_random_ckb;
    IBOutlet id o_loop_popup;
    IBOutlet id o_mi_save_playlist;
49 50 51 52 53 54
    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;
55 56
    IBOutlet id o_mi_sort_name;
    IBOutlet id o_mi_sort_author;
57

58 59
    NSImage *o_descendingSortingImage;
    NSImage *o_ascendingSortingImage;
bigben's avatar
bigben committed
60 61 62 63

    NSMutableDictionary * o_outline_dict;

    bool b_selected_item_met;
64 65
    bool b_isSortDescending;
    id o_tc_sortColumn;
66 67
}

68
- (IBAction)handlePopUp:(id)sender;
bigben's avatar
bigben committed
69
- (IBAction)searchItem:(id)sender;
70

71
- (void)initStrings;
bigben's avatar
bigben committed
72
- (NSMenu *)menuForEvent:(NSEvent *)o_event;
Jon Lech Johansen's avatar
Jon Lech Johansen committed
73

74
- (void)playlistUpdated;
75
- (void)sortNode:(int)i_mode;
bigben's avatar
bigben committed
76 77

- (IBAction)playItem:(id)sender;
bigben's avatar
bigben committed
78
- (IBAction)deleteItem:(id)sender;
bigben's avatar
bigben committed
79
- (IBAction)selectAll:(id)sender;
80 81
- (IBAction)sortNodeByName:(id)sender;
- (IBAction)sortNodeByAuthor:(id)sender;
82

83
- (void)appendArray:(NSArray*)o_array atPos:(int)i_position enqueue:(BOOL)b_enqueue;
84

85 86
- (playlist_item_t *)selectedPlaylistItem;

87
@end
88