Mercurial > hg > svgui
comparison widgets/Pane.cpp @ 23:ca57f70b0e48
* Add Zero Crossings output from zc plugin (as well as Zero Crossings Count)
* Use brief friendly names for layers instead of full transform descriptions
* Clearer command names for editing commands
* Some efficiencies in drawing dense points in TimeInstantLayer
author | Chris Cannam |
---|---|
date | Tue, 31 Jan 2006 17:19:45 +0000 |
parents | 3a506d25d95a |
children | dcdb21b62dbb |
comparison
equal
deleted
inserted
replaced
22:179bf7b5ddea | 23:ca57f70b0e48 |
---|---|
339 update(); | 339 update(); |
340 | 340 |
341 } else if (mode == ViewManager::DrawMode) { | 341 } else if (mode == ViewManager::DrawMode) { |
342 | 342 |
343 Layer *layer = getSelectedLayer(); | 343 Layer *layer = getSelectedLayer(); |
344 if (layer) { | 344 if (layer && layer->isLayerEditable()) { |
345 layer->drawStart(e); | 345 layer->drawStart(e); |
346 } | 346 } |
347 | 347 |
348 } else if (mode == ViewManager::EditMode) { | 348 } else if (mode == ViewManager::EditMode) { |
349 | 349 |
350 Layer *layer = getSelectedLayer(); | 350 Layer *layer = getSelectedLayer(); |
351 if (layer) { | 351 if (layer && layer->isLayerEditable()) { |
352 layer->editStart(e); | 352 layer->editStart(e); |
353 } | 353 } |
354 } | 354 } |
355 | 355 |
356 emit paneInteractedWith(); | 356 emit paneInteractedWith(); |
428 update(); | 428 update(); |
429 | 429 |
430 } else if (mode == ViewManager::DrawMode) { | 430 } else if (mode == ViewManager::DrawMode) { |
431 | 431 |
432 Layer *layer = getSelectedLayer(); | 432 Layer *layer = getSelectedLayer(); |
433 if (layer) { | 433 if (layer && layer->isLayerEditable()) { |
434 layer->drawEnd(e); | 434 layer->drawEnd(e); |
435 update(); | 435 update(); |
436 } | 436 } |
437 | 437 |
438 } else if (mode == ViewManager::EditMode) { | 438 } else if (mode == ViewManager::EditMode) { |
439 | 439 |
440 Layer *layer = getSelectedLayer(); | 440 Layer *layer = getSelectedLayer(); |
441 if (layer) { | 441 if (layer && layer->isLayerEditable()) { |
442 layer->editEnd(e); | 442 layer->editEnd(e); |
443 update(); | 443 update(); |
444 } | 444 } |
445 } | 445 } |
446 | 446 |
575 update(); | 575 update(); |
576 | 576 |
577 } else if (mode == ViewManager::DrawMode) { | 577 } else if (mode == ViewManager::DrawMode) { |
578 | 578 |
579 Layer *layer = getSelectedLayer(); | 579 Layer *layer = getSelectedLayer(); |
580 if (layer) { | 580 if (layer && layer->isLayerEditable()) { |
581 layer->drawDrag(e); | 581 layer->drawDrag(e); |
582 } | 582 } |
583 | 583 |
584 } else if (mode == ViewManager::EditMode) { | 584 } else if (mode == ViewManager::EditMode) { |
585 | 585 |
586 Layer *layer = getSelectedLayer(); | 586 Layer *layer = getSelectedLayer(); |
587 if (layer) { | 587 if (layer && layer->isLayerEditable()) { |
588 layer->editDrag(e); | 588 layer->editDrag(e); |
589 } | 589 } |
590 } | 590 } |
591 } | 591 } |
592 | 592 |