Mercurial > hg > svcore
annotate plugin/PluginXml.h @ 249:d3ac9f953ebf
* Fix #1672407 confused by plugin-named files in cwd (or home?)
* Fix #1491848 crash when loading new file while transform plugin runs
* Fix #1502287 Background remains black after spectrogram layer deleted
* Fix #1604477 Replacing the main audio file silences secondary audio file
* Fix failure to initialise property box layout to last preference on startup
* Fix resample/wrong-rate display in Pane, ensure that right rate is chosen
if all current models have an acceptable rate even if previous main model
had a different one
* Fix "global zoom" broken in previous commit
* Some fixes to spectrogram cache area updating (makes spectrogram appear
more quickly, previously it had a tendency to refresh with empty space)
* Fixes to colour 3d plot normalization
author | Chris Cannam |
---|---|
date | Thu, 08 Mar 2007 16:53:08 +0000 |
parents | f277a171749d |
children | 70a232b1f12a |
rev | line source |
---|---|
Chris@66 | 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ |
Chris@66 | 2 |
Chris@66 | 3 /* |
Chris@66 | 4 Sonic Visualiser |
Chris@66 | 5 An audio file viewer and annotation editor. |
Chris@66 | 6 Centre for Digital Music, Queen Mary, University of London. |
Chris@66 | 7 This file copyright 2006 Chris Cannam. |
Chris@66 | 8 |
Chris@66 | 9 This program is free software; you can redistribute it and/or |
Chris@66 | 10 modify it under the terms of the GNU General Public License as |
Chris@66 | 11 published by the Free Software Foundation; either version 2 of the |
Chris@66 | 12 License, or (at your option) any later version. See the file |
Chris@66 | 13 COPYING included with this distribution for more information. |
Chris@66 | 14 */ |
Chris@66 | 15 |
Chris@66 | 16 #ifndef _PLUGIN_XML_H_ |
Chris@66 | 17 #define _PLUGIN_XML_H_ |
Chris@66 | 18 |
Chris@66 | 19 #include "base/XmlExportable.h" |
Chris@66 | 20 |
Chris@66 | 21 namespace Vamp { class PluginBase; } |
Chris@66 | 22 |
Chris@66 | 23 class QXmlAttributes; |
Chris@66 | 24 |
Chris@66 | 25 class PluginXml : public XmlExportable |
Chris@66 | 26 { |
Chris@66 | 27 public: |
Chris@66 | 28 PluginXml(Vamp::PluginBase *plugin); |
Chris@66 | 29 virtual ~PluginXml(); |
Chris@66 | 30 |
Chris@66 | 31 /** |
Chris@66 | 32 * Export plugin settings to XML. |
Chris@66 | 33 */ |
Chris@66 | 34 virtual QString toXmlString(QString indent = "", |
Chris@66 | 35 QString extraAttributes = "") const; |
Chris@66 | 36 |
Chris@66 | 37 /** |
Chris@66 | 38 * Set the parameters and program of a plugin from a set of XML |
Chris@66 | 39 * attributes. This is a partial inverse of toXmlString. |
Chris@66 | 40 */ |
Chris@66 | 41 virtual void setParameters(const QXmlAttributes &); |
Chris@66 | 42 |
Chris@66 | 43 /** |
Chris@66 | 44 * Set the parameters and program of a plugin from an XML plugin |
Chris@66 | 45 * element as returned by toXmlString. This is a partial inverse |
Chris@66 | 46 * of toXmlString. |
Chris@66 | 47 */ |
Chris@66 | 48 virtual void setParametersFromXml(QString xml); |
Chris@66 | 49 |
Chris@81 | 50 static QString encodeConfigurationChars(QString text); |
Chris@81 | 51 static QString decodeConfigurationChars(QString text); |
Chris@81 | 52 |
Chris@66 | 53 protected: |
Chris@66 | 54 QString stripInvalidParameterNameCharacters(QString) const; |
Chris@66 | 55 |
Chris@66 | 56 Vamp::PluginBase *m_plugin; |
Chris@66 | 57 }; |
Chris@66 | 58 |
Chris@66 | 59 #endif |