comparison widgets/Pane.cpp @ 101:0f36cdf407a6 sv1-v0.9rc1

* Make vertical scale alignment modes work in note layer as well as time-value layer, and several significant fixes to it * Make it possible to draw notes properly on the note layer * Show units (and frequencies etc in note layer's case) in the time-value and note layer description boxes * Minor fix to item edit dialog layout * Some minor menu rearrangement * Comment out a lot of debug output * Add SV website and reference URLs to Help menu, and add code to (attempt to) open them in the user's preferred browser
author Chris Cannam
date Fri, 12 May 2006 14:40:43 +0000
parents 453f7da3534e
children 8dfa20f1c70a
comparison
equal deleted inserted replaced
100:0db5e7492ce8 101:0f36cdf407a6
837 { 837 {
838 if (e->buttons() & Qt::RightButton) { 838 if (e->buttons() & Qt::RightButton) {
839 return; 839 return;
840 } 840 }
841 841
842 std::cerr << "mouseDoubleClickEvent" << std::endl; 842 // std::cerr << "mouseDoubleClickEvent" << std::endl;
843 843
844 m_clickPos = e->pos(); 844 m_clickPos = e->pos();
845 m_clickedInRange = true; 845 m_clickedInRange = true;
846 m_shiftPressed = (e->modifiers() & Qt::ShiftModifier); 846 m_shiftPressed = (e->modifiers() & Qt::ShiftModifier);
847 m_ctrlPressed = (e->modifiers() & Qt::ControlModifier); 847 m_ctrlPressed = (e->modifiers() & Qt::ControlModifier);
848 848
849 ViewManager::ToolMode mode = ViewManager::NavigateMode; 849 ViewManager::ToolMode mode = ViewManager::NavigateMode;
850 if (m_manager) mode = m_manager->getToolMode(); 850 if (m_manager) mode = m_manager->getToolMode();
851 851
852 if (mode == ViewManager::EditMode) { 852 if (mode == ViewManager::NavigateMode ||
853 mode == ViewManager::EditMode) {
853 854
854 Layer *layer = getSelectedLayer(); 855 Layer *layer = getSelectedLayer();
855 if (layer && layer->isLayerEditable()) { 856 if (layer && layer->isLayerEditable()) {
856 layer->editOpen(this, e); 857 layer->editOpen(this, e);
857 } 858 }
1011 1012
1012 void 1013 void
1013 Pane::toolModeChanged() 1014 Pane::toolModeChanged()
1014 { 1015 {
1015 ViewManager::ToolMode mode = m_manager->getToolMode(); 1016 ViewManager::ToolMode mode = m_manager->getToolMode();
1016 std::cerr << "Pane::toolModeChanged(" << mode << ")" << std::endl; 1017 // std::cerr << "Pane::toolModeChanged(" << mode << ")" << std::endl;
1017 1018
1018 switch (mode) { 1019 switch (mode) {
1019 1020
1020 case ViewManager::NavigateMode: 1021 case ViewManager::NavigateMode:
1021 setCursor(Qt::PointingHandCursor); 1022 setCursor(Qt::PointingHandCursor);