]> git.sesse.net Git - vlc/blob - modules/gui/macosx/vlm.h
legacy OS X intf: fixed check-for-update and fullscreen-toggle menu items
[vlc] / modules / gui / macosx / vlm.h
1 /*****************************************************************************
2  * vlm.h: VLM Configuration panel for Mac OS X
3  *****************************************************************************
4  * Copyright (c) 2008 the VideoLAN team
5  * $Id$
6  *
7  * Authors: Felix Paul Kühne <fkuehne@videolan.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
25 #ifdef HAVE_CONFIG_H
26 #   import "config.h"
27 #endif
28
29 #ifdef ENABLE_VLM
30
31 #import <Cocoa/Cocoa.h>
32 #import "intf.h"
33
34 #import <vlc_vlm.h>
35
36 @interface VLCVLMController : NSObject
37 {
38     /* broadcast panel */
39     IBOutlet NSButton *o_bcast_add_btn;
40     IBOutlet NSBox *o_bcast_box;
41     IBOutlet NSButton *o_bcast_cancel_btn;
42     IBOutlet NSButton *o_bcast_enable_ckb;
43     IBOutlet NSButton *o_bcast_input_btn;
44     IBOutlet NSTextField *o_bcast_input_fld;
45     IBOutlet NSButton *o_bcast_loop_ckb;
46     IBOutlet NSTextField *o_bcast_name_fld;
47     IBOutlet NSButton *o_bcast_output_btn;
48     IBOutlet NSTextField *o_bcast_output_fld;
49     IBOutlet NSPanel *o_bcast_panel;
50
51     /* schedule panel */
52     IBOutlet id o_sched_add_btn;
53     IBOutlet id o_sched_box;
54     IBOutlet id o_sched_cancel_btn;
55     IBOutlet NSDatePicker *o_sched_date_datePicker;
56     IBOutlet NSTextField *o_sched_date_lbl;
57     IBOutlet NSButton *o_sched_input_btn;
58     IBOutlet NSTextField *o_sched_input_fld;
59     IBOutlet NSTextField *o_sched_input_lbl;
60     IBOutlet NSTextField *o_sched_name_fld;
61     IBOutlet NSTextField *o_sched_name_lbl;
62     IBOutlet NSButton *o_sched_output_btn;
63     IBOutlet NSTextField *o_sched_output_fld;
64     IBOutlet NSTextField *o_sched_output_lbl;
65     IBOutlet NSTextField *o_sched_repeat_fld;
66     IBOutlet NSTextField *o_sched_repeat_lbl;
67     IBOutlet NSDatePicker *o_sched_repeatDelay_datePicker;
68     IBOutlet id o_sched_time_box;
69     IBOutlet NSWindow *o_sched_panel;
70
71     /* VLM Window */
72     IBOutlet NSTableView *o_vlm_list;
73     IBOutlet NSWindow *o_vlm_win;
74
75     /* VOD Panel */
76     IBOutlet NSButton *o_vod_add_btn;
77     IBOutlet id o_vod_box;
78     IBOutlet NSButton *o_vod_cancel_btn;
79     IBOutlet NSButton *o_vod_input_btn;
80     IBOutlet NSTextField *o_vod_input_fld;
81     IBOutlet NSTextField *o_vod_input_lbl;
82     IBOutlet NSButton *o_vod_loop_ckb;
83     IBOutlet NSTextField *o_vod_name_fld;
84     IBOutlet NSTextField *o_vod_name_lbl;
85     IBOutlet NSButton *o_vod_output_btn;
86     IBOutlet NSTextField *o_vod_output_fld;
87     IBOutlet NSTextField *o_vod_output_lbl;
88     IBOutlet NSWindow *o_vod_panel;
89 }
90 + (VLCVLMController *)sharedInstance;
91
92 /* toolbar */
93 - (NSToolbarItem *) toolbar: (NSToolbar *)o_toolbar 
94       itemForItemIdentifier: (NSString *)o_itemIdent 
95   willBeInsertedIntoToolbar: (BOOL)b_willBeInserted;
96 - (NSArray *)toolbarDefaultItemIdentifiers: (NSToolbar *)toolbar;
97 - (NSArray *)toolbarAllowedItemIdentifiers: (NSToolbar *)toolbar;
98
99 - (void)showVLMWindow;
100 - (void)initStrings;
101
102 - (void)addBcast;
103 - (void)addVOD;
104 - (void)addSched;
105
106 - (IBAction)bcastButtonAction:(id)sender;
107 - (IBAction)listDoubleClickAction:(id)sender;
108 - (IBAction)schedButtonAction:(id)sender;
109 - (IBAction)vodButtonAction:(id)sender;
110
111 - (int)numberOfRowsInTableView:(NSTableView *)aTableView;
112 - (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex;
113 @end
114
115 #endif