[112] | 1 | /* smplayer, GUI front-end for mplayer.
|
---|
[188] | 2 | Copyright (C) 2006-2017 Ricardo Villalba <rvm@users.sourceforge.net>
|
---|
[112] | 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 |
|
---|
[165] | 19 | #ifndef VIDEOEQUALIZER_H
|
---|
| 20 | #define VIDEOEQUALIZER_H
|
---|
[112] | 21 |
|
---|
[165] | 22 | #include "ui_videoequalizer.h"
|
---|
[112] | 23 | #include <QWidget>
|
---|
| 24 |
|
---|
[165] | 25 | class VideoEqualizer : public QWidget, public Ui::VideoEqualizer
|
---|
[112] | 26 | {
|
---|
[165] | 27 | Q_OBJECT
|
---|
[112] | 28 |
|
---|
| 29 | public:
|
---|
[165] | 30 | VideoEqualizer( QWidget* parent = 0, Qt::WindowFlags f = Qt::Dialog );
|
---|
| 31 | ~VideoEqualizer();
|
---|
[112] | 32 |
|
---|
[165] | 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); }
|
---|
[112] | 40 |
|
---|
[165] | 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 |
|
---|
[112] | 51 | signals:
|
---|
[165] | 52 | void contrastChanged(int);
|
---|
| 53 | void brightnessChanged(int);
|
---|
| 54 | void hueChanged(int);
|
---|
| 55 | void saturationChanged(int);
|
---|
| 56 | void gammaChanged(int);
|
---|
| 57 |
|
---|
[112] | 58 | void visibilityChanged();
|
---|
[165] | 59 | void requestToChangeDefaultValues();
|
---|
| 60 | void bySoftwareChanged(bool);
|
---|
[112] | 61 |
|
---|
[165] | 62 | protected slots:
|
---|
| 63 | void on_reset_button_clicked();
|
---|
| 64 | void on_bysoftware_check_stateChanged(int);
|
---|
[112] | 65 |
|
---|
| 66 | virtual void hideEvent( QHideEvent * );
|
---|
| 67 | virtual void showEvent( QShowEvent * );
|
---|
| 68 |
|
---|
| 69 | protected:
|
---|
| 70 | virtual void retranslateStrings();
|
---|
[165] | 71 | virtual void changeEvent( QEvent * event);
|
---|
[112] | 72 | };
|
---|
| 73 |
|
---|
| 74 | #endif
|
---|