comparison rdf/RDFExporter.h @ 500:83eae5239db6

* 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
children ad5f892c0c4d
comparison
equal deleted inserted replaced
499:b71116d3c180 500:83eae5239db6
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
2
3 /*
4 Sonic Visualiser
5 An audio file viewer and annotation editor.
6 Centre for Digital Music, Queen Mary, University of London.
7 This file copyright 2008 QMUL.
8
9 This program is free software; you can redistribute it and/or
10 modify it under the terms of the GNU General Public License as
11 published by the Free Software Foundation; either version 2 of the
12 License, or (at your option) any later version. See the file
13 COPYING included with this distribution for more information.
14 */
15
16 #ifndef _RDF_EXPORTER_H_
17 #define _RDF_EXPORTER_H_
18
19 #include <QString>
20
21 class Model;
22 class RDFFeatureWriter;
23
24 class RDFExporter
25 {
26 public:
27 /**
28 * Return the file extensions that we can write, in a format
29 * suitable for use with QFileDialog. For example, "*.ttl *.n3".
30 */
31 static QString getSupportedExtensions();
32
33 RDFExporter(QString path, Model *model);
34 virtual ~RDFExporter();
35
36 static bool canExportModel(Model *);
37
38 virtual bool isOK() const;
39 virtual QString getError() const;
40
41 virtual void write();
42
43 protected:
44 QString m_path;
45 Model *m_model;
46 RDFFeatureWriter *m_fw;
47 };
48
49 #endif