]> git.sesse.net Git - kdenlive/blob - src/scopes/colorscopes/rgbparade.h
Preparing for scope manager (merge from Granjow's work in refactoring)
[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 <QObject>
15 #include "abstractgfxscopewidget.h"
16 #include "ui_rgbparade_ui.h"
17
18 class Monitor;
19 class QImage;
20 class RGBParade_UI;
21 class RGBParadeGenerator;
22
23 class RGBParade : public AbstractGfxScopeWidget
24 {
25 public:
26     RGBParade(MonitorManager *manager, QWidget *parent = 0);
27     ~RGBParade();
28     QString widgetName() const;
29
30 protected:
31     virtual void readConfig();
32     void writeConfig();
33     QRect scopeRect();
34
35 private:
36     Ui::RGBParade_UI *ui;
37     RGBParadeGenerator *m_rgbParadeGenerator;
38
39     QAction *m_aAxis;
40     QAction *m_aGradRef;
41
42     bool isHUDDependingOnInput() const;
43     bool isScopeDependingOnInput() const;
44     bool isBackgroundDependingOnInput() const;
45
46     QImage renderHUD(uint accelerationFactor);
47     QImage renderGfxScope(uint accelerationFactor, const QImage);
48     QImage renderBackground(uint accelerationFactor);
49 };
50
51 #endif // RGBPARADE_H