comparison framework/MainWindowBase.cpp @ 146:f90dcec6dd9a

* Permit viewing (though not editing) colour 3d plot layer data in the spreadsheet data viewer dialog * Add somewhat simplistic RDF export for layers * Fix display of peak frequencies in spectrum layer * Fix (I hope) sizing of plugin parameter dialog
author Chris Cannam
date Tue, 02 Dec 2008 17:17:25 +0000
parents 937456ffe33e
children c02706551309
comparison
equal deleted inserted replaced
145:937456ffe33e 146:f90dcec6dd9a
353 (haveCurrentLayer && 353 (haveCurrentLayer &&
354 dynamic_cast<Colour3DPlotLayer *>(currentLayer)); 354 dynamic_cast<Colour3DPlotLayer *>(currentLayer));
355 bool haveClipboardContents = 355 bool haveClipboardContents =
356 (m_viewManager && 356 (m_viewManager &&
357 !m_viewManager->getClipboard().empty()); 357 !m_viewManager->getClipboard().empty());
358 bool haveTabularLayer =
359 (haveCurrentLayer &&
360 dynamic_cast<TabularModel *>(currentLayer->getModel()));
358 361
359 emit canAddPane(haveMainModel); 362 emit canAddPane(haveMainModel);
360 emit canDeleteCurrentPane(haveCurrentPane); 363 emit canDeleteCurrentPane(haveCurrentPane);
361 emit canZoom(haveMainModel && haveCurrentPane); 364 emit canZoom(haveMainModel && haveCurrentPane);
362 emit canScroll(haveMainModel && haveCurrentPane); 365 emit canScroll(haveMainModel && haveCurrentPane);
368 (haveCurrentEditableLayer || haveCurrentColour3DPlot)); 371 (haveCurrentEditableLayer || haveCurrentColour3DPlot));
369 emit canExportImage(haveMainModel && haveCurrentPane); 372 emit canExportImage(haveMainModel && haveCurrentPane);
370 emit canDeleteCurrentLayer(haveCurrentLayer); 373 emit canDeleteCurrentLayer(haveCurrentLayer);
371 emit canRenameLayer(haveCurrentLayer); 374 emit canRenameLayer(haveCurrentLayer);
372 emit canEditLayer(haveCurrentEditableLayer); 375 emit canEditLayer(haveCurrentEditableLayer);
376 emit canEditLayerTabular(haveCurrentEditableLayer || haveTabularLayer);
373 emit canMeasureLayer(haveCurrentLayer); 377 emit canMeasureLayer(haveCurrentLayer);
374 emit canSelect(haveMainModel && haveCurrentPane); 378 emit canSelect(haveMainModel && haveCurrentPane);
375 emit canPlay(havePlayTarget); 379 emit canPlay(havePlayTarget);
376 emit canFfwd(true); 380 emit canFfwd(true);
377 emit canRewind(true); 381 emit canRewind(true);