Mercurial > hg > svgui
comparison view/Pane.cpp @ 660:8663a831838f tonioni
instrument is now "click" -- some other minor changes I don't remember
author | matthiasm |
---|---|
date | Thu, 20 Jun 2013 13:47:36 +0100 |
parents | 76c5dfe333ee |
children | 1a0fdad4af4d |
comparison
equal
deleted
inserted
replaced
659:65b966394650 | 660:8663a831838f |
---|---|
2105 (e->buttons() & Qt::MidButton)); | 2105 (e->buttons() & Qt::MidButton)); |
2106 | 2106 |
2107 if (mode == ViewManager::NavigateMode || | 2107 if (mode == ViewManager::NavigateMode || |
2108 mode == ViewManager::EditMode) { | 2108 mode == ViewManager::EditMode) { |
2109 | 2109 |
2110 Layer *layer = getSelectedLayer(); | 2110 Layer *layer = getSelectedLayer(); |
2111 if (layer && layer->isLayerEditable()) { | 2111 if (layer && layer->isLayerEditable()) { |
2112 if (layer->editOpen(this, e)) relocate = false; | 2112 if (layer->editOpen(this, e)) relocate = false; |
2113 } | 2113 } |
2114 | 2114 |
2115 } else if (mode == ViewManager::MeasureMode) { | 2115 } else if (mode == ViewManager::MeasureMode) { |
2116 | 2116 |
2117 Layer *layer = getTopLayer(); | 2117 Layer *layer = getTopLayer(); |
2118 if (layer) layer->measureDoubleClick(this, e); | 2118 if (layer) layer->measureDoubleClick(this, e); |
2130 m_dragMode = UnresolvedDrag; | 2130 m_dragMode = UnresolvedDrag; |
2131 | 2131 |
2132 float vmin, vmax, dmin, dmax; | 2132 float vmin, vmax, dmin, dmax; |
2133 if (getTopLayerDisplayExtents(vmin, vmax, dmin, dmax)) { | 2133 if (getTopLayerDisplayExtents(vmin, vmax, dmin, dmax)) { |
2134 m_dragStartMinValue = dmin; | 2134 m_dragStartMinValue = dmin; |
2135 } | |
2136 } | |
2137 | |
2138 if (mode == ViewManager::NoteEditMode) { | |
2139 std::cerr << "double click in note edit mode" << std::endl; | |
2140 Layer *layer = getSelectedLayer(); | |
2141 if (layer && layer->isLayerEditable()) { | |
2142 layer->addNote(this, e); | |
2135 } | 2143 } |
2136 } | 2144 } |
2137 | 2145 |
2138 m_clickedInRange = false; // in case mouseReleaseEvent is not properly called | 2146 m_clickedInRange = false; // in case mouseReleaseEvent is not properly called |
2139 } | 2147 } |