Chris@6: /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ Chris@6: Chris@6: /* Chris@6: Tony Chris@6: An intonation analysis and annotation tool Chris@6: Centre for Digital Music, Queen Mary, University of London. Chris@6: This file copyright 2006-2012 Chris Cannam and QMUL. Chris@6: Chris@6: This program is free software; you can redistribute it and/or Chris@6: modify it under the terms of the GNU General Public License as Chris@6: published by the Free Software Foundation; either version 2 of the Chris@6: License, or (at your option) any later version. See the file Chris@6: COPYING included with this distribution for more information. Chris@6: */ Chris@6: Chris@6: #ifndef ANALYSER_H Chris@6: #define ANALYSER_H Chris@6: Chris@6: #include Chris@6: Chris@6: #include "transform/Transform.h" gyorgyf@14: #include "layer/LayerFactory.h" // GF: added so we can access the FlexiNotes enum value. gyorgyf@45: #include "layer/FlexiNoteLayer.h" Chris@6: Chris@6: class WaveFileModel; Chris@6: class Pane; Chris@6: class PaneStack; Chris@6: class Document; Chris@6: class Layer; gyorgyf@14: class LayerFactory; Chris@6: Chris@6: class Analyser : public QObject Chris@6: { Chris@6: Q_OBJECT Chris@6: Chris@6: public: Chris@6: Analyser(); Chris@6: virtual ~Analyser(); Chris@6: Chris@6: void newFileLoaded(Document *newDocument, WaveFileModel *model, Chris@6: PaneStack *paneStack, Pane *pane); gyorgyf@45: gyorgyf@45: void setIntelligentActions(bool); Chris@6: Chris@6: protected: Chris@6: Document *m_document; Chris@6: WaveFileModel *m_fileModel; Chris@6: Pane *m_pane; gyorgyf@45: FlexiNoteLayer *m_flexiNoteLayer; Chris@6: Chris@6: Layer *addLayerFor(TransformId); gyorgyf@15: Layer *addLayerForNotes(TransformId); gyorgyf@14: LayerFactory::LayerType preferredLayer; gyorgyf@14: Chris@6: }; Chris@6: Chris@6: #endif