can now drag and drop folders regardless of their content, only containing images will be added to program

This commit is contained in:
Victor Giers
2021-01-07 20:48:53 +01:00
parent d82b8a4090
commit 6d2f8b5170
2 changed files with 36 additions and 5 deletions

View File

@@ -19,6 +19,8 @@ class Bounder {
}
if (state == 3) {
h = -p2.dist(new PVector(mouseX, mouseY));
}
}
void update() {
@@ -58,7 +60,7 @@ class Bounder {
}
}
void compile() {
void compile(boolean Execute) {
PVector ptopmid = new PVector((p1.x + p2.x)/2, (p1.y + p2.y)/2);
PVector pbotmid = new PVector((p3.x + p4.x)/2, (p3.y + p4.y)/2);
@@ -100,7 +102,8 @@ class Bounder {
//String[] runConvert = { "/bin/bash", "-c", "cd " + folderURI + " && mkdir " + folderName + " && " + cmdleft + " && " + cmdright + " && " + cmdpdf };
String[] runConvert = { "/bin/bash", "-c", "cd " + folderURI + " && mkdir " + folderName + " && " + cmdleft + " && " + cmdright };
exec(runConvert);
if(Execute) exec(runConvert);
//println(leftLeftTopX + "," + leftLeftTopY + " " + leftRightTopX + "," + leftRightTopY + " " + leftRightBotX + "," + leftRightBotY + " " + leftLeftBotX + "," + leftLeftBotY);
//println(rightLeftTopX + "," + rightLeftTopY + " " + rightRightTopX + "," + rightRightTopY + " " + rightRightBotX + "," + rightRightBotY + " " + rightLeftBotX + "," + rightLeftBotY);