]> git.sesse.net Git - vlc/blob - modules/gui/macosx/simple_prefs.h
macosx: added 'ffmpeg-skiploopfilter' to the simple prefs too and fixed the postproce...
[vlc] / modules / gui / macosx / simple_prefs.h
1 /*****************************************************************************
2 * simple_prefs.h: Simple Preferences for Mac OS X
3 *****************************************************************************
4 * Copyright (C) 2008 the VideoLAN team
5 * $Id$
6 *
7 * Authors: Felix Paul Kühne <fkuehne at videolan dot 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., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22 *****************************************************************************/
23
24 #import <Cocoa/Cocoa.h>
25 #import "intf.h"
26 #import <vlc_common.h>
27
28 @interface VLCSimplePrefs : NSObject
29 {
30     IBOutlet id o_audio_dolby_pop;
31     IBOutlet id o_audio_dolby_txt;
32     IBOutlet id o_audio_effects_box;
33     IBOutlet id o_audio_enable_ckb;
34     IBOutlet id o_audio_general_box;
35     IBOutlet id o_audio_headphone_ckb;
36     IBOutlet id o_audio_lang_fld;
37     IBOutlet id o_audio_lang_txt;
38     IBOutlet id o_audio_last_box;
39     IBOutlet id o_audio_last_ckb;
40     IBOutlet id o_audio_lastpwd_sfld;
41     IBOutlet id o_audio_lastpwd_txt;
42     IBOutlet id o_audio_lastuser_fld;
43     IBOutlet id o_audio_lastuser_txt;
44     IBOutlet id o_audio_norm_ckb;
45     IBOutlet id o_audio_norm_fld;
46     IBOutlet id o_audio_norm_stepper;
47     IBOutlet id o_audio_spdif_ckb;
48     IBOutlet id o_audio_view;
49     IBOutlet id o_audio_visual_pop;
50     IBOutlet id o_audio_visual_txt;
51     IBOutlet id o_audio_vol_fld;
52     IBOutlet id o_audio_vol_sld;
53     IBOutlet id o_audio_vol_txt;
54
55     IBOutlet id o_hotkeys_change_btn;
56     IBOutlet id o_hotkeys_change_lbl;
57     IBOutlet id o_hotkeys_change_keys_lbl;
58     IBOutlet id o_hotkeys_change_taken_lbl;
59     IBOutlet id o_hotkeys_change_win;
60     IBOutlet id o_hotkeys_change_cancel_btn;
61     IBOutlet id o_hotkeys_change_ok_btn;
62     IBOutlet id o_hotkeys_clear_btn;
63     IBOutlet id o_hotkeys_lbl;
64     IBOutlet id o_hotkeys_listbox;
65     IBOutlet id o_hotkeys_view;
66
67     IBOutlet id o_input_avi_pop;
68     IBOutlet id o_input_avi_txt;
69     IBOutlet id o_input_cachelevel_pop;
70     IBOutlet id o_input_cachelevel_txt;
71     IBOutlet id o_input_cachelevel_custom_txt;
72     IBOutlet id o_input_caching_box;
73     IBOutlet id o_input_httpproxy_fld;
74     IBOutlet id o_input_httpproxy_txt;
75     IBOutlet id o_input_httpproxypwd_sfld;
76     IBOutlet id o_input_httpproxypwd_txt;
77     IBOutlet id o_input_mux_box;
78     IBOutlet id o_input_net_box;
79     IBOutlet id o_input_postproc_fld;
80     IBOutlet id o_input_postproc_txt;
81     IBOutlet id o_input_rtsp_ckb;
82     IBOutlet id o_input_skipLoop_txt;
83     IBOutlet id o_input_skipLoop_pop;
84     IBOutlet id o_input_serverport_fld;
85     IBOutlet id o_input_serverport_txt;
86     IBOutlet id o_input_view;
87
88     IBOutlet id o_intf_art_pop;
89     IBOutlet id o_intf_art_txt;
90     IBOutlet id o_intf_embedded_ckb;
91     IBOutlet id o_intf_fspanel_ckb;
92     IBOutlet id o_intf_lang_pop;
93     IBOutlet id o_intf_lang_txt;
94     IBOutlet id o_intf_network_box;
95     IBOutlet id o_intf_view;
96
97     IBOutlet id o_osd_encoding_pop;
98     IBOutlet id o_osd_encoding_txt;
99     IBOutlet id o_osd_font_box;
100     IBOutlet id o_osd_font_btn;
101     IBOutlet id o_osd_font_color_pop;
102     IBOutlet id o_osd_font_color_txt;
103     IBOutlet id o_osd_font_fld;
104     IBOutlet id o_osd_font_size_pop;
105     IBOutlet id o_osd_font_size_txt;
106     IBOutlet id o_osd_font_txt;
107     IBOutlet id o_osd_lang_box;
108     IBOutlet id o_osd_lang_fld;
109     IBOutlet id o_osd_lang_txt;
110     IBOutlet id o_osd_osd_box;
111     IBOutlet id o_osd_osd_ckb;
112     IBOutlet id o_osd_view;
113
114     IBOutlet id o_sprefs_basic_box;
115     IBOutlet id o_sprefs_basicFull_matrix;
116     IBOutlet id o_sprefs_cancel_btn;
117     IBOutlet id o_sprefs_controls_box;
118     IBOutlet id o_sprefs_reset_btn;
119     IBOutlet id o_sprefs_save_btn;
120     IBOutlet id o_sprefs_win;
121
122     IBOutlet id o_video_black_ckb;
123     IBOutlet id o_video_device_pop;
124     IBOutlet id o_video_device_txt;
125     IBOutlet id o_video_display_box;
126     IBOutlet id o_video_enable_ckb;
127     IBOutlet id o_video_fullscreen_ckb;
128     IBOutlet id o_video_onTop_ckb;
129     IBOutlet id o_video_output_pop;
130     IBOutlet id o_video_output_txt;
131     IBOutlet id o_video_skipFrames_ckb;
132     IBOutlet id o_video_snap_box;
133     IBOutlet id o_video_snap_folder_btn;
134     IBOutlet id o_video_snap_folder_fld;
135     IBOutlet id o_video_snap_folder_txt;
136     IBOutlet id o_video_snap_format_pop;
137     IBOutlet id o_video_snap_format_txt;
138     IBOutlet id o_video_snap_prefix_fld;
139     IBOutlet id o_video_snap_prefix_txt;
140     IBOutlet id o_video_snap_seqnum_ckb;
141     IBOutlet id o_video_view;
142
143     BOOL b_audioSettingChanged;
144     BOOL b_intfSettingChanged;
145     BOOL b_videoSettingChanged;
146     BOOL b_osdSettingChanged;
147     BOOL b_inputSettingChanged;
148     BOOL b_hotkeyChanged;
149     id o_currentlyShownCategoryView;
150
151     NSOpenPanel *o_selectFolderPanel;
152     NSArray *o_hotkeyDescriptions;
153     NSArray *o_hotkeysNonUseableKeys;
154     NSMutableArray *o_hotkeySettings;
155     NSNumber *o_keyInTransition;
156
157     intf_thread_t *p_intf;
158 }
159 + (VLCSimplePrefs *)sharedInstance;
160 - (NSString *)OSXKeyToString:(int)val;
161
162 /* toolbar */
163 - (NSToolbarItem *) toolbar: (NSToolbar *)o_toolbar 
164       itemForItemIdentifier: (NSString *)o_itemIdent 
165   willBeInsertedIntoToolbar: (BOOL)b_willBeInserted;
166 - (NSArray *)toolbarDefaultItemIdentifiers: (NSToolbar *)toolbar;
167 - (NSArray *)toolbarAllowedItemIdentifiers: (NSToolbar *)toolbar;
168
169 - (void)initStrings;
170 - (void)resetControls;
171 - (void)showSimplePrefs;
172
173 - (IBAction)buttonAction:(id)sender;
174 - (void)sheetDidEnd:(NSWindow *)o_sheet 
175          returnCode:(int)i_return
176         contextInfo:(void *)o_context;
177
178 - (void)saveChangedSettings;
179
180 /* interface */
181 - (IBAction)interfaceSettingChanged:(id)sender;
182 - (void)showInterfaceSettings;
183
184 /* audio */
185 - (IBAction)audioSettingChanged:(id)sender;
186 - (void)showAudioSettings;
187
188 /* video */
189 - (IBAction)videoSettingChanged:(id)sender;
190 - (void)showVideoSettings;
191
192 /* OSD / subtitles */
193 - (IBAction)osdSettingChanged:(id)sender;
194 - (IBAction)showFontPicker:(id)sender;
195 - (void)showOSDSettings;
196 - (void)changeFont:(id)sender;
197
198 /* input & codecs */
199 - (IBAction)inputSettingChanged:(id)sender;
200 - (void)showInputSettings;
201
202 /* hotkeys */
203 - (IBAction)hotkeySettingChanged:(id)sender;
204 - (void)showHotkeySettings;
205 - (int)numberOfRowsInTableView:(NSTableView *)aTableView;
206 - (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex;
207 - (BOOL)changeHotkeyTo: (int)i_theNewKey;
208
209 @end
210
211 @interface VLCHotkeyChangeWindow : NSWindow
212
213 @end
214
215 @interface VLCSimplePrefsWindow : NSWindow
216
217 @end