1 /*****************************************************************************
2 * intf_controller.h: MacOS X plugin for vlc
3 *****************************************************************************
4 * Copyright (C) 2001 VideoLAN
5 * $Id: intf_controller.h,v 1.3 2002/02/18 01:34:44 jlj Exp $
7 * Authors: Florian G. Pflug <fgp@phlo.org>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
22 *****************************************************************************/
24 #include "intf_vlc_wrapper.h"
26 @interface Intf_PlaylistDS : NSObject
28 Intf_VlcWrapper *o_vlc;
29 NSMutableArray *o_playlist;
31 IBOutlet NSTableView *o_table;
37 - (int)numberOfRowsInTableView:(NSTableView *)o_table;
38 - (id)tableView:(NSTableView *)o_table objectValueForTableColumn:(NSTableColumn *)o_column row:(int)i_row;
39 - (void)tableView:(NSTableView *)o_table setObjectValue:o_value forTableColumn:(NSTableColumn *)o_column row:(int)i_index;
43 @interface Intf_Controller : NSObject
45 Intf_VlcWrapper *o_vlc;
47 IBOutlet NSWindow *o_window;
48 IBOutlet NSButton *o_play;
49 IBOutlet NSButton *o_pause;
50 IBOutlet NSButton *o_stop;
51 IBOutlet NSButton *o_stepr;
52 IBOutlet NSButton *o_stepf;
53 IBOutlet NSSlider *o_timeslider;
54 IBOutlet NSTextField *o_currenttime;
55 IBOutlet NSMenuItem *o_menu_fs;
57 IBOutlet Intf_PlaylistDS *o_playlistds;
60 /* Initialization & Event-Management */
62 - (void)applicationDidFinishLaunching:(NSNotification *)o_notification;
66 /* Functions atteched to user interface */
67 - (IBAction)openFile:(id)sender;
68 - (IBAction)pause:(id)sender;
69 - (IBAction)play:(id)sender;
70 - (IBAction)stop:(id)sender;
71 - (IBAction)timeslider_update:(id)slider;
72 - (IBAction)speedslider_update:(id)slider;
73 - (IBAction)fullscreen_toggle:(id)sender;
74 - (IBAction)quit:(id)sender;