]> git.sesse.net Git - kdenlive/blob - src/scopes/colorscopes/rgbparade.h
Fix includes
[kdenlive] / src / scopes / colorscopes / rgbparade.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 #ifndef RGBPARADE_H
12 #define RGBPARADE_H
13
14 #include "abstractgfxscopewidget.h"
15 #include "ui_rgbparade_ui.h"
16
17 class QImage;
18 class RGBParade_UI;
19 class RGBParadeGenerator;
20
21 /**
22  * \brief Displays the RGB waveform of a frame.
23  * This is the same as the Waveform, but for each colour channel separately.
24  */
25 class RGBParade : public AbstractGfxScopeWidget
26 {
27 public:
28     explicit RGBParade(QWidget *parent = 0);
29     ~RGBParade();
30     QString widgetName() const;
31
32 protected:
33     virtual void readConfig();
34     void writeConfig();
35     QRect scopeRect();
36
37 private:
38     Ui::RGBParade_UI *ui;
39     RGBParadeGenerator *m_rgbParadeGenerator;
40
41     QAction *m_aAxis;
42     QAction *m_aGradRef;
43
44     bool isHUDDependingOnInput() const;
45     bool isScopeDependingOnInput() const;
46     bool isBackgroundDependingOnInput() const;
47
48     QImage renderHUD(uint accelerationFactor);
49     QImage renderGfxScope(uint accelerationFactor, const QImage &);
50     QImage renderBackground(uint accelerationFactor);
51 };
52
53 #endif // RGBPARADE_H