-
Notifications
You must be signed in to change notification settings - Fork 4
/
videoadjustmentdialog.h
45 lines (34 loc) · 977 Bytes
/
videoadjustmentdialog.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef VIDEOADJUSTMENTDIALOG_H
#define VIDEOADJUSTMENTDIALOG_H
#include <QDialog>
#include <QList>
#include "mediasourcebase.h"
namespace Ui {
class VideoAdjustmentDialog;
}
class VideoAdjustmentDialog : public QDialog
{
Q_OBJECT
public:
explicit VideoAdjustmentDialog(QList<MediaSourceBase*> cams, QWidget *parent = 0);
~VideoAdjustmentDialog();
public slots:
void newSourceSelected(QString newSource);
void resetGamma();
void resetBrightness();
void resetContrast();
void resetHue();
void resetSaturation();
void gammaChanged(int newValue);
void brightnessChanged(int newValue);
void contrastChanged(int newValue);
void hueChanged(int newValue);
void saturationChanged(int newValue);
void flipModeChanged(int id);
private:
Ui::VideoAdjustmentDialog *ui;
QList<MediaSourceBase*> sources;
bool blockChanges;
MediaSourceBase* getSourceById(QString id);
};
#endif // VIDEOADJUSTMENTDIALOG_H