1 | /* smplayer, GUI front-end for mplayer.
|
---|
2 | Copyright (C) 2006-2017 Ricardo Villalba <rvm@users.sourceforge.net>
|
---|
3 |
|
---|
4 | This program is free software; you can redistribute it and/or modify
|
---|
5 | it under the terms of the GNU General Public License as published by
|
---|
6 | the Free Software Foundation; either version 2 of the License, or
|
---|
7 | (at your option) any later version.
|
---|
8 |
|
---|
9 | This program is distributed in the hope that it will be useful,
|
---|
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
12 | GNU General Public License for more details.
|
---|
13 |
|
---|
14 | You should have received a copy of the GNU General Public License
|
---|
15 | along with this program; if not, write to the Free Software
|
---|
16 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
---|
17 | */
|
---|
18 |
|
---|
19 |
|
---|
20 | #ifndef EQSLIDER_H
|
---|
21 | #define EQSLIDER_H
|
---|
22 |
|
---|
23 | #include "ui_eqslider.h"
|
---|
24 | #include <QPixmap>
|
---|
25 |
|
---|
26 | class EqSlider : public QWidget, public Ui::EqSlider
|
---|
27 | {
|
---|
28 | Q_OBJECT
|
---|
29 | Q_PROPERTY(QPixmap icon READ icon WRITE setIcon)
|
---|
30 | Q_PROPERTY(QString label READ label WRITE setLabel)
|
---|
31 | Q_PROPERTY(int value READ value WRITE setValue)
|
---|
32 |
|
---|
33 | public:
|
---|
34 | EqSlider( QWidget* parent = 0, Qt::WindowFlags f = 0 );
|
---|
35 | ~EqSlider();
|
---|
36 |
|
---|
37 | public slots:
|
---|
38 | void setIcon( QPixmap i);
|
---|
39 | void setLabel( QString s);
|
---|
40 | void setValue(int value);
|
---|
41 |
|
---|
42 | public:
|
---|
43 | int value() const;
|
---|
44 | const QPixmap * icon() const;
|
---|
45 | QString label() const;
|
---|
46 |
|
---|
47 | QSlider * sliderWidget() { return _slider; };
|
---|
48 | VerticalText * labelWidget() { return _label; };
|
---|
49 | QLabel * iconWidget() { return _icon; };
|
---|
50 |
|
---|
51 | signals:
|
---|
52 | void valueChanged(int);
|
---|
53 |
|
---|
54 | protected slots:
|
---|
55 | void sliderValueChanged(int);
|
---|
56 |
|
---|
57 | protected:
|
---|
58 | /* virtual void languageChange(); */
|
---|
59 |
|
---|
60 | };
|
---|
61 |
|
---|
62 | #endif
|
---|