]> git.sesse.net Git - kdenlive/blob - src/testwidget.h
ff5675722844241ac75fefa260c517af8b7dd85a
[kdenlive] / src / testwidget.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 TESTWIDGET_H
12 #define TESTWIDGET_H
13
14 #include <QWidget>
15 #include "abstractscopewidget.h"
16 #include "ui_testwidget_ui.h"
17
18 class AbstractScopeWidget;
19 class TestWidget_UI;
20
21 class TestWidget : public AbstractScopeWidget {
22     Q_OBJECT
23 public:
24     TestWidget(Monitor *projMonitor, Monitor *clipMonitor, QWidget *parent = 0);
25     virtual ~TestWidget();
26
27     QString widgetName() const;
28
29     /// Implemented methods ///
30     QImage renderHUD(uint accelerationFactor);
31     QImage renderScope(uint accelerationFactor);
32     QImage renderBackground(uint accelerationFactor);
33     bool isHUDDependingOnInput() const;
34     bool isScopeDependingOnInput() const;
35     bool isBackgroundDependingOnInput() const;
36
37 protected:
38     QRect scopeRect();
39
40 private:
41     Ui::TestWidget_UI *ui;
42
43     QAction *m_aTest;
44
45 };
46
47 #endif // TESTWIDGET_H