diff 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
line wrap: on
line diff
--- a/framework/MainWindowBase.cpp	Fri Nov 28 15:45:20 2008 +0000
+++ b/framework/MainWindowBase.cpp	Tue Dec 02 17:17:25 2008 +0000
@@ -355,6 +355,9 @@
     bool haveClipboardContents =
         (m_viewManager &&
          !m_viewManager->getClipboard().empty());
+    bool haveTabularLayer =
+        (haveCurrentLayer &&
+         dynamic_cast<TabularModel *>(currentLayer->getModel()));
 
     emit canAddPane(haveMainModel);
     emit canDeleteCurrentPane(haveCurrentPane);
@@ -370,6 +373,7 @@
     emit canDeleteCurrentLayer(haveCurrentLayer);
     emit canRenameLayer(haveCurrentLayer);
     emit canEditLayer(haveCurrentEditableLayer);
+    emit canEditLayerTabular(haveCurrentEditableLayer || haveTabularLayer);
     emit canMeasureLayer(haveCurrentLayer);
     emit canSelect(haveMainModel && haveCurrentPane);
     emit canPlay(havePlayTarget);