Clementine-audio-player-Mac.../src/analyzers/sonogram.h

41 lines
612 B
C
Raw Normal View History

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