]> git.sesse.net Git - vlc/blob - plugins/macosx/intf_controller.h
video output has better handling of settings. it remembers flags like fullscreen...
[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.8.2.3 2002/06/19 22:45:26 massiot 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 #include "vout_vlc_wrapper.h"
26
27 @interface Intf_PlaylistDS : NSObject
28 {
29     NSMutableArray       *o_playlist;
30
31     IBOutlet NSTableView *o_table;
32 }
33
34 - (void)readPlaylist;
35
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;
39
40 @end
41
42 @interface Intf_Controller : NSObject
43 {
44     Intf_VLCWrapper *o_intf;
45     Vout_VLCWrapper *o_vout;
46
47     NSLock *o_slider_lock;
48     float f_slider, f_slider_old;
49
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;
58
59     IBOutlet Intf_PlaylistDS *o_playlistds;
60 }
61
62 /* Initialization & Event-Management */
63 - (void)awakeFromNib;
64 - (void)manage;
65 - (void)terminate;
66
67 /* NSApplication messages */
68 - (void)applicationWillFinishLaunching:(NSNotification *)o_notification;
69 - (BOOL)application:(NSApplication *)o_app openFile:(NSString *)o_filename;
70
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)deinterlace:(id)sender;
83 - (IBAction)mute:(id)sender;
84 - (IBAction)fullscreen:(id)fullscreen;
85 - (IBAction)eject:(id)sender;
86 - (IBAction)maxvolume:(id)sender;
87 - (IBAction)timesliderUpdate:(id)slider;
88 - (IBAction)quit:(id)sender;
89
90 - (BOOL)validateMenuItem:(id)sender;
91
92 @end