1 /*****************************************************************************
2 * vlm.h: VLM Configuration panel for Mac OS X
3 *****************************************************************************
4 * Copyright (c) 2008 the VideoLAN team
7 * Authors: Felix Paul Kühne <fkuehne@videolan.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 *****************************************************************************/
31 #import <Cocoa/Cocoa.h>
36 @interface VLCVLMController : NSObject
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;
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;
72 IBOutlet NSTableView *o_vlm_list;
73 IBOutlet NSWindow *o_vlm_win;
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;
90 + (VLCVLMController *)sharedInstance;
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;
99 - (void)showVLMWindow;
106 - (IBAction)bcastButtonAction:(id)sender;
107 - (IBAction)listDoubleClickAction:(id)sender;
108 - (IBAction)schedButtonAction:(id)sender;
109 - (IBAction)vodButtonAction:(id)sender;
111 - (int)numberOfRowsInTableView:(NSTableView *)aTableView;
112 - (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex;