Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
d53743bf
Commit
d53743bf
authored
Jul 16, 2015
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx/audio effects: remove object instance from xib file and further reduce the exposed class API
parent
5ef7a61e
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1520 additions
and
6175 deletions
+1520
-6175
extras/package/macosx/Resources/English.lproj/AudioEffects.xib
...s/package/macosx/Resources/English.lproj/AudioEffects.xib
+1212
-5865
modules/gui/macosx/AudioEffects.h
modules/gui/macosx/AudioEffects.h
+89
-97
modules/gui/macosx/AudioEffects.m
modules/gui/macosx/AudioEffects.m
+218
-212
modules/gui/macosx/MainMenu.m
modules/gui/macosx/MainMenu.m
+1
-1
No files found.
extras/package/macosx/Resources/English.lproj/AudioEffects.xib
View file @
d53743bf
This diff is collapsed.
Click to expand it.
modules/gui/macosx/AudioEffects.h
View file @
d53743bf
/*****************************************************************************
* AudioEffects.h: MacOS X interface module
*****************************************************************************
* Copyright (C) 2004-201
2
VLC authors and VideoLAN
* Copyright (C) 2004-201
5
VLC authors and VideoLAN
* $Id$
*
* Authors: Felix Paul Kühne <fkuehne -at- videolan -dot- org>
...
...
@@ -24,122 +24,114 @@
#import <Cocoa/Cocoa.h>
@interface
VLCAudioEffects
:
NSObject
{
/* generic */
IBOutlet
id
o_tableView
;
IBOutlet
id
o_window
;
IBOutlet
id
o_profile_pop
;
@interface
VLCAudioEffects
:
NSObject
/* Equalizer */
IBOutlet
id
o_eq_view
;
IBOutlet
id
o_eq_enable_ckb
;
IBOutlet
id
o_eq_twopass_ckb
;
IBOutlet
id
o_eq_preamp_lbl
;
IBOutlet
id
o_eq_presets_popup
;
IBOutlet
id
o_eq_band1_sld
;
IBOutlet
id
o_eq_band2_sld
;
IBOutlet
id
o_eq_band3_sld
;
IBOutlet
id
o_eq_band4_sld
;
IBOutlet
id
o_eq_band5_sld
;
IBOutlet
id
o_eq_band6_sld
;
IBOutlet
id
o_eq_band7_sld
;
IBOutlet
id
o_eq_band8_sld
;
IBOutlet
id
o_eq_band9_sld
;
IBOutlet
id
o_eq_band10_sld
;
IBOutlet
id
o_eq_preamp_sld
;
/* generic */
@property
(
readwrite
,
weak
)
IBOutlet
NSWindow
*
window
;
@property
(
readwrite
,
weak
)
IBOutlet
NSTabView
*
tabView
;
@property
(
readwrite
,
weak
)
IBOutlet
NSPopUpButton
*
profilePopup
;
/* Equalizer */
@property
(
readwrite
,
weak
)
IBOutlet
NSView
*
equalizerView
;
@property
(
readwrite
,
weak
)
IBOutlet
NSButton
*
equalizerEnableCheckbox
;
@property
(
readwrite
,
weak
)
IBOutlet
NSButton
*
equalizerTwoPassCheckbox
;
@property
(
readwrite
,
weak
)
IBOutlet
NSTextField
*
equalizerPreampLabel
;
@property
(
readwrite
,
weak
)
IBOutlet
NSPopUpButton
*
equalizerPresetsPopup
;
@property
(
readwrite
,
weak
)
IBOutlet
NSSlider
*
equalizerBand1Slider
;
@property
(
readwrite
,
weak
)
IBOutlet
NSSlider
*
equalizerBand2Slider
;
@property
(
readwrite
,
weak
)
IBOutlet
NSSlider
*
equalizerBand3Slider
;
@property
(
readwrite
,
weak
)
IBOutlet
NSSlider
*
equalizerBand4Slider
;
@property
(
readwrite
,
weak
)
IBOutlet
NSSlider
*
equalizerBand5Slider
;
@property
(
readwrite
,
weak
)
IBOutlet
NSSlider
*
equalizerBand6Slider
;
@property
(
readwrite
,
weak
)
IBOutlet
NSSlider
*
equalizerBand7Slider
;
@property
(
readwrite
,
weak
)
IBOutlet
NSSlider
*
equalizerBand8Slider
;
@property
(
readwrite
,
weak
)
IBOutlet
NSSlider
*
equalizerBand9Slider
;
@property
(
readwrite
,
weak
)
IBOutlet
NSSlider
*
equalizerBand10Slider
;
@property
(
readwrite
,
weak
)
IBOutlet
NSSlider
*
equalizerPreampSlider
;
/* Compressor */
IBOutlet
id
o_comp_v
iew
;
IBOutlet
id
o_comp_enable_ckb
;
IBOutlet
id
o_comp_reset_bt
n
;
IBOutlet
id
o_comp_band1_sld
;
IBOutlet
id
o_comp_band1_f
ld
;
IBOutlet
id
o_comp_band1_lb
l
;
IBOutlet
id
o_comp_band2_sld
;
IBOutlet
id
o_comp_band2_f
ld
;
IBOutlet
id
o_comp_band2_lb
l
;
IBOutlet
id
o_comp_band3_sld
;
IBOutlet
id
o_comp_band3_f
ld
;
IBOutlet
id
o_comp_band3_lb
l
;
IBOutlet
id
o_comp_band4_sld
;
IBOutlet
id
o_comp_band4_f
ld
;
IBOutlet
id
o_comp_band4_lb
l
;
IBOutlet
id
o_comp_band5_sld
;
IBOutlet
id
o_comp_band5_f
ld
;
IBOutlet
id
o_comp_band5_lb
l
;
IBOutlet
id
o_comp_band6_sld
;
IBOutlet
id
o_comp_band6_f
ld
;
IBOutlet
id
o_comp_band6_lb
l
;
IBOutlet
id
o_comp_band7_sld
;
IBOutlet
id
o_comp_band7_f
ld
;
IBOutlet
id
o_comp_band7_lb
l
;
/* Compressor */
@property
(
readwrite
,
weak
)
IBOutlet
NSView
*
compressorV
iew
;
@property
(
readwrite
,
weak
)
IBOutlet
NSButton
*
compressorEnableCheckbox
;
@property
(
readwrite
,
weak
)
IBOutlet
NSButton
*
compressorResetButto
n
;
@property
(
readwrite
,
weak
)
IBOutlet
NSSlider
*
compressorBand1Slider
;
@property
(
readwrite
,
weak
)
IBOutlet
NSTextField
*
compressorBand1TextFie
ld
;
@property
(
readwrite
,
weak
)
IBOutlet
NSTextField
*
compressorBand1Labe
l
;
@property
(
readwrite
,
weak
)
IBOutlet
NSSlider
*
compressorBand2Slider
;
@property
(
readwrite
,
weak
)
IBOutlet
NSTextField
*
compressorBand2TextFie
ld
;
@property
(
readwrite
,
weak
)
IBOutlet
NSTextField
*
compressorBand2Labe
l
;
@property
(
readwrite
,
weak
)
IBOutlet
NSSlider
*
compressorBand3Slider
;
@property
(
readwrite
,
weak
)
IBOutlet
NSTextField
*
compressorBand3TextFie
ld
;
@property
(
readwrite
,
weak
)
IBOutlet
NSTextField
*
compressorBand3Labe
l
;
@property
(
readwrite
,
weak
)
IBOutlet
NSSlider
*
compressorBand4Slider
;
@property
(
readwrite
,
weak
)
IBOutlet
NSTextField
*
compressorBand4TextFie
ld
;
@property
(
readwrite
,
weak
)
IBOutlet
NSTextField
*
compressorBand4Labe
l
;
@property
(
readwrite
,
weak
)
IBOutlet
NSSlider
*
compressorBand5Slider
;
@property
(
readwrite
,
weak
)
IBOutlet
NSTextField
*
compressorBand5TextFie
ld
;
@property
(
readwrite
,
weak
)
IBOutlet
NSTextField
*
compressorBand5Labe
l
;
@property
(
readwrite
,
weak
)
IBOutlet
NSSlider
*
compressorBand6Slider
;
@property
(
readwrite
,
weak
)
IBOutlet
NSTextField
*
compressorBand6TextFie
ld
;
@property
(
readwrite
,
weak
)
IBOutlet
NSTextField
*
compressorBand6Labe
l
;
@property
(
readwrite
,
weak
)
IBOutlet
NSSlider
*
compressorBand7Slider
;
@property
(
readwrite
,
weak
)
IBOutlet
NSTextField
*
compressorBand7TextFie
ld
;
@property
(
readwrite
,
weak
)
IBOutlet
NSTextField
*
compressorBand7Labe
l
;
/* Spatializer */
IBOutlet
id
o_spat_v
iew
;
IBOutlet
id
o_spat_enable_ckb
;
IBOutlet
id
o_spat_reset_bt
n
;
IBOutlet
id
o_spat_band1_sld
;
IBOutlet
id
o_spat_band1_f
ld
;
IBOutlet
id
o_spat_band1_lb
l
;
IBOutlet
id
o_spat_band2_sld
;
IBOutlet
id
o_spat_band2_f
ld
;
IBOutlet
id
o_spat_band2_lb
l
;
IBOutlet
id
o_spat_band3_sld
;
IBOutlet
id
o_spat_band3_f
ld
;
IBOutlet
id
o_spat_band3_lb
l
;
IBOutlet
id
o_spat_band4_sld
;
IBOutlet
id
o_spat_band4_f
ld
;
IBOutlet
id
o_spat_band4_lb
l
;
IBOutlet
id
o_spat_band5_sld
;
IBOutlet
id
o_spat_band5_f
ld
;
IBOutlet
id
o_spat_band5_lb
l
;
/* Spatializer */
@property
(
readwrite
,
weak
)
IBOutlet
NSView
*
spatializerV
iew
;
@property
(
readwrite
,
weak
)
IBOutlet
NSButton
*
spatializerEnableCheckbox
;
@property
(
readwrite
,
weak
)
IBOutlet
NSButton
*
spatializerResetButto
n
;
@property
(
readwrite
,
weak
)
IBOutlet
NSSlider
*
spatializerBand1Slider
;
@property
(
readwrite
,
weak
)
IBOutlet
NSTextField
*
spatializerBand1TextFie
ld
;
@property
(
readwrite
,
weak
)
IBOutlet
NSTextField
*
spatializerBand1Labe
l
;
@property
(
readwrite
,
weak
)
IBOutlet
NSSlider
*
spatializerBand2Slider
;
@property
(
readwrite
,
weak
)
IBOutlet
NSTextField
*
spatializerBand2TextFie
ld
;
@property
(
readwrite
,
weak
)
IBOutlet
NSTextField
*
spatializerBand2Labe
l
;
@property
(
readwrite
,
weak
)
IBOutlet
NSSlider
*
spatializerBand3Slider
;
@property
(
readwrite
,
weak
)
IBOutlet
NSTextField
*
spatializerBand3TextFie
ld
;
@property
(
readwrite
,
weak
)
IBOutlet
NSTextField
*
spatializerBand3Labe
l
;
@property
(
readwrite
,
weak
)
IBOutlet
NSSlider
*
spatializerBand4Slider
;
@property
(
readwrite
,
weak
)
IBOutlet
NSTextField
*
spatializerBand4TextFie
ld
;
@property
(
readwrite
,
weak
)
IBOutlet
NSTextField
*
spatializerBand4Labe
l
;
@property
(
readwrite
,
weak
)
IBOutlet
NSSlider
*
spatializerBand5Slider
;
@property
(
readwrite
,
weak
)
IBOutlet
NSTextField
*
spatializerBand5TextFie
ld
;
@property
(
readwrite
,
weak
)
IBOutlet
NSTextField
*
spatializerBand5Labe
l
;
/* Filter */
IBOutlet
id
o_filter_headPhone_ckb
;
IBOutlet
id
o_filter_normLevel_ckb
;
IBOutlet
id
o_filter_normLevel_sld
;
IBOutlet
id
o_filter_normLevel_lbl
;
IBOutlet
id
o_filter_karaoke_ckb
;
}
/* Filter */
@property
(
readwrite
,
weak
)
IBOutlet
NSButton
*
filterHeadPhoneCheckbox
;
@property
(
readwrite
,
weak
)
IBOutlet
NSButton
*
filterNormLevelCheckbox
;
@property
(
readwrite
,
weak
)
IBOutlet
NSSlider
*
filterNormLevelSlider
;
@property
(
readwrite
,
weak
)
IBOutlet
NSTextField
*
filterNormLevelLabel
;
@property
(
readwrite
,
weak
)
IBOutlet
NSButton
*
filterKaraokeCheckbox
;
/* generic */
+
(
VLCAudioEffects
*
)
sharedInstance
;
-
(
void
)
updateCocoaWindowLevel
:(
NSInteger
)
i_level
;
-
(
IBAction
)
toggleWindow
:(
id
)
sender
;
-
(
void
)
setAudioFilter
:
(
char
*
)
psz_name
on
:(
BOOL
)
b_on
;
-
(
IBAction
)
profileSelectorAction
:(
id
)
sender
;
-
(
IBAction
)
addAudioEffectsProfile
:(
id
)
sender
;
-
(
IBAction
)
removeAudioEffectsProfile
:(
id
)
sender
;
-
(
void
)
toggleWindow
:(
id
)
sender
;
-
(
void
)
updateCocoaWindowLevel
:(
NSInteger
)
i_level
;
-
(
void
)
saveCurrentProfile
;
/* Equalizer */
-
(
void
)
equalizerUpdated
;
-
(
void
)
setValue
:(
float
)
value
forSlider
:(
int
)
index
;
-
(
IBAction
)
eq_bandSliderUpdated
:(
id
)
sender
;
-
(
IBAction
)
eq_changePreset
:(
id
)
sender
;
-
(
IBAction
)
eq_enable
:(
id
)
sender
;
-
(
IBAction
)
eq_preampSliderUpdated
:(
id
)
sender
;
-
(
IBAction
)
eq_twopass
:(
id
)
sender
;
-
(
IBAction
)
equalizerBandSliderUpdated
:(
id
)
sender
;
-
(
IBAction
)
equalizerChangePreset
:(
id
)
sender
;
-
(
IBAction
)
equalizerEnable
:(
id
)
sender
;
-
(
IBAction
)
equalizerPreAmpSliderUpdated
:(
id
)
sender
;
-
(
IBAction
)
equalizerTwoPass
:(
id
)
sender
;
/* Compressor */
-
(
void
)
resetCompressor
;
-
(
IBAction
)
resetCompressorValues
:(
id
)
sender
;
-
(
IBAction
)
comp
_e
nable
:(
id
)
sender
;
-
(
IBAction
)
comp
_s
liderUpdated
:(
id
)
sender
;
-
(
IBAction
)
comp
ressorE
nable
:(
id
)
sender
;
-
(
IBAction
)
comp
ressorS
liderUpdated
:(
id
)
sender
;
/* Spatializer */
-
(
void
)
resetSpatializer
;
-
(
IBAction
)
resetSpatializerValues
:(
id
)
sender
;
-
(
IBAction
)
spat
_e
nable
:(
id
)
sender
;
-
(
IBAction
)
spat
_s
liderUpdated
:(
id
)
sender
;
-
(
IBAction
)
spat
ializerE
nable
:(
id
)
sender
;
-
(
IBAction
)
spat
ializerS
liderUpdated
:(
id
)
sender
;
/* Filter */
-
(
void
)
resetAudioFilters
;
-
(
IBAction
)
filter_enableHeadPhoneVirt
:(
id
)
sender
;
-
(
IBAction
)
filter_enableVolumeNorm
:(
id
)
sender
;
-
(
IBAction
)
filter_volNormSliderUpdated
:(
id
)
sender
;
-
(
IBAction
)
filter_enableKaraoke
:(
id
)
sender
;
-
(
IBAction
)
filterEnableHeadPhoneVirt
:(
id
)
sender
;
-
(
IBAction
)
filterEnableVolumeNorm
:(
id
)
sender
;
-
(
IBAction
)
filterVolumeNormSliderUpdated
:(
id
)
sender
;
-
(
IBAction
)
filterEnableKaraoke
:(
id
)
sender
;
@end
modules/gui/macosx/AudioEffects.m
View file @
d53743bf
This diff is collapsed.
Click to expand it.
modules/gui/macosx/MainMenu.m
View file @
d53743bf
...
...
@@ -1153,7 +1153,7 @@
o_audioeffects
=
[[
VLCAudioEffects
alloc
]
init
];
if
(
!
b_nib_audioeffects_loaded
)
b_nib_audioeffects_loaded
=
[
NSBundle
loadNibNamed
:
@"AudioEffects"
owner
:
NSApp
];
b_nib_audioeffects_loaded
=
[
NSBundle
loadNibNamed
:
@"AudioEffects"
owner
:
o_audioeffects
];
[
o_audioeffects
toggleWindow
:
sender
];
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment