Mercurial > hg > svgui
comparison layer/TimeRulerLayer.cpp @ 335:2f83b6e3b8ca
* Add Erase tool and mode
* Add icons for Normalize buttons in property boxes, and for Show Peaks
* Add support for velocity in notes -- not yet reflected in display or
editable in the note edit dialog, but they are imported from MIDI,
played, and exported
* Begin work on making pastes align pasted times (subtler than I thought)
author | Chris Cannam |
---|---|
date | Fri, 23 Nov 2007 16:48:23 +0000 |
parents | c0b9eec70639 |
children | 8ebc2ce2a210 |
comparison
equal
deleted
inserted
replaced
334:0a74248af622 | 335:2f83b6e3b8ca |
---|---|
12 License, or (at your option) any later version. See the file | 12 License, or (at your option) any later version. See the file |
13 COPYING included with this distribution for more information. | 13 COPYING included with this distribution for more information. |
14 */ | 14 */ |
15 | 15 |
16 #include "TimeRulerLayer.h" | 16 #include "TimeRulerLayer.h" |
17 | |
18 #include "LayerFactory.h" | |
17 | 19 |
18 #include "data/model/Model.h" | 20 #include "data/model/Model.h" |
19 #include "base/RealTime.h" | 21 #include "base/RealTime.h" |
20 #include "base/ColourDatabase.h" | 22 #include "base/ColourDatabase.h" |
21 #include "view/View.h" | 23 #include "view/View.h" |
312 impose = true; | 314 impose = true; |
313 return ColourDatabase::getInstance()->getColourIndex | 315 return ColourDatabase::getInstance()->getColourIndex |
314 (QString(darkbg ? "White" : "Black")); | 316 (QString(darkbg ? "White" : "Black")); |
315 } | 317 } |
316 | 318 |
319 QString TimeRulerLayer::getLayerPresentationName() const | |
320 { | |
321 LayerFactory *factory = LayerFactory::getInstance(); | |
322 QString layerName = factory->getLayerPresentationName | |
323 (factory->getLayerType(this)); | |
324 return layerName; | |
325 } | |
326 | |
317 void | 327 void |
318 TimeRulerLayer::toXml(QTextStream &stream, | 328 TimeRulerLayer::toXml(QTextStream &stream, |
319 QString indent, QString extraAttributes) const | 329 QString indent, QString extraAttributes) const |
320 { | 330 { |
321 SingleColourLayer::toXml(stream, indent, extraAttributes); | 331 SingleColourLayer::toXml(stream, indent, extraAttributes); |