-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
93 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#include "effects/effectpreset.h" | ||
|
||
#include "effects/effectxmlelements.h" | ||
#include "util/xml.h" | ||
|
||
EffectPreset::EffectPreset() { | ||
} | ||
|
||
EffectPreset::EffectPreset(const QDomElement& element) { | ||
if (!element.hasChildNodes()) { | ||
return; | ||
} | ||
|
||
m_id = XmlParse::selectNodeQString(element, EffectXml::EffectId); | ||
m_version = XmlParse::selectNodeQString(element, EffectXml::EffectVersion); | ||
m_dMetaParameter = XmlParse::selectNodeDouble(element, EffectXml::EffectMetaParameter); | ||
|
||
QDomElement parametersElement = XmlParse::selectElement(element, EffectXml::ParametersRoot); | ||
QDomNodeList parametersList = parametersElement.childNodes(); | ||
|
||
for (int i = 0; i < parametersList.count(); ++i) { | ||
QDomNode parameterNode = parametersList.at(i); | ||
if (parameterNode.isElement()) { | ||
QDomElement parameterElement = parameterNode.toElement(); | ||
// EffectParameterPresetPointer pPreset(new EffectParameterPreset(parameterElement)); | ||
// m_effectParameterPresets.append(pPreset); | ||
} | ||
} | ||
} | ||
|
||
EffectPreset::~EffectPreset() { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#ifndef EFFECTPRESET_H | ||
#define EFFECTPRESET_H | ||
|
||
#include <QDomElement> | ||
|
||
#include "effects/defs.h" | ||
|
||
|
||
class EffectPreset { | ||
public: | ||
EffectPreset(); | ||
EffectPreset(const QDomElement& element); | ||
~EffectPreset(); | ||
|
||
private: | ||
QString m_id; | ||
QString m_version; | ||
double m_dMetaParameter; | ||
|
||
// QList <EffectParameterPresetPointer> m_effectParameterPresets; | ||
}; | ||
|
||
#endif /* EFFECTPRESET_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters