Mercurial > hg > svgui
comparison layer/FlexiNoteLayer.cpp @ 1515:0fa49a6ce64f time-frequency-boxes
Item-editing updates needed for time-frequency box layer
author | Chris Cannam |
---|---|
date | Fri, 20 Sep 2019 14:19:17 +0100 |
parents | e540aa5d89cd |
children | 37df1530519d |
comparison
equal
deleted
inserted
replaced
1514:e453053a44dc | 1515:0fa49a6ce64f |
---|---|
1602 if (!model) return false; | 1602 if (!model) return false; |
1603 | 1603 |
1604 Event note(0); | 1604 Event note(0); |
1605 if (!getPointToDrag(v, e->x(), e->y(), note)) return false; | 1605 if (!getPointToDrag(v, e->x(), e->y(), note)) return false; |
1606 | 1606 |
1607 // Event note = *points.begin(); | |
1608 | |
1609 ItemEditDialog *dialog = new ItemEditDialog | 1607 ItemEditDialog *dialog = new ItemEditDialog |
1610 (model->getSampleRate(), | 1608 (model->getSampleRate(), |
1611 ItemEditDialog::ShowTime | | 1609 ItemEditDialog::ShowTime | |
1612 ItemEditDialog::ShowDuration | | 1610 ItemEditDialog::ShowDuration | |
1613 ItemEditDialog::ShowValue | | 1611 ItemEditDialog::ShowValue | |
1612 ItemEditDialog::ShowLevel | | |
1614 ItemEditDialog::ShowText, | 1613 ItemEditDialog::ShowText, |
1615 getScaleUnits()); | 1614 getScaleUnits()); |
1616 | 1615 |
1617 dialog->setFrameTime(note.getFrame()); | 1616 dialog->setFrameTime(note.getFrame()); |
1618 dialog->setValue(note.getValue()); | 1617 dialog->setValue(note.getValue()); |