1 | /* smplayer, GUI front-end for mplayer.
|
---|
2 | Copyright (C) 2006-2016 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 | #ifndef VIDEOEQUALIZER_H
|
---|
20 | #define VIDEOEQUALIZER_H
|
---|
21 |
|
---|
22 | #include "ui_videoequalizer.h"
|
---|
23 | #include <QWidget>
|
---|
24 |
|
---|
25 | class VideoEqualizer : public QWidget, public Ui::VideoEqualizer
|
---|
26 | {
|
---|
27 | Q_OBJECT
|
---|
28 |
|
---|
29 | public:
|
---|
30 | VideoEqualizer( QWidget* parent = 0, Qt::WindowFlags f = Qt::Dialog );
|
---|
31 | ~VideoEqualizer();
|
---|
32 |
|
---|
33 | public slots:
|
---|
34 | void setContrast(int v) { contrast_slider->setValue(v); }
|
---|
35 | void setBrightness(int v) { brightness_slider->setValue(v); }
|
---|
36 | void setHue(int v) { hue_slider->setValue(v); }
|
---|
37 | void setSaturation(int v) { saturation_slider->setValue(v); }
|
---|
38 | void setGamma(int v) { gamma_slider->setValue(v); }
|
---|
39 | void setBySoftware(bool b) { bysoftware_check->setChecked(b); }
|
---|
40 |
|
---|
41 | void reset();
|
---|
42 |
|
---|
43 | public:
|
---|
44 | int contrast() { return contrast_slider->value(); }
|
---|
45 | int brightness() { return brightness_slider->value(); }
|
---|
46 | int hue() { return hue_slider->value(); }
|
---|
47 | int saturation() { return saturation_slider->value(); }
|
---|
48 | int gamma() { return gamma_slider->value(); }
|
---|
49 | bool bySoftware() { return bysoftware_check->isChecked(); }
|
---|
50 |
|
---|
51 | signals:
|
---|
52 | void contrastChanged(int);
|
---|
53 | void brightnessChanged(int);
|
---|
54 | void hueChanged(int);
|
---|
55 | void saturationChanged(int);
|
---|
56 | void gammaChanged(int);
|
---|
57 |
|
---|
58 | void visibilityChanged();
|
---|
59 | void requestToChangeDefaultValues();
|
---|
60 | void bySoftwareChanged(bool);
|
---|
61 |
|
---|
62 | protected slots:
|
---|
63 | void on_reset_button_clicked();
|
---|
64 | void on_bysoftware_check_stateChanged(int);
|
---|
65 |
|
---|
66 | virtual void hideEvent( QHideEvent * );
|
---|
67 | virtual void showEvent( QShowEvent * );
|
---|
68 |
|
---|
69 | protected:
|
---|
70 | virtual void retranslateStrings();
|
---|
71 | virtual void changeEvent( QEvent * event);
|
---|
72 | };
|
---|
73 |
|
---|
74 | #endif
|
---|