]> git.sesse.net Git - kdenlive/blob - src/colorplaneexport.h
Fix indent
[kdenlive] / src / colorplaneexport.h
1 /***************************************************************************
2  *   Copyright (C) 2010 by Simon Andreas Eugster (simon.eu@gmail.com)      *
3  *   This file is part of kdenlive. See www.kdenlive.org.                  *
4  *                                                                         *
5  *   This program is free software; you can redistribute it and/or modify  *
6  *   it under the terms of the GNU General Public License as published by  *
7  *   the Free Software Foundation; either version 2 of the License, or     *
8  *   (at your option) any later version.                                   *
9  ***************************************************************************/
10
11 /**
12   Exports color planes (e.g. YUV-UV-planes) to a file.
13   Basically just for fun, but also for comparing color models.
14  */
15
16 #ifndef COLORPLANEEXPORT_H
17 #define COLORPLANEEXPORT_H
18
19 #include <QDialog>
20 #include "ui_colorplaneexport_ui.h"
21 #include "colortools.h"
22
23 class ColorPlaneExport_UI;
24
25 class ColorPlaneExport : public QDialog, public Ui::ColorPlaneExport_UI {
26     Q_OBJECT
27 public:
28     ColorPlaneExport(QWidget *parent = 0);
29     ~ColorPlaneExport();
30
31     enum COLOR_EXPORT_MODE { CPE_YUV, CPE_YUV_Y, CPE_YUV_MOD, CPE_RGB_CURVE, CPE_YPbPr, CPE_HSV_HUESHIFT, CPE_HSV_SATURATION };
32
33 private:
34     ColorTools *m_colorTools;
35     float m_scaling;
36     float m_Y;
37     void enableSliderScaling(bool enable);
38     void enableSliderColor(bool enable);
39     void enableCbVariant(bool enable);
40
41 private slots:
42     void slotValidate();
43     void slotExportPlane();
44     void slotColormodeChanged();
45     void slotUpdateDisplays();
46 };
47
48 #endif // COLORPLANEEXPORT_H