comparison view/AlignmentView.h @ 1216:dc2af6616c83

Merge from branch 3.0-integration
author Chris Cannam
date Fri, 13 Jan 2017 10:29:50 +0000
parents f2c63ec85901
children 57d192e26331
comparison
equal deleted inserted replaced
1048:e8102ff5573b 1216:dc2af6616c83
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(sv_frame_t);
34 virtual void viewCentreFrameChanged(View *, sv_frame_t);
35 virtual void viewAboveZoomLevelChanged(int, bool);
36 virtual void viewBelowZoomLevelChanged(int, bool);
37 virtual void viewManagerPlaybackFrameChanged(sv_frame_t);
38
39 protected:
40 virtual void paintEvent(QPaintEvent *e);
41 virtual bool shouldLabelSelections() const { return false; }
42
43 std::vector<sv_frame_t> getKeyFrames();
44 std::vector<sv_frame_t> getDefaultKeyFrames();
45
46 View *m_above;
47 View *m_below;
48 };
49
50 #endif