]> git.sesse.net Git - kdenlive/blob - src/levels.h
Levels added.
[kdenlive] / src / levels.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 LEVELS_H
12 #define LEVELS_H
13
14 #include "abstractscopewidget.h"
15 #include "ui_levels_ui.h"
16
17 class LevelsGenerator;
18
19 class Levels : public AbstractScopeWidget {
20     Q_OBJECT
21
22 public:
23     Levels(Monitor *projMonitor, Monitor *clipMonitor, QWidget *parent = 0);
24     ~Levels();
25     QString widgetName() const;
26
27
28 private:
29     LevelsGenerator *m_levelsGenerator;
30
31     QRect scopeRect();
32     bool isHUDDependingOnInput() const;
33     bool isScopeDependingOnInput() const;
34     bool isBackgroundDependingOnInput() const;
35     QImage renderHUD(uint accelerationFactor);
36     QImage renderScope(uint accelerationFactor);
37     QImage renderBackground(uint accelerationFactor);
38     Ui::Levels_UI *ui;
39
40 };
41
42 #endif // LEVELS_H