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 ***************************************************************************/
16 #include "ui_waveform_ui.h"
19 #include "waveformgenerator.h"
22 class WaveformGenerator;
26 class Waveform : public QWidget, public Ui::Waveform_UI {
30 Waveform(Monitor *projMonitor, Monitor *clipMonitor, QWidget *parent = 0);
34 void paintEvent(QPaintEvent *);
35 void resizeEvent(QResizeEvent *);
36 void mouseReleaseEvent(QMouseEvent *);
39 Monitor *m_projMonitor;
40 Monitor *m_clipMonitor;
41 Render *m_activeRender;
43 WaveformGenerator *m_waveformGenerator;
45 void updateDimensions();
46 bool initialDimensionUpdateDone;
52 void slotActiveMonitorChanged(bool isClipMonitor);
53 void slotRenderZoneUpdated();
54 void slotWaveformCalculated(QImage waveform, const uint &msec);