Mercurial > hg > svgui
comparison view/Pane.cpp @ 675:3437e0fad7ae imaf_enc
IMAF load code from Jesus Corral Garcia
author | Chris Cannam |
---|---|
date | Mon, 04 Nov 2013 17:09:36 +0000 |
parents | d632a1e87018 |
children | 26c5f7fd4807 |
comparison
equal
deleted
inserted
replaced
643:77fa3fdbfc7e | 675:3437e0fad7ae |
---|---|
1426 | 1426 |
1427 int y0 = std::min(m_clickPos.y(), m_mousePos.y()); | 1427 int y0 = std::min(m_clickPos.y(), m_mousePos.y()); |
1428 int y1 = std::max(m_clickPos.y(), m_mousePos.y()); | 1428 int y1 = std::max(m_clickPos.y(), m_mousePos.y()); |
1429 | 1429 |
1430 zoomToRegion(x0, y0, x1, y1); | 1430 zoomToRegion(x0, y0, x1, y1); |
1431 } | 1431 |
1432 } | |
1432 | 1433 |
1433 } else if (mode == ViewManager::SelectMode) { | 1434 } else if (mode == ViewManager::SelectMode) { |
1434 | 1435 |
1435 if (!hasTopLayerTimeXAxis()) { | 1436 if (!hasTopLayerTimeXAxis()) { |
1436 m_releasing = false; | 1437 m_releasing = false; |
1459 | 1460 |
1460 } else if (mode == ViewManager::DrawMode) { | 1461 } else if (mode == ViewManager::DrawMode) { |
1461 | 1462 |
1462 Layer *layer = getSelectedLayer(); | 1463 Layer *layer = getSelectedLayer(); |
1463 if (layer && layer->isLayerEditable()) { | 1464 if (layer && layer->isLayerEditable()) { |
1464 layer->drawEnd(this, e); | 1465 layer->drawEnd(this, e); |
1465 update(); | 1466 update(); |
1466 } | 1467 } |
1467 | 1468 |
1468 } else if (mode == ViewManager::EraseMode) { | 1469 } else if (mode == ViewManager::EraseMode) { |
1469 | 1470 |
1470 Layer *layer = getSelectedLayer(); | 1471 Layer *layer = getSelectedLayer(); |
1594 | 1595 |
1595 } else if (mode == ViewManager::DrawMode) { | 1596 } else if (mode == ViewManager::DrawMode) { |
1596 | 1597 |
1597 Layer *layer = getSelectedLayer(); | 1598 Layer *layer = getSelectedLayer(); |
1598 if (layer && layer->isLayerEditable()) { | 1599 if (layer && layer->isLayerEditable()) { |
1599 layer->drawDrag(this, e); | 1600 layer->drawDrag(this, e); |
1600 } | 1601 } |
1601 | 1602 |
1602 } else if (mode == ViewManager::EraseMode) { | 1603 } else if (mode == ViewManager::EraseMode) { |
1603 | 1604 |
1604 Layer *layer = getSelectedLayer(); | 1605 Layer *layer = getSelectedLayer(); |