]> git.sesse.net Git - vlc/blob - plugins/macosx/intf_controller.h
* MacOS X vout improvements
[vlc] / plugins / macosx / intf_controller.h
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 $
6  *
7  * Authors: Florian G. Pflug <fgp@phlo.org>
8  *
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.
13  * 
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.
18  *
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  *****************************************************************************/
23
24 #include "intf_vlc_wrapper.h"
25
26 @interface Intf_PlaylistDS : NSObject
27 {
28     Intf_VlcWrapper      *o_vlc;
29     NSMutableArray       *o_playlist;
30
31     IBOutlet NSTableView *o_table;
32 }
33
34 - (void)awakeFromNib;
35 - (void)readPlaylist;
36
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;
40
41 @end
42
43 @interface Intf_Controller : NSObject
44 {
45     Intf_VlcWrapper *o_vlc;
46
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;
56
57     IBOutlet Intf_PlaylistDS *o_playlistds;
58 }
59
60 /* Initialization & Event-Management */
61 - (void)awakeFromNib;
62 - (void)applicationDidFinishLaunching:(NSNotification *)o_notification;
63 - (void)manage;
64 - (void)terminate;
65
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;
75
76 @end