2010-08-18 18:26:36 +02:00
|
|
|
#include "analyzer.h"
|
|
|
|
|
|
|
|
#include "engines/enginebase.h"
|
|
|
|
|
|
|
|
AnalyzerBase::AnalyzerBase(QWidget* parent)
|
|
|
|
: QGLWidget(parent),
|
|
|
|
engine_(NULL) {
|
|
|
|
}
|
|
|
|
|
|
|
|
void AnalyzerBase::set_engine(Engine::Base* engine) {
|
|
|
|
disconnect(engine_);
|
|
|
|
engine_ = engine;
|
2010-08-23 12:26:00 +02:00
|
|
|
if (engine_) {
|
|
|
|
connect(engine_, SIGNAL(SpectrumAvailable(const QVector<float>&)),
|
|
|
|
SLOT(SpectrumAvailable(const QVector<float>&)));
|
|
|
|
}
|
2010-08-18 18:26:36 +02:00
|
|
|
}
|