Mercurial > hg > sonic-visualiser
changeset 291:f262f283a655
* 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 | 8e13520c9078 |
children | c39cb9ae64e3 |
files | main/MainWindow.cpp sv.pro |
diffstat | 2 files changed, 12 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/main/MainWindow.cpp Fri Nov 28 15:45:20 2008 +0000 +++ b/main/MainWindow.cpp Tue Dec 02 17:17:25 2008 +0000 @@ -72,8 +72,8 @@ #include "base/UnitDatabase.h" #include "layer/ColourDatabase.h" #include "widgets/ModelDataTableDialog.h" - #include "rdf/PluginRDFIndexer.h" +#include "rdf/RDFExporter.h" // For version information #include <vamp/vamp.h> @@ -1195,7 +1195,7 @@ eaction->setShortcut(tr("E")); eaction->setStatusTip(tr("Edit the currently active layer as a data grid")); connect(eaction, SIGNAL(triggered()), this, SLOT(editCurrentLayer())); - connect(this, SIGNAL(canEditLayer(bool)), eaction, SLOT(setEnabled(bool))); + connect(this, SIGNAL(canEditLayerTabular(bool)), eaction, SLOT(setEnabled(bool))); menu->addAction(eaction); m_rightButtonLayerMenu->addAction(eaction); @@ -2250,6 +2250,14 @@ } } + } else if (suffix == "ttl" || suffix == "n3") { + + RDFExporter exporter(path, model); + exporter.write(); + if (!exporter.isOK()) { + error = exporter.getError(); + } + } else { CSVFileWriter writer(path, model, @@ -2724,7 +2732,7 @@ { QMessageBox mb; mb.setWindowTitle("Open as new session?"); - mb.setText("<b>RDF refers to audio files</b><p>This RDF document refers to one or more audio files.<br>Do you want to load it as a new session, or as a set of additional panes in the existing session?"); + mb.setText("<b>RDF refers to audio files</b><p>This RDF document refers to one or more audio files.<br>Do you want to start a new session for it?"); QPushButton *a = mb.addButton(tr("Create new session"), QMessageBox::AcceptRole); QPushButton *b = mb.addButton(tr("Add to current session"), QMessageBox::RejectRole); mb.setDefaultButton(a);
--- a/sv.pro Fri Nov 28 15:45:20 2008 +0000 +++ b/sv.pro Tue Dec 02 17:17:25 2008 +0000 @@ -19,7 +19,7 @@ contains(DEFINES, BUILD_STATIC):LIBS -= -ljack -LIBS = -lsvframework -lsvaudioio -lsvview -lsvlayer -lsvrdf -lsvtransform -lsvrdf -lsvwidgets -lsvdata -lsvplugin -lsvbase -lsvsystem $$LIBS +LIBS = -lsvframework -lsvaudioio -lsvview -lsvlayer -lsvrdf -lsvtransform -lsvrdf -lsvtransform -lsvwidgets -lsvdata -lsvplugin -lsvbase -lsvsystem $$LIBS PRE_TARGETDEPS += ../view/libsvview.a \ ../layer/libsvlayer.a \