Chris@867: /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ Chris@867: Chris@867: /* Chris@867: Sonic Visualiser Chris@867: An audio file viewer and annotation editor. Chris@867: Centre for Digital Music, Queen Mary, University of London. Chris@867: This file copyright 2006-2014 Chris Cannam and QMUL. Chris@867: Chris@867: This program is free software; you can redistribute it and/or Chris@867: modify it under the terms of the GNU General Public License as Chris@867: published by the Free Software Foundation; either version 2 of the Chris@867: License, or (at your option) any later version. See the file Chris@867: COPYING included with this distribution for more information. Chris@867: */ Chris@867: Chris@867: #ifndef ALIGNMENT_VIEW_H Chris@867: #define ALIGNMENT_VIEW_H Chris@867: Chris@867: #include "View.h" Chris@867: Chris@867: class AlignmentView : public View Chris@867: { Chris@867: Q_OBJECT Chris@867: Chris@867: public: Chris@867: AlignmentView(QWidget *parent = 0); Chris@867: virtual QString getPropertyContainerIconName() const { return "alignment"; } Chris@867: Chris@867: void setViewAbove(View *view); Chris@867: void setViewBelow(View *view); Chris@867: Chris@867: public slots: Chris@976: virtual void globalCentreFrameChanged(sv_frame_t); Chris@976: virtual void viewCentreFrameChanged(View *, sv_frame_t); Chris@1183: virtual void viewAboveZoomLevelChanged(ZoomLevel, bool); Chris@1183: virtual void viewBelowZoomLevelChanged(ZoomLevel, bool); Chris@976: virtual void viewManagerPlaybackFrameChanged(sv_frame_t); Chris@867: Chris@867: protected: Chris@867: virtual void paintEvent(QPaintEvent *e); Chris@867: virtual bool shouldLabelSelections() const { return false; } Chris@867: Chris@976: std::vector getKeyFrames(); Chris@976: std::vector getDefaultKeyFrames(); Chris@868: Chris@867: View *m_above; Chris@867: View *m_below; Chris@867: }; Chris@867: Chris@867: #endif