]> git.sesse.net Git - vlc/blob - modules/gui/macosx/simple_prefs.h
macosx: Implemented the Subs/OSD and Input categories of the Simple Prefs
[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/vlc.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_fld;
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_spdif_ckb;
47     IBOutlet id o_audio_view;
48     IBOutlet id o_audio_visual_pop;
49     IBOutlet id o_audio_visual_txt;
50     IBOutlet id o_audio_vol_fld;
51     IBOutlet id o_audio_vol_sld;
52     IBOutlet id o_audio_vol_txt;
53
54     IBOutlet id o_input_access_box;
55     IBOutlet id o_input_avi_pop;
56     IBOutlet id o_input_avi_txt;
57     IBOutlet id o_input_bandwidth_ckb;
58     IBOutlet id o_input_cachelevel_pop;
59     IBOutlet id o_input_cachelevel_txt;
60     IBOutlet id o_input_caching_box;
61     IBOutlet id o_input_dump_ckb;
62     IBOutlet id o_input_httpproxy_fld;
63     IBOutlet id o_input_httpproxy_txt;
64     IBOutlet id o_input_mux_box;
65     IBOutlet id o_input_net_box;
66     IBOutlet id o_input_postproc_fld;
67     IBOutlet id o_input_postproc_txt;
68     IBOutlet id o_input_record_ckb;
69     IBOutlet id o_input_rtsp_ckb;
70     IBOutlet id o_input_serverport_fld;
71     IBOutlet id o_input_serverport_txt;
72     IBOutlet id o_input_timeshift_ckb;
73     IBOutlet id o_input_view;
74
75     IBOutlet id o_intf_art_pop;
76     IBOutlet id o_intf_art_txt;
77     IBOutlet id o_intf_embedded_ckb;
78     IBOutlet id o_intf_fspanel_ckb;
79     IBOutlet id o_intf_lang_pop;
80     IBOutlet id o_intf_lang_txt;
81     IBOutlet id o_intf_meta_ckb;
82     IBOutlet id o_intf_network_box;
83     IBOutlet id o_intf_view;
84
85     IBOutlet id o_osd_encoding_pop;
86     IBOutlet id o_osd_encoding_txt;
87     IBOutlet id o_osd_font_box;
88     IBOutlet id o_osd_font_btn;
89     IBOutlet id o_osd_font_color_pop;
90     IBOutlet id o_osd_font_color_txt;
91     IBOutlet id o_osd_font_effect_pop;
92     IBOutlet id o_osd_font_effect_txt;
93     IBOutlet id o_osd_font_fld;
94     IBOutlet id o_osd_font_size_pop;
95     IBOutlet id o_osd_font_size_txt;
96     IBOutlet id o_osd_font_txt;
97     IBOutlet id o_osd_lang_box;
98     IBOutlet id o_osd_lang_fld;
99     IBOutlet id o_osd_lang_txt;
100     IBOutlet id o_osd_osd_box;
101     IBOutlet id o_osd_osd_ckb;
102     IBOutlet id o_osd_view;
103
104     IBOutlet id o_sprefs_basic_box;
105     IBOutlet id o_sprefs_basicFull_matrix;
106     IBOutlet id o_sprefs_cancel_btn;
107     IBOutlet id o_sprefs_controls_box;
108     IBOutlet id o_sprefs_reset_btn;
109     IBOutlet id o_sprefs_save_btn;
110     IBOutlet id o_sprefs_win;
111
112     IBOutlet id o_video_black_ckb;
113     IBOutlet id o_video_device_pop;
114     IBOutlet id o_video_device_txt;
115     IBOutlet id o_video_display_box;
116     IBOutlet id o_video_enable_ckb;
117     IBOutlet id o_video_fullscreen_ckb;
118     IBOutlet id o_video_onTop_ckb;
119     IBOutlet id o_video_output_pop;
120     IBOutlet id o_video_output_txt;
121     IBOutlet id o_video_skipFrames_ckb;
122     IBOutlet id o_video_snap_box;
123     IBOutlet id o_video_snap_folder_btn;
124     IBOutlet id o_video_snap_folder_fld;
125     IBOutlet id o_video_snap_folder_txt;
126     IBOutlet id o_video_snap_format_pop;
127     IBOutlet id o_video_snap_format_txt;
128     IBOutlet id o_video_snap_prefix_fld;
129     IBOutlet id o_video_snap_prefix_txt;
130     IBOutlet id o_video_snap_seqnum_ckb;
131     IBOutlet id o_video_view;
132
133     BOOL b_audioSettingChanged;
134     BOOL b_intfSettingChanged;
135     BOOL b_videoSettingChanged;
136     BOOL b_osdSettingChanged;
137     BOOL b_inputSettingChanged;
138     id o_currentlyShownCategoryView;
139
140     NSToolbar *o_sprefs_toolbar;
141     NSOpenPanel *o_selectFolderPanel;
142
143     intf_thread_t *p_intf;
144 }
145 + (VLCSimplePrefs *)sharedInstance;
146
147 /* toolbar */
148 - (NSToolbarItem *) toolbar: (NSToolbar *)o_toolbar 
149       itemForItemIdentifier: (NSString *)o_itemIdent 
150   willBeInsertedIntoToolbar: (BOOL)b_willBeInserted;
151 - (NSArray *)toolbarDefaultItemIdentifiers: (NSToolbar *)toolbar;
152 - (NSArray *)toolbarAllowedItemIdentifiers: (NSToolbar *)toolbar;
153
154 - (void)initStrings;
155 - (void)resetControls;
156 - (void)showSimplePrefs;
157
158 - (IBAction)buttonAction:(id)sender;
159 - (void)sheetDidEnd:(NSWindow *)o_sheet 
160          returnCode:(int)i_return
161         contextInfo:(void *)o_context;
162
163 - (void)saveChangedSettings;
164
165 /* interface */
166 - (IBAction)interfaceSettingChanged:(id)sender;
167 - (void)showInterfaceSettings;
168
169 /* audio */
170 - (IBAction)audioSettingChanged:(id)sender;
171 - (void)showAudioSettings;
172
173 /* video */
174 - (IBAction)videoSettingChanged:(id)sender;
175 - (void)showVideoSettings;
176
177 /* OSD / subtitles */
178 - (IBAction)osdSettingChanged:(id)sender;
179 - (void)showOSDSettings;
180
181 /* input & codecs */
182 - (IBAction)inputSettingChanged:(id)sender;
183 - (void)showInputSettings;
184
185 /* hotkeys */
186
187 @end