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

42 lines
626 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
*/
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:
void analyze(QPainter& p, const Scope&, bool new_frame);
2010-08-28 20:48:16 +02: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