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 "abstractscopewidget.h"
16 #include "ui_waveform_ui.h"
19 class WaveformGenerator;
21 class Waveform : public AbstractScopeWidget {
25 Waveform(Monitor *projMonitor, Monitor *clipMonitor, QWidget *parent = 0);
28 virtual QString widgetName() const;
31 virtual void readConfig();
36 WaveformGenerator *m_waveformGenerator;
40 QActionGroup *m_agRec;
42 static const QSize m_textWidth;
43 static const int m_paddingBottom;
47 /// Implemented methods ///
49 QImage renderHUD(uint);
50 QImage renderScope(uint, QImage);
51 QImage renderBackground(uint);
52 bool isHUDDependingOnInput() const;
53 bool isScopeDependingOnInput() const;
54 bool isBackgroundDependingOnInput() const;