diff base/Layer.cpp @ 15:47500c27ac26

* Add getXForFrame / getFrameForX in preference to using the zoom level everywhere
author Chris Cannam
date Mon, 30 Jan 2006 13:19:42 +0000
parents f67ddc287bc3
children 4b16526b011b
line wrap: on
line diff
--- a/base/Layer.cpp	Fri Jan 27 18:04:07 2006 +0000
+++ b/base/Layer.cpp	Mon Jan 30 13:19:42 2006 +0000
@@ -41,6 +41,20 @@
     emit layerNameChanged();
 }
 
+int
+Layer::getXForFrame(long frame) const
+{
+    if (m_view) return m_view->getXForFrame(frame);
+    else return 0;
+}
+
+long
+Layer::getFrameForX(int x) const
+{
+    if (m_view) return m_view->getFrameForX(x);
+    else return 0;
+}
+
 QString
 Layer::toXmlString(QString indent, QString extraAttributes) const
 {