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