]> git.sesse.net Git - kdenlive/blob - src/histogram.h
Allow to add image sequence through the usual "add clip" dialog
[kdenlive] / src / histogram.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 HISTOGRAM_H
12 #define HISTOGRAM_H
13
14 #include "abstractscopewidget.h"
15 #include "ui_histogram_ui.h"
16
17 class HistogramGenerator;
18
19 class Histogram : public AbstractScopeWidget {
20     Q_OBJECT
21
22 public:
23     Histogram(Monitor *projMonitor, Monitor *clipMonitor, QWidget *parent = 0);
24     ~Histogram();
25     QString widgetName() const;
26
27
28 private:
29     HistogramGenerator *m_histogramGenerator;
30     QAction *m_aUnscaled;
31
32     QRect scopeRect();
33     bool isHUDDependingOnInput() const;
34     bool isScopeDependingOnInput() const;
35     bool isBackgroundDependingOnInput() const;
36     QImage renderHUD(uint accelerationFactor);
37     QImage renderScope(uint accelerationFactor, QImage);
38     QImage renderBackground(uint accelerationFactor);
39     Ui::Histogram_UI *ui;
40
41 };
42
43 #endif // HISTOGRAM_H