Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
paulpacifico authored Dec 3, 2024
1 parent 7aa62a4 commit b779cf4
Show file tree
Hide file tree
Showing 9 changed files with 335 additions and 280 deletions.
90 changes: 89 additions & 1 deletion src/application/Settings.java
Original file line number Diff line number Diff line change
Expand Up @@ -1776,6 +1776,20 @@ else if (eElement.getElementsByTagName("Name").item(0).getFirstChild().getTextCo
{
FFMPEG.PathToFFMPEG = txtCustomFFmpegPath.getText();
}

//warning values
if (eElement.getElementsByTagName("Name").item(0).getFirstChild().getTextContent().equals("cutKeyframesIsDisplayed"))
{
Shutter.cutKeyframesIsDisplayed = true;
}
else if (eElement.getElementsByTagName("Name").item(0).getFirstChild().getTextContent().equals("rewrapKeyframesIsDisplayed"))
{
Shutter.rewrapKeyframesIsDisplayed = true;
}
else if (eElement.getElementsByTagName("Name").item(0).getFirstChild().getTextContent().equals("conformKeyframesIsDisplayed"))
{
Shutter.conformKeyframesIsDisplayed = true;
}
}
}
}
Expand Down Expand Up @@ -2361,8 +2375,82 @@ else if (p instanceof JPanel)
cValue.appendChild(document.createTextNode(String.valueOf(videoWebCaseMetadata)));
component.appendChild(cValue);

root.appendChild(component);
root.appendChild(component);

//Saving warning values
Element warning = document.createElement("Warning");

if (Shutter.cutKeyframesIsDisplayed)
{
component = document.createElement("Component");

//Type
cType = document.createElement("Type");
cType.appendChild(document.createTextNode("String"));
component.appendChild(cType);

//Name
cName = document.createElement("Name");
cName.appendChild(document.createTextNode("cutKeyframesIsDisplayed"));
component.appendChild(cName);

//Value
cValue = document.createElement("Value");
cValue.appendChild(document.createTextNode(String.valueOf(Shutter.cutKeyframesIsDisplayed)));
component.appendChild(cValue);

warning.appendChild(component);
}

if (Shutter.rewrapKeyframesIsDisplayed)
{
component = document.createElement("Component");

//Type
cType = document.createElement("Type");
cType.appendChild(document.createTextNode("String"));
component.appendChild(cType);

//Name
cName = document.createElement("Name");
cName.appendChild(document.createTextNode("rewrapKeyframesIsDisplayed"));
component.appendChild(cName);

//Value
cValue = document.createElement("Value");
cValue.appendChild(document.createTextNode(String.valueOf(Shutter.rewrapKeyframesIsDisplayed)));
component.appendChild(cValue);

warning.appendChild(component);
}

if (Shutter.conformKeyframesIsDisplayed)
{
component = document.createElement("Component");

//Type
cType = document.createElement("Type");
cType.appendChild(document.createTextNode("String"));
component.appendChild(cType);

//Name
cName = document.createElement("Name");
cName.appendChild(document.createTextNode("conformKeyframesIsDisplayed"));
component.appendChild(cName);

//Value
cValue = document.createElement("Value");
cValue.appendChild(document.createTextNode(String.valueOf(Shutter.conformKeyframesIsDisplayed)));
component.appendChild(cValue);

warning.appendChild(component);
}

if (Shutter.cutKeyframesIsDisplayed || Shutter.rewrapKeyframesIsDisplayed || Shutter.conformKeyframesIsDisplayed)
{
root.appendChild(warning);
}

// creation du fichier XML
TransformerFactory transformerFactory = TransformerFactory.newInstance();
Transformer transformer = transformerFactory.newTransformer();
Expand Down
Loading

0 comments on commit b779cf4

Please sign in to comment.