Sayonara Player
src
Gui
Plugins
Engine
EqualizerSlider.h
1
/* EqualizerSlider.h */
2
3
/* Copyright (C) 2011-2020 Michael Lugmair (Lucio Carreras)
4
*
5
* This file is part of sayonara player
6
*
7
* This program is free software: you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation, either version 3 of the License, or
10
* (at your option) any later version.
11
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
17
* You should have received a copy of the GNU General Public License
18
* along with this program. If not, see <http://www.gnu.org/licenses/>.
19
*/
20
21
#ifndef EQSLIDER_H
22
#define EQSLIDER_H
23
24
#include "Gui/Utils/Widgets/Slider.h"
25
#include "Utils/Pimpl.h"
26
27
class
QLabel;
28
29
namespace
Gui
30
{
35
class
EqualizerSlider
:
36
public
Gui::Slider
37
{
38
Q_OBJECT
39
PIMPL(
EqualizerSlider
)
40
41
signals:
42
void
sigValueChanged(
int
idx,
int
val);
43
44
public
:
45
explicit
EqualizerSlider
(QWidget* parent);
46
~
EqualizerSlider
()
override
;
47
53
void
setLabel
(
int
idx, QLabel*
label
);
54
59
QLabel*
label
()
const
;
60
65
int
index
()
const
;
66
71
double
equalizerValue
()
const
;
72
void
setEqualizerValue(
double
value);
73
74
QSize minimumSizeHint()
const override
;
75
76
void
setSilent(
bool
b);
77
78
private
slots:
79
void
setZero();
80
81
protected
:
82
void
sliderChange(SliderChange change)
override
;
83
using
Gui::Slider::value;
84
using
Gui::Slider::setValue;
85
};
86
}
87
88
#endif // EQSLIDER_H
Gui::Slider
Dont use it directly but inherit it.
Definition:
Slider.h:39
Gui::EqualizerSlider::label
QLabel * label() const
get the value label
Gui::EqualizerSlider::setLabel
void setLabel(int idx, QLabel *label)
sets everything the slider has to be aware about
Gui::EqualizerSlider::equalizerValue
double equalizerValue() const
get the gstreamer compatible value
Gui::EqualizerSlider::index
int index() const
get the index of the slider
Gui::EqualizerSlider
The EqSlider class.
Definition:
EqualizerSlider.h:37
Generated on Wed Jan 6 2021 00:00:00 for Sayonara Player by
1.8.20