]> git.sesse.net Git - vlc/blob - modules/gui/macosx/simple_prefs.h
macosx: fully implemented the interface and audio categories (excepting the visualise...
[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     IBOutlet id o_intf_art_pop;
54     IBOutlet id o_intf_art_txt;
55     IBOutlet id o_intf_fspanel_ckb;
56     IBOutlet id o_intf_lang_pop;
57     IBOutlet id o_intf_lang_txt;
58     IBOutlet id o_intf_meta_ckb;
59     IBOutlet id o_intf_network_box;
60     IBOutlet id o_intf_view;
61     IBOutlet id o_sprefs_basic_box;
62     IBOutlet id o_sprefs_basicFull_matrix;
63     IBOutlet id o_sprefs_cancel_btn;
64     IBOutlet id o_sprefs_controls_box;
65     IBOutlet id o_sprefs_reset_btn;
66     IBOutlet id o_sprefs_save_btn;
67     IBOutlet id o_sprefs_win;
68
69     BOOL b_audioSettingChanged;
70     BOOL b_intfSettingChanged;
71     id o_currentlyShownCategoryView;
72     
73     NSToolbar *o_sprefs_toolbar;
74     
75     intf_thread_t *p_intf;
76 }
77 + (VLCSimplePrefs *)sharedInstance;
78
79 - (NSToolbarItem *) toolbar: (NSToolbar *)o_toolbar 
80       itemForItemIdentifier: (NSString *)o_itemIdent 
81   willBeInsertedIntoToolbar: (BOOL)b_willBeInserted;
82 - (NSArray *)toolbarDefaultItemIdentifiers: (NSToolbar *)toolbar;
83 - (NSArray *)toolbarAllowedItemIdentifiers: (NSToolbar *)toolbar;
84
85 - (void)initStrings;
86 - (void)resetControls;
87 - (void)showSimplePrefs;
88
89 - (IBAction)buttonAction:(id)sender;
90 - (void)sheetDidEnd:(NSWindow *)o_sheet 
91          returnCode:(int)i_return
92         contextInfo:(void *)o_context;
93
94 - (void)saveChangedSettings;
95
96 /* interface */
97 - (IBAction)interfaceSettingChanged:(id)sender;
98 - (void)showInterfaceSettings;
99
100 /* audio */
101 - (IBAction)audioSettingChanged:(id)sender;
102 - (void)showAudioSettings;
103
104 /* video */
105
106 /* subtitles */
107
108 /* input & codecs */
109
110 /* hotkeys */
111
112 @end