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
7ded3d96
Commit
7ded3d96
authored
May 08, 2005
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* disable equalizer commands in the extended GUI if the equalizer isn't
enabled.
parent
25bb8769
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
4 deletions
+48
-4
modules/gui/wxwindows/extrapanel.cpp
modules/gui/wxwindows/extrapanel.cpp
+45
-4
modules/gui/wxwindows/wxwindows.h
modules/gui/wxwindows/wxwindows.h
+3
-0
No files found.
modules/gui/wxwindows/extrapanel.cpp
View file @
7ded3d96
...
...
@@ -479,12 +479,12 @@ wxPanel *ExtraPanel::EqzPanel( wxWindow *parent )
top_sizer
->
Add
(
0
,
0
,
1
,
wxALL
,
2
);
top_sizer
->
Add
(
new
wxButton
(
panel
,
EqRestore_Event
,
wxU
(
_
(
"Restore Defaults"
)
)
)
,
0
,
wxALL
,
2
);
eq_restoredefaults_button
=
new
wxButton
(
panel
,
EqRestore_Event
,
wxU
(
_
(
"Restore Defaults"
)
)
)
;
top_sizer
->
Add
(
eq_restoredefaults_button
,
0
,
wxALL
,
2
);
top_sizer
->
Add
(
0
,
0
,
1
,
wxALL
,
2
);
wxStaticText
*
smooth_text
=
new
wxStaticText
(
panel
,
-
1
,
wxU
(
"Smooth :"
));
smooth_text
=
new
wxStaticText
(
panel
,
-
1
,
wxU
(
"Smooth :"
));
smooth_text
->
SetToolTip
(
wxU
(
SMOOTH_TIP
)
);
top_sizer
->
Add
(
smooth_text
,
0
,
wxALL
,
2
);
...
...
@@ -543,6 +543,19 @@ wxPanel *ExtraPanel::EqzPanel( wxWindow *parent )
panel_sizer
->
SetSizeHints
(
panel
);
CheckAout
();
eq_2p_chkbox
->
Disable
();
eq_restoredefaults_button
->
Disable
();
smooth_slider
->
Disable
();
smooth_text
->
Disable
();
preamp_slider
->
Disable
();
preamp_text
->
Disable
();
for
(
int
i_index
=
0
;
i_index
<
10
;
i_index
++
)
{
band_sliders
[
i_index
]
->
Disable
();
band_texts
[
i_index
]
->
Disable
();
}
return
panel
;
}
...
...
@@ -599,11 +612,39 @@ void ExtraPanel::OnIdle( wxIdleEvent &event )
*************************/
void
ExtraPanel
::
OnEnableEqualizer
(
wxCommandEvent
&
event
)
{
int
i_index
;
aout_instance_t
*
p_aout
=
(
aout_instance_t
*
)
vlc_object_find
(
p_intf
,
VLC_OBJECT_AOUT
,
FIND_ANYWHERE
);
ChangeFiltersString
(
p_intf
,
p_aout
,
"equalizer"
,
event
.
IsChecked
()
?
VLC_TRUE
:
VLC_FALSE
);
if
(
event
.
IsChecked
()
)
{
eq_2p_chkbox
->
Enable
();
eq_restoredefaults_button
->
Enable
();
smooth_slider
->
Enable
();
smooth_text
->
Enable
();
preamp_slider
->
Enable
();
preamp_text
->
Enable
();
for
(
i_index
=
0
;
i_index
<
10
;
i_index
++
)
{
band_sliders
[
i_index
]
->
Enable
();
band_texts
[
i_index
]
->
Enable
();
}
}
else
{
eq_2p_chkbox
->
Disable
();
eq_restoredefaults_button
->
Disable
();
smooth_slider
->
Disable
();
smooth_text
->
Disable
();
preamp_slider
->
Disable
();
preamp_text
->
Disable
();
for
(
i_index
=
0
;
i_index
<
10
;
i_index
++
)
{
band_sliders
[
i_index
]
->
Disable
();
band_texts
[
i_index
]
->
Disable
();
}
}
if
(
p_aout
!=
NULL
)
vlc_object_release
(
p_aout
);
}
...
...
modules/gui/wxwindows/wxwindows.h
View file @
7ded3d96
...
...
@@ -233,7 +233,10 @@ private:
wxCheckBox
*
eq_2p_chkbox
;
wxButton
*
eq_restoredefaults_button
;
wxSlider
*
smooth_slider
;
wxStaticText
*
smooth_text
;
wxSlider
*
preamp_slider
;
wxStaticText
*
preamp_text
;
...
...
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