General updates and some cleanup with installs.

This commit is contained in:
abaddon 2017-04-23 07:09:15 -05:00
parent 5ecee17034
commit 7d072f4954
35 changed files with 56 additions and 15 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,6 +1,32 @@
#!/bin/bash
# Fixes ownershp
function main() {
sudo find . -type f -exec chmod 644 {} +
sudo find . -type d -exec chmod 755 {} +
sudo chown -R root:root ./*/
# Set postrm permissions
for i in `find . -name postrm`; do
sudo chmod 555 "${i}"
done
# Set fxwinwrap permissions
for i in `find . -name fxwinwrap`; do
sudo chmod 755 "${i}"
done
# Set xwinwrap permissions
for i in `find . -name xwinwrap`; do
sudo chmod 755 "${i}"
done
sudo chmod 755 fxwinwrap*/opt/FXWinWrap/resources/bin/*
builder;
}
#builds debs
function builder() {
for i in `ls`; do
if [[ -d "${i}" ]]; then
dpkg --build "${i}"

View File

@ -1,5 +0,0 @@
find . -type f -exec chmod 644 {} +
find . -type d -exec chmod 755 {} +
chown -R root:root ./*/

View File

View File

View File

View File

View File

View File

Binary file not shown.

View File

@ -14,6 +14,9 @@ import javafx.geometry.Insets;
import java.io.*;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.concurrent.Task;
import javafx.application.Platform;
public class Controller {
private DirectoryChooser folderChooser = new DirectoryChooser(); // Selects a dir
@ -62,12 +65,12 @@ public class Controller {
textAreaPth = dirPathField.getText();
System.out.println(textAreaPth);
newDir();
}
}
else {}
}
@FXML void test(ActionEvent event) {
newDir2();
newDir();
}
// Scan selected dir
@ -88,12 +91,19 @@ public class Controller {
dirPathField.setText("" + directory);
for (int i=0; i<fileList.length; i++) {
imgView = new ImageView();
imgView.setFitWidth(300); // Need these here to get grid properly.
imgView.setFitHeight(200);
tilePane.getChildren().add(imgView);
imgView = new ImageView();
imgView.setFitWidth(300); // Need these here to get grid properly.
imgView.setFitHeight(200);
tilePane.getChildren().add(imgView);
}
newDir2();
Task getDir = new Task<Void>() {
@Override public Void call() {
newDir2();
return null;
}};
new Thread(getDir).start();
}
public void newDir2() {
for (int i=0; i<fileList.length; i++) {
@ -114,8 +124,11 @@ public class Controller {
ImageView view = (ImageView) (tilePane.getChildren().get(i));
pth = new Image("file:///tmp/image.png");
view.setImage(pth);
Platform.runLater(new Runnable() {
@Override public void run() {
view.setImage(pth);
}
});
view.setOnMouseClicked(mouse -> {
if (mouse.getClickCount() == 2 && !mouse.isConsumed()) {
mouse.consume();
@ -133,7 +146,11 @@ public class Controller {
pth = new Image("file://" + fileList[i]);
ImageView view = (ImageView) (tilePane.getChildren().get(i));
view.setImage(pth);
Platform.runLater(new Runnable() {
@Override public void run() {
view.setImage(pth);
}
});
final ImageView imgViewPoped = new ImageView("file://" + fileList[i]);
// image click actions
view.setOnMouseClicked(mouse -> {

Binary file not shown.

3
src/versions/v0.0.3/clean.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
rm *.class