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
|
|
|
|
*/
|
|
|
|
|
2010-03-21 18:22:05 +01:00
|
|
|
class Sonogram : public Analyzer::Base
|
2009-12-24 20:16:07 +01:00
|
|
|
{
|
2010-03-21 18:22:05 +01:00
|
|
|
Q_OBJECT
|
2009-12-24 20:16:07 +01:00
|
|
|
public:
|
2010-03-21 18:22:05 +01:00
|
|
|
Q_INVOKABLE Sonogram(QWidget*);
|
2009-12-24 20:16:07 +01:00
|
|
|
~Sonogram();
|
|
|
|
|
2010-03-21 18:22:05 +01:00
|
|
|
static const char* kName;
|
|
|
|
|
2009-12-24 20:16:07 +01:00
|
|
|
protected:
|
2010-03-21 18:22:05 +01:00
|
|
|
void analyze(QPainter& p, const Scope&);
|
2009-12-24 20:16:07 +01:00
|
|
|
void transform(Scope&);
|
2010-03-21 18:22:05 +01:00
|
|
|
void demo(QPainter& p);
|
2009-12-24 20:16:07 +01:00
|
|
|
void resizeEvent(QResizeEvent*);
|
2010-03-21 18:22:05 +01:00
|
|
|
|
|
|
|
QPixmap canvas_;
|
2009-12-24 20:16:07 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|