comparison layer/TextLayer.cpp @ 248:28c8e8e3c537

* Fix many compile warnings, remove some debug output
author Chris Cannam
date Mon, 30 Apr 2007 13:36:23 +0000
parents 34bbbcb3c01f
children e175ade2d6b0
comparison
equal deleted inserted replaced
247:0e9f59f991aa 248:28c8e8e3c537
73 if (name == "Colour") return tr("Colour"); 73 if (name == "Colour") return tr("Colour");
74 return ""; 74 return "";
75 } 75 }
76 76
77 Layer::PropertyType 77 Layer::PropertyType
78 TextLayer::getPropertyType(const PropertyName &name) const 78 TextLayer::getPropertyType(const PropertyName &) const
79 { 79 {
80 return ValueProperty; 80 return ValueProperty;
81 } 81 }
82 82
83 int 83 int
142 } 142 }
143 } 143 }
144 } 144 }
145 145
146 bool 146 bool
147 TextLayer::getValueExtents(float &min, float &max, 147 TextLayer::getValueExtents(float &, float &, bool &, QString &) const
148 bool &logarithmic, QString &unit) const
149 { 148 {
150 return false; 149 return false;
151 } 150 }
152 151
153 void 152 void
488 m_editingPoint.height = height; 487 m_editingPoint.height = height;
489 m_editingCommand->addPoint(m_editingPoint); 488 m_editingCommand->addPoint(m_editingPoint);
490 } 489 }
491 490
492 void 491 void
493 TextLayer::drawEnd(View *v, QMouseEvent *e) 492 TextLayer::drawEnd(View *v, QMouseEvent *)
494 { 493 {
495 // std::cerr << "TextLayer::drawEnd(" << e->x() << "," << e->y() << ")" << std::endl; 494 // std::cerr << "TextLayer::drawEnd(" << e->x() << "," << e->y() << ")" << std::endl;
496 if (!m_model || !m_editing) return; 495 if (!m_model || !m_editing) return;
497 496
498 bool ok = false; 497 bool ok = false;
559 m_editingPoint.height = height; 558 m_editingPoint.height = height;
560 m_editingCommand->addPoint(m_editingPoint); 559 m_editingCommand->addPoint(m_editingPoint);
561 } 560 }
562 561
563 void 562 void
564 TextLayer::editEnd(View *v, QMouseEvent *e) 563 TextLayer::editEnd(View *, QMouseEvent *)
565 { 564 {
566 // std::cerr << "TextLayer::editEnd(" << e->x() << "," << e->y() << ")" << std::endl; 565 // std::cerr << "TextLayer::editEnd(" << e->x() << "," << e->y() << ")" << std::endl;
567 if (!m_model || !m_editing) return; 566 if (!m_model || !m_editing) return;
568 567
569 if (m_editingCommand) { 568 if (m_editingCommand) {
705 } 704 }
706 } 705 }
707 } 706 }
708 707
709 bool 708 bool
710 TextLayer::paste(const Clipboard &from, int frameOffset, bool interactive) 709 TextLayer::paste(const Clipboard &from, int frameOffset, bool /* interactive */)
711 { 710 {
712 if (!m_model) return false; 711 if (!m_model) return false;
713 712
714 const Clipboard::PointList &points = from.getPoints(); 713 const Clipboard::PointList &points = from.getPoints();
715 714