# HG changeset patch # User Chris Cannam # Date 1140456220 0 # Node ID 5e28cbb431d04e2dac943f9998fcf94835f0e5e2 # Parent 4afaf0df4d5113c8ee3c3d8aca656220774c48fa * Improvements to text layer editing, and implement file I/O for it * Start some fixes to spectrogram frequency computation diff -r 4afaf0df4d51 -r 5e28cbb431d0 base/Layer.cpp --- a/base/Layer.cpp Mon Feb 20 13:33:36 2006 +0000 +++ b/base/Layer.cpp Mon Feb 20 17:23:40 2006 +0000 @@ -78,7 +78,7 @@ PlayParameters * Layer::getPlayParameters() { - std::cerr << "Layer (" << this << ", " << objectName().toStdString() << ")::getPlayParameters: model is "<< getModel() << std::endl; +// std::cerr << "Layer (" << this << ", " << objectName().toStdString() << ")::getPlayParameters: model is "<< getModel() << std::endl; const Model *model = getModel(); if (model) { return PlayParameterRepository::instance()->getPlayParameters(model); diff -r 4afaf0df4d51 -r 5e28cbb431d0 base/Layer.h --- a/base/Layer.h Mon Feb 20 13:33:36 2006 +0000 +++ b/base/Layer.h Mon Feb 20 17:23:40 2006 +0000 @@ -117,6 +117,8 @@ virtual void editDrag(QMouseEvent *) { } virtual void editEnd(QMouseEvent *) { } + virtual void editOpen(QMouseEvent *) { } // on double-click + // Text mode: // // Label nearest feature. We need to get the feature coordinates diff -r 4afaf0df4d51 -r 5e28cbb431d0 base/ViewManager.h --- a/base/ViewManager.h Mon Feb 20 13:33:36 2006 +0000 +++ b/base/ViewManager.h Mon Feb 20 17:23:40 2006 +0000 @@ -72,8 +72,7 @@ NavigateMode, SelectMode, EditMode, - DrawMode, - TextMode + DrawMode }; ToolMode getToolMode() const { return m_toolMode; } void setToolMode(ToolMode mode);