annotate widgets/LayerTreeDialog.h @ 1551:e79731086b0f

Fixes to NoteLayer, particularly to calculation of vertical scale when model unit is not Hz. To avoid inconsistency we now behave as if the unit is always Hz from the point of view of the external API and display, converting at the point where we obtain values from the events themselves. Also various fixes to editing.
author Chris Cannam
date Thu, 21 Nov 2019 14:02:57 +0000
parents 05d614f6e46d
children
rev   line source
Chris@336 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
Chris@336 2
Chris@336 3 /*
Chris@336 4 Sonic Visualiser
Chris@336 5 An audio file viewer and annotation editor.
Chris@336 6 Centre for Digital Music, Queen Mary, University of London.
Chris@336 7 This file copyright 2007 QMUL.
Chris@336 8
Chris@336 9 This program is free software; you can redistribute it and/or
Chris@336 10 modify it under the terms of the GNU General Public License as
Chris@336 11 published by the Free Software Foundation; either version 2 of the
Chris@336 12 License, or (at your option) any later version. See the file
Chris@336 13 COPYING included with this distribution for more information.
Chris@336 14 */
Chris@336 15
Chris@1407 16 #ifndef SV_LAYER_TREE_DIALOG_H
Chris@1407 17 #define SV_LAYER_TREE_DIALOG_H
Chris@336 18
Chris@336 19 #include <QDialog>
Chris@336 20
Chris@392 21 class ModelMetadataModel;
Chris@336 22 class LayerTreeModel;
Chris@336 23 class PaneStack;
Chris@336 24 class QTreeView;
Chris@336 25 class QTableView;
Chris@336 26
Chris@336 27 class LayerTreeDialog : public QDialog
Chris@336 28 {
Chris@336 29 Q_OBJECT
Chris@336 30
Chris@336 31 public:
Chris@336 32 LayerTreeDialog(PaneStack *stack, QWidget *parent = 0);
Chris@336 33 ~LayerTreeDialog();
Chris@336 34
Chris@336 35 protected:
Chris@336 36 PaneStack *m_paneStack;
Chris@392 37 ModelMetadataModel *m_modelModel;
Chris@336 38 QTableView *m_modelView;
Chris@336 39 LayerTreeModel *m_layerModel;
Chris@336 40 QTreeView *m_layerView;
Chris@336 41 };
Chris@336 42
Chris@336 43 #endif