1 /***************************************************************************
2 * Copyright (C) 2010 by Simon Andreas Eugster (simon.eu@gmail.com) *
3 * This file is part of kdenlive. See www.kdenlive.org. *
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 ***************************************************************************/
11 #ifndef ABSTRACTGFXSCOPEWIDGET_H
12 #define ABSTRACTGFXSCOPEWIDGET_H
15 #include <QtCore/QString>
18 #include "../abstractscopewidget.h"
23 \brief Abstract class for scopes analyzing image frames.
25 class AbstractGfxScopeWidget : public AbstractScopeWidget
30 explicit AbstractGfxScopeWidget(bool trackMouse = false, QWidget *parent = 0);
31 virtual ~AbstractGfxScopeWidget(); // Must be virtual because of inheritance, to avoid memory leaks
36 /** @brief Scope renderer. Must emit signalScopeRenderingFinished()
37 when calculation has finished, to allow multi-threading.
38 accelerationFactor hints how much faster than usual the calculation should be accomplished, if possible. */
39 virtual QImage renderGfxScope(uint accelerationFactor, const QImage &) = 0;
41 virtual QImage renderScope(uint accelerationFactor);
43 void mouseReleaseEvent(QMouseEvent *);
50 /** @brief Must be called when the active monitor has shown a new frame.
51 This slot must be connected in the implementing class, it is *not*
52 done in this abstract class. */
53 void slotRenderZoneUpdated(const QImage &);
56 virtual void slotAutoRefreshToggled(bool autoRefresh);
59 void signalFrameRequest(const QString &widgetName);
63 #endif // ABSTRACTGFXSCOPEWIDGET_H