X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fequalizerdialog.h;fp=src%2Fequalizerdialog.h;h=84866777c1ec6df1d947aa74ef8ed819a760cf3f;hb=1d213a9db9b725dc285e92021f35e2f83a813080;hp=0000000000000000000000000000000000000000;hpb=3b2e113401a490f6273b6690f517343cc7356cd6;p=someplayer diff --git a/src/equalizerdialog.h b/src/equalizerdialog.h new file mode 100644 index 0000000..8486677 --- /dev/null +++ b/src/equalizerdialog.h @@ -0,0 +1,61 @@ +/* + * SomePlayer - An alternate music player for Maemo 5 + * Copyright (C) 2010 Nikolay (somebody) Tischenko + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + +#ifndef EQUALIZERDIALOG_H +#define EQUALIZERDIALOG_H + +#include + +namespace Ui { + class EqualizerDialog; +} + +class EqualizerDialog : public QDialog +{ + Q_OBJECT +public: + explicit EqualizerDialog(QWidget *parent = 0); + ~EqualizerDialog(); +signals: + void valueChanged(int, int); + void equalizerDisabled(); + void equalizerEnabled(); + +public slots: + void setValue(int, int); + void setEqualizerEnabled(bool); + +private slots: + void _value0_changed(int v) { emit valueChanged(0, v);} + void _value1_changed(int v) { emit valueChanged(1, v);} + void _value2_changed(int v) { emit valueChanged(2, v);} + void _value3_changed(int v) { emit valueChanged(3, v);} + void _value4_changed(int v) { emit valueChanged(4, v);} + void _value5_changed(int v) { emit valueChanged(5, v);} + void _value6_changed(int v) { emit valueChanged(6, v);} + void _value7_changed(int v) { emit valueChanged(7, v);} + void _value8_changed(int v) { emit valueChanged(8, v);} + void _value9_changed(int v) { emit valueChanged(9, v);} + + void _state_changed(); +private: + Ui::EqualizerDialog *ui; +}; + +#endif // EQUALIZERDIALOG_H