diff layer/NoteLayer.h @ 439:681542f0c8c5

* Add vertical zoom/pan to note layer as well (when not in auto-align or MIDI scale modes)
author Chris Cannam
date Fri, 24 Oct 2008 16:43:59 +0000
parents e1a9e478b7f2
children efe0f232685f
line wrap: on
line diff
--- a/layer/NoteLayer.h	Fri Oct 24 16:21:57 2008 +0000
+++ b/layer/NoteLayer.h	Fri Oct 24 16:43:59 2008 +0000
@@ -95,6 +95,12 @@
                                  bool &log, QString &unit) const;
 
     virtual bool getDisplayExtents(float &min, float &max) const;
+    virtual bool setDisplayExtents(float min, float max);
+
+    virtual int getVerticalZoomSteps(int &defaultStep) const;
+    virtual int getCurrentVerticalZoomStep() const;
+    virtual void setVerticalZoomStep(int);
+    virtual RangeMapper *getNewVerticalZoomRangeMapper() const;
 
     virtual void toXml(QTextStream &stream, QString indent = "",
                        QString extraAttributes = "") const;
@@ -118,6 +124,11 @@
     NoteModel::EditCommand *m_editingCommand;
     VerticalScale m_verticalScale;
 
+    mutable float m_scaleMinimum;
+    mutable float m_scaleMaximum;
+
+    bool shouldAutoAlign() const;
+
     void finish(NoteModel::EditCommand *command) {
         Command *c = command->finish();
         if (c) CommandHistory::getInstance()->addCommand(c, false);