]> git.sesse.net Git - vlc/blob - modules/gui/macosx/simple_prefs.h
macosx: GUI demo of Simple Preferences showing the Interface and Audio categories...
[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
26 @interface VLCSimplePrefs : NSObject
27 {
28     IBOutlet id o_audio_dolby_pop;
29     IBOutlet id o_audio_dolby_txt;
30     IBOutlet id o_audio_effects_box;
31     IBOutlet id o_audio_enable_ckb;
32     IBOutlet id o_audio_general_box;
33     IBOutlet id o_audio_headphone_ckb;
34     IBOutlet id o_audio_lang_fld;
35     IBOutlet id o_audio_lang_txt;
36     IBOutlet id o_audio_last_box;
37     IBOutlet id o_audio_last_ckb;
38     IBOutlet id o_audio_lastpwd_fld;
39     IBOutlet id o_audio_lastpwd_txt;
40     IBOutlet id o_audio_lastuser_fld;
41     IBOutlet id o_audio_lastuser_txt;
42     IBOutlet id o_audio_norm_ckb;
43     IBOutlet id o_audio_norm_fld;
44     IBOutlet id o_audio_spdif_ckb;
45     IBOutlet id o_audio_view;
46     IBOutlet id o_audio_visual_pop;
47     IBOutlet id o_audio_visual_txt;
48     IBOutlet id o_audio_vol_fld;
49     IBOutlet id o_audio_vol_sld;
50     IBOutlet id o_audio_vol_txt;
51     IBOutlet id o_intf_art_pop;
52     IBOutlet id o_intf_art_txt;
53     IBOutlet id o_intf_black_ckb;
54     IBOutlet id o_intf_embvout_ckb;
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)showSimplePrefs;
87
88 - (IBAction)buttonAction:(id)sender;
89 - (void)sheetDidEnd:(NSWindow *)o_sheet 
90          returnCode:(int)i_return
91         contextInfo:(void *)o_context;
92
93 /* interface */
94 - (IBAction)interfaceSettingChanged:(id)sender;
95 - (void)showInterfaceSettings;
96
97 /* audio */
98 - (IBAction)audioSettingChanged:(id)sender;
99 - (void)showAudioSettings;
100
101 /* video */
102
103 /* subtitles */
104
105 /* input & codecs */
106
107 /* hotkeys */
108
109 @end