Mercurial > hg > tony
comparison src/MainWindow.cpp @ 301:2023d5dd6614
adding a note after the last existing one is now possible (#974)
author | matthiasm |
---|---|
date | Thu, 12 Jun 2014 14:31:48 +0100 |
parents | d4530fab80bd |
children | 528d207fd661 |
comparison
equal
deleted
inserted
replaced
298:eabc9b0b2205 | 301:2023d5dd6614 |
---|---|
1113 | 1113 |
1114 | 1114 |
1115 void | 1115 void |
1116 MainWindow::moveByOneNote(bool right, bool doSelect) | 1116 MainWindow::moveByOneNote(bool right, bool doSelect) |
1117 { | 1117 { |
1118 // cerr << "MainWindow::moveByOneNote" << endl; | |
1119 int frame = m_viewManager->getPlaybackFrame(); | 1118 int frame = m_viewManager->getPlaybackFrame(); |
1119 cerr << "MainWindow::moveByOneNote startframe: " << frame << endl; | |
1120 | 1120 |
1121 Pane *p = m_analyser->getPane(); | 1121 Pane *p = m_analyser->getPane(); |
1122 | 1122 |
1123 if (!doSelect) { | 1123 if (!doSelect) { |
1124 m_selectionAnchor = frame; | 1124 m_selectionAnchor = frame; |
1164 } else { | 1164 } else { |
1165 sel = Selection(frame, m_selectionAnchor); | 1165 sel = Selection(frame, m_selectionAnchor); |
1166 } | 1166 } |
1167 m_viewManager->setSelection(sel); | 1167 m_viewManager->setSelection(sel); |
1168 } | 1168 } |
1169 cerr << "MainWindow::moveByOneNote endframe: " << frame << endl; | |
1169 } | 1170 } |
1170 | 1171 |
1171 void | 1172 void |
1172 MainWindow::toolNavigateSelected() | 1173 MainWindow::toolNavigateSelected() |
1173 { | 1174 { |