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 ***************************************************************************/
14 #include "abstractgfxscopewidget.h"
16 #include "ui_waveform_ui.h"
19 class WaveformGenerator;
22 \brief Displays the waveform of a frame.
24 For further explanations of the waveform see the WaveformGenerator class.
26 class Waveform : public AbstractGfxScopeWidget {
30 explicit Waveform(QWidget *parent = 0);
33 virtual QString widgetName() const;
36 virtual void readConfig();
41 WaveformGenerator *m_waveformGenerator;
45 QActionGroup *m_agRec;
47 static const QSize m_textWidth;
48 static const int m_paddingBottom;
52 /// Implemented methods ///
54 QImage renderHUD(uint);
55 QImage renderGfxScope(uint, const QImage);
56 QImage renderBackground(uint);
57 bool isHUDDependingOnInput() const;
58 bool isScopeDependingOnInput() const;
59 bool isBackgroundDependingOnInput() const;