Commit 18ba5b8b authored by Boudewijn Rempt's avatar Boudewijn Rempt

Add config option to save file export settings a bit more easily

parent 87f57e94
......@@ -815,3 +815,15 @@ void KisConfig::setFavoriteCompositeOps(const QStringList& compositeOps)
{
m_cfg.writeEntry("favoriteCompositeOps", compositeOps);
}
QString KisConfig::exportConfiguration(const QString &filterId) const
{
return m_cfg.readEntry("ExportConfiguration-" + filterId, QString());
}
void KisConfig::setExportConfiguration(const QString &filterId, const KisPropertiesConfiguration &properties)
{
QString exportConfig = properties.toXML();
m_cfg.writeEntry("ExportConfiguration-" + filterId, exportConfig);
}
......@@ -26,6 +26,7 @@
#include <kconfiggroup.h>
#include "kis_global.h"
#include "kis_properties_configuration.h"
#include "krita_export.h"
class KoColorProfile;
......@@ -257,6 +258,9 @@ public:
QStringList favoriteCompositeOps() const;
void setFavoriteCompositeOps(const QStringList& compositeOps);
QString exportConfiguration(const QString &filterId) const;
void setExportConfiguration(const QString &filterId, const KisPropertiesConfiguration &properties);
private:
KisConfig(const KisConfig&);
KisConfig& operator=(const KisConfig&);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment