]> git.sesse.net Git - vlc/blob - modules/gui/macosx/extended.h
macosx: Use a toolbar to display controls. (Doesn't look like a toolbar though)
[vlc] / modules / gui / macosx / extended.h
1 /*****************************************************************************
2  * extended.h: MacOS X Extended interface panel
3  *****************************************************************************
4  * Copyright (C) 2005-2007 the VideoLAN team
5  * $Id$
6  *
7  * Authors: Felix Paul Kühne <fkuehne@videolan.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 /*****************************************************************************
25  * VLCExtended
26  *****************************************************************************/
27
28 #import <Cocoa/Cocoa.h>
29 #import "intf.h"
30 #import <vlc_common.h>
31
32 @interface VLCExtended : NSObject
33 {
34     /* views and window */
35     IBOutlet id o_adjustImg_view;
36     IBOutlet id o_audioFlts_view;
37     IBOutlet id o_videoFilters_view;
38     IBOutlet id o_extended_window;
39
40     /* window content */
41     IBOutlet id o_selector_pop;
42     IBOutlet id o_top_controls_box;
43
44     /* video filters */
45     IBOutlet id o_btn_vidFlts_mrInfo;
46     IBOutlet id o_ckb_blur;
47     IBOutlet id o_ckb_imgClone;
48     IBOutlet id o_ckb_imgCrop;
49     IBOutlet id o_ckb_imgInvers;
50     IBOutlet id o_ckb_trnsform;
51     IBOutlet id o_ckb_intZoom;
52     IBOutlet id o_ckb_wave;
53     IBOutlet id o_ckb_ripple;
54     IBOutlet id o_ckb_psycho;
55     IBOutlet id o_ckb_gradient;
56     IBOutlet id o_lbl_general;
57     IBOutlet id o_lbl_distort;
58
59     /* audio filters */
60     IBOutlet id o_ckb_vlme_norm;
61     IBOutlet id o_ckb_hdphnVirt;
62     IBOutlet id o_lbl_maxLevel;
63     IBOutlet id o_sld_maxLevel;
64
65     /* adjust image */
66     IBOutlet id o_btn_rstrDefaults;
67     IBOutlet id o_ckb_enblAdjustImg;
68     IBOutlet id o_lbl_brightness;
69     IBOutlet id o_lbl_contrast;
70     IBOutlet id o_lbl_gamma;
71     IBOutlet id o_lbl_hue;
72     IBOutlet id o_lbl_saturation;
73     IBOutlet id o_lbl_opaque;
74     IBOutlet id o_sld_brightness;
75     IBOutlet id o_sld_contrast;
76     IBOutlet id o_sld_gamma;
77     IBOutlet id o_sld_hue;
78     IBOutlet id o_sld_saturation;
79     IBOutlet id o_sld_opaque;
80
81     /* global variables */
82     NSView * o_currentlyshown_view;
83     BOOL o_config_changed;
84 }
85
86 - (IBAction)viewSelectorAction:(id)sender;
87 - (IBAction)enableAdjustImage:(id)sender;
88 - (IBAction)restoreDefaultsForAdjustImage:(id)sender;
89 - (IBAction)sliderActionAdjustImage:(id)sender;
90 - (IBAction)opaqueSliderAction:(id)sender;
91 - (IBAction)enableHeadphoneVirtualizer:(id)sender;
92 - (IBAction)sliderActionMaximumAudioLevel:(id)sender;
93 - (IBAction)enableVolumeNormalization:(id)sender;
94 - (IBAction)videoFilterAction:(id)sender;
95 - (IBAction)moreInfoVideoFilters:(id)sender;
96
97 + (VLCExtended *)sharedInstance;
98 - (BOOL)getConfigChanged;
99
100 - (void)showPanel;
101 - (void)initStrings;
102 - (void)changeVoutFiltersString: (char *)psz_name onOrOff: (bool )b_add;
103 - (void)changeVideoFiltersString: (char *)psz_name onOrOff: (bool )b_add;
104 - (void)changeAFiltersString: (char *)psz_name onOrOff: (bool )b_add;
105 - (void)savePrefs;
106 @end