]> git.sesse.net Git - kdenlive/blob - src/rgbparade.h
RGB Parade added.
[kdenlive] / src / 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 "abstractscopewidget.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 AbstractScopeWidget
24 {
25 public:
26     RGBParade(Monitor *projMonitor, Monitor *clipMonitor, QWidget *parent = 0);
27     ~RGBParade();
28     QString widgetName() const;
29
30 protected:
31     QRect scopeRect();
32
33 private:
34     Ui::RGBParade_UI *ui;
35     RGBParadeGenerator *m_rgbParadeGenerator;
36
37     bool isHUDDependingOnInput() const;
38     bool isScopeDependingOnInput() const;
39     bool isBackgroundDependingOnInput() const;
40
41     QImage renderHUD(uint accelerationFactor);
42     QImage renderScope(uint accelerationFactor);
43     QImage renderBackground(uint accelerationFactor);
44 };
45
46 #endif // RGBPARADE_H