annotate view/AlignmentView.h @ 867:99373ca20caf alignment_view

First sketch at alignment view (between panes in stack)
author Chris Cannam
date Fri, 17 Oct 2014 14:58:51 +0100
parents
children 99299949f965
rev   line source
Chris@867 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
Chris@867 2
Chris@867 3 /*
Chris@867 4 Sonic Visualiser
Chris@867 5 An audio file viewer and annotation editor.
Chris@867 6 Centre for Digital Music, Queen Mary, University of London.
Chris@867 7 This file copyright 2006-2014 Chris Cannam and QMUL.
Chris@867 8
Chris@867 9 This program is free software; you can redistribute it and/or
Chris@867 10 modify it under the terms of the GNU General Public License as
Chris@867 11 published by the Free Software Foundation; either version 2 of the
Chris@867 12 License, or (at your option) any later version. See the file
Chris@867 13 COPYING included with this distribution for more information.
Chris@867 14 */
Chris@867 15
Chris@867 16 #ifndef ALIGNMENT_VIEW_H
Chris@867 17 #define ALIGNMENT_VIEW_H
Chris@867 18
Chris@867 19 #include "View.h"
Chris@867 20
Chris@867 21 class AlignmentView : public View
Chris@867 22 {
Chris@867 23 Q_OBJECT
Chris@867 24
Chris@867 25 public:
Chris@867 26 AlignmentView(QWidget *parent = 0);
Chris@867 27 virtual QString getPropertyContainerIconName() const { return "alignment"; }
Chris@867 28
Chris@867 29 void setViewAbove(View *view);
Chris@867 30 void setViewBelow(View *view);
Chris@867 31
Chris@867 32 public slots:
Chris@867 33 virtual void globalCentreFrameChanged(int);
Chris@867 34 virtual void viewCentreFrameChanged(View *, int);
Chris@867 35 virtual void viewAboveZoomLevelChanged(int, bool);
Chris@867 36 virtual void viewBelowZoomLevelChanged(int, bool);
Chris@867 37 virtual void viewManagerPlaybackFrameChanged(int);
Chris@867 38
Chris@867 39 protected:
Chris@867 40 virtual void paintEvent(QPaintEvent *e);
Chris@867 41 virtual bool shouldLabelSelections() const { return false; }
Chris@867 42
Chris@867 43 View *m_above;
Chris@867 44 View *m_below;
Chris@867 45 };
Chris@867 46
Chris@867 47 #endif