1 /*****************************************************************************
2 * intf_controller.h: MacOS X plugin for vlc
3 *****************************************************************************
4 * Copyright (C) 2001 VideoLAN
5 * $Id: intf_controller.h,v 1.10 2002/06/02 12:16:31 massiot 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"
25 #include "vout_vlc_wrapper.h"
27 @interface Intf_PlaylistDS : NSObject
29 NSMutableArray *o_playlist;
31 IBOutlet NSTableView *o_table;
36 - (int)numberOfRowsInTableView:(NSTableView *)o_table;
37 - (id)tableView:(NSTableView *)o_table objectValueForTableColumn:(NSTableColumn *)o_column row:(int)i_row;
38 - (void)tableView:(NSTableView *)o_table setObjectValue:o_value forTableColumn:(NSTableColumn *)o_column row:(int)i_index;
42 @interface Intf_Controller : NSObject
44 Intf_VLCWrapper *o_intf;
45 Vout_VLCWrapper *o_vout;
47 NSLock *o_slider_lock;
48 float f_slider, f_slider_old;
50 IBOutlet NSWindow *o_window;
51 IBOutlet NSButton *o_play;
52 IBOutlet NSButton *o_pause;
53 IBOutlet NSButton *o_stop;
54 IBOutlet NSButton *o_stepr;
55 IBOutlet NSButton *o_stepf;
56 IBOutlet NSSlider *o_timeslider;
57 IBOutlet NSTextField *o_time;
59 IBOutlet Intf_PlaylistDS *o_playlistds;
62 /* Initialization & Event-Management */
67 /* NSApplication messages */
68 - (void)applicationWillFinishLaunching:(NSNotification *)o_notification;
69 - (BOOL)application:(NSApplication *)o_app openFile:(NSString *)o_filename;
71 /* Functions attached to user interface */
72 - (IBAction)pause:(id)sender;
73 - (IBAction)play:(id)sender;
74 - (IBAction)stop:(id)sender;
75 - (IBAction)faster:(id)sender;
76 - (IBAction)slower:(id)sender;
77 - (IBAction)prev:(id)sender;
78 - (IBAction)next:(id)sender;
79 - (IBAction)prevChannel:(id)sender;
80 - (IBAction)nextChannel:(id)sender;
81 - (IBAction)loop:(id)sender;
82 - (IBAction)mute:(id)sender;
83 - (IBAction)fullscreen:(id)fullscreen;
84 - (IBAction)eject:(id)sender;
85 - (IBAction)maxvolume:(id)sender;
86 - (IBAction)timesliderUpdate:(id)slider;
87 - (IBAction)quit:(id)sender;
89 - (BOOL)validateMenuItem:(id)sender;