comparison 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
comparison
equal deleted inserted replaced
14:b101cc2ae1ab 15:47500c27ac26
39 { 39 {
40 QObject::setObjectName(name); 40 QObject::setObjectName(name);
41 emit layerNameChanged(); 41 emit layerNameChanged();
42 } 42 }
43 43
44 int
45 Layer::getXForFrame(long frame) const
46 {
47 if (m_view) return m_view->getXForFrame(frame);
48 else return 0;
49 }
50
51 long
52 Layer::getFrameForX(int x) const
53 {
54 if (m_view) return m_view->getFrameForX(x);
55 else return 0;
56 }
57
44 QString 58 QString
45 Layer::toXmlString(QString indent, QString extraAttributes) const 59 Layer::toXmlString(QString indent, QString extraAttributes) const
46 { 60 {
47 QString s; 61 QString s;
48 62