2009-12-24 20:16:07 +01:00
|
|
|
//
|
|
|
|
//
|
|
|
|
// C++ Interface: Sonogram
|
|
|
|
//
|
|
|
|
// Description:
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// Author: Melchior FRANZ <mfranz@kde.org>, (C) 2004
|
|
|
|
//
|
|
|
|
// Copyright: See COPYING file that comes with this distribution
|
|
|
|
//
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef SONOGRAM_H
|
|
|
|
#define SONOGRAM_H
|
|
|
|
|
|
|
|
#include "analyzerbase.h"
|
|
|
|
|
|
|
|
/**
|
|
|
|
@author Melchior FRANZ
|
|
|
|
*/
|
|
|
|
|
2014-02-07 16:34:20 +01:00
|
|
|
class Sonogram : public Analyzer::Base {
|
2010-03-21 18:22:05 +01:00
|
|
|
Q_OBJECT
|
2014-02-07 16:34:20 +01:00
|
|
|
public:
|
|
|
|
Q_INVOKABLE Sonogram(QWidget*);
|
|
|
|
~Sonogram();
|
2009-12-24 20:16:07 +01:00
|
|
|
|
2014-02-07 16:34:20 +01:00
|
|
|
static const char* kName;
|
2010-03-21 18:22:05 +01:00
|
|
|
|
2014-02-07 16:34:20 +01:00
|
|
|
protected:
|
2014-05-13 14:46:22 +02:00
|
|
|
void analyze(QPainter& p, const Analyzer::Scope&, bool new_frame);
|
|
|
|
void transform(Analyzer::Scope&);
|
2014-02-07 16:34:20 +01:00
|
|
|
void demo(QPainter& p);
|
|
|
|
void resizeEvent(QResizeEvent*);
|
2010-03-21 18:22:05 +01:00
|
|
|
|
2014-02-07 16:34:20 +01:00
|
|
|
QPixmap canvas_;
|
2009-12-24 20:16:07 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|