mirror of
https://github.com/miek/inspectrum.git
synced 2026-03-03 06:54:17 +01:00
28 lines
394 B
C++
28 lines
394 B
C++
#pragma once
|
|
|
|
#include <QWidget>
|
|
#include "inputsource.h"
|
|
|
|
class Spectrogram : public QWidget {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
Spectrogram();
|
|
~Spectrogram();
|
|
|
|
public slots:
|
|
void pickFile();
|
|
void setFFTSize(int size);
|
|
void setPowerMax(int power);
|
|
void setPowerMin(int power);
|
|
|
|
protected:
|
|
void paintEvent(QPaintEvent *event);
|
|
|
|
|
|
private:
|
|
InputSource *inputSource;
|
|
|
|
float powerMax;
|
|
float powerMin;
|
|
}; |