Sayonara Player
GUI_Equalizer.h
1/* GUI_Equalizer.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
22/*
23 * GUI_Equalizer.h
24 *
25 * Created on: May 18, 2011
26 * Author: Michael Lugmair (Lucio Carreras)
27 */
28
29#ifndef GUI_EQUALIZER_H_
30#define GUI_EQUALIZER_H_
31
32#include "Gui/Plugins/PlayerPluginBase.h"
33#include "Utils/Pimpl.h"
34
35class Equalizer;
36
37UI_FWD(GUI_Equalizer)
38
39
44 public PlayerPlugin::Base
45{
46 Q_OBJECT
47 UI_CLASS(GUI_Equalizer)
48 PIMPL(GUI_Equalizer)
49
50 public:
51 explicit GUI_Equalizer(Equalizer* equalizer, QWidget* parent=nullptr);
52 ~GUI_Equalizer() override;
53
54 QString name() const override;
55 QString displayName() const override;
56
57 public slots:
58 void fillEqualizerPresets();
59
60 private:
61 void initUi() override;
62 void retranslate() override;
63
64 private slots:
65 void sliderValueChanged(int band, int value);
66 void sliderPressed();
67 void sliderReleased();
68
69 void valueChanged(int band, int value);
70
71 void currentEqualizerChanged(int index);
72 void checkboxGaussToggled(bool);
73
74 void btnDefaultClicked();
75 void btnSaveAsClicked();
76 void btnDeleteClicked();
77 void btnRenameClicked();
78
79 void saveAsOkClicked();
80 void renameOkClicked();
81};
82
83#endif /* GUI_EQUALIZER_H_ */
Definition: Equalizer.h:32
The GUI_Equalizer class.
Definition: GUI_Equalizer.h:45
QString name() const override
must be overwritten
QString displayName() const override
must be overwritten
Interface for PlayerPlugin classes. get_name() and language_changed() must be overwritten.
Definition: GUI_Player.h:43