Makor deb pkg fixes....
|
@ -1,9 +0,0 @@
|
||||||
Package: FXWinWrap
|
|
||||||
Version: 0.1-2
|
|
||||||
Section: base
|
|
||||||
Priority: optional
|
|
||||||
Architecture: amd64
|
|
||||||
Depends: openjdk-8-jre (>= 8u45-b14-1), mplayer2 (>=2.0-728-g2c378c7-4), gifsicle (>=1.86-1), nitrogen (>=1.5.2-2)
|
|
||||||
Maintainer: Maxim Stewart maximstewart1@gmail.com
|
|
||||||
Description: FXWinWrap
|
|
||||||
A GUI to handle setting XWinWrap options.
|
|
|
@ -1,9 +0,0 @@
|
||||||
Package: FXWinWrap
|
|
||||||
Version: 0.1-2
|
|
||||||
Section: base
|
|
||||||
Priority: optional
|
|
||||||
Architecture: i386
|
|
||||||
Depends: openjdk-8-jre (>= 8u45-b14-1), mplayer2 (>=2.0-728-g2c378c7-4), gifsicle (>=1.86-1), nitrogen (>=1.5.2-2)
|
|
||||||
Maintainer: Maxim Stewart maximstewart1@gmail.com
|
|
||||||
Description: FXWinWrap
|
|
||||||
A GUI to handle setting XWinWrap options.
|
|
|
@ -1,10 +0,0 @@
|
||||||
[Desktop Entry]
|
|
||||||
Encoding=UTF-8
|
|
||||||
Name=FXWinWrap
|
|
||||||
Comment=JavaFX gui for XWinWrap
|
|
||||||
Exec=/bin/fxwinwrap
|
|
||||||
Icon=/opt/FXWinWrap/resources/fxwinwrap.png
|
|
||||||
Terminal=false
|
|
||||||
Type=Application
|
|
||||||
Categories=Applications;System;
|
|
||||||
MimeType=application/fxml;
|
|
|
@ -1,10 +0,0 @@
|
||||||
[Desktop Entry]
|
|
||||||
Encoding=UTF-8
|
|
||||||
Name=FXWinWrap
|
|
||||||
Comment=JavaFX gui for XWinWrap
|
|
||||||
Exec=/bin/fxwinwrap
|
|
||||||
Icon=/opt/FXWinWrap/resources/fxwinwrap.png
|
|
||||||
Terminal=false
|
|
||||||
Type=Application
|
|
||||||
Categories=Applications;System;
|
|
||||||
MimeType=application/fxml;
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
find . -type f -exec chmod 644 {} +
|
||||||
|
find . -type d -exec chmod 755 {} +
|
||||||
|
|
||||||
|
chown -R root:root ./*/
|
||||||
|
|
|
@ -1,9 +1,8 @@
|
||||||
Package: FXWinWrap
|
Package: fxwinwrap64
|
||||||
Version: 0.1-1
|
Version: 0.1-1
|
||||||
Section: base
|
Section: base
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Architecture: amd64
|
Architecture: amd64
|
||||||
Depends: openjdk-8-jre (>= 8u45-b14-1)
|
Depends: openjdk-8-jre (>= 8u45-b14-1)
|
||||||
Maintainer: Maxim Stewart maximstewart1@gmail.com
|
Maintainer: Maxim Stewart maximstewart1@gmail.com
|
||||||
Description: FXWinWrap
|
Description: A GUI to handle setting XWinWrap options.
|
||||||
A GUI to handle setting XWinWrap options.
|
|
0
src/debs/FXWinWrap_0.1-1_x64/opt/FXWinWrap/launch.sh → src/debs/fxwinwrap-0-1-1-x64/opt/FXWinWrap/launch.sh
Executable file → Normal file
Before Width: | Height: | Size: 9.1 KiB After Width: | Height: | Size: 9.1 KiB |
Before Width: | Height: | Size: 245 KiB After Width: | Height: | Size: 245 KiB |
|
@ -6,5 +6,5 @@ Exec=/bin/fxwinwrap
|
||||||
Icon=/opt/FXWinWrap/resources/fxwinwrap.png
|
Icon=/opt/FXWinWrap/resources/fxwinwrap.png
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Type=Application
|
Type=Application
|
||||||
Categories=Applications;System;
|
Categories=System;
|
||||||
MimeType=application/fxml;
|
MimeType=application/fxml;
|
|
@ -1,9 +1,8 @@
|
||||||
Package: FXWinWrap
|
Package: fxwinwrap
|
||||||
Version: 0.1-1
|
Version: 0.1-1
|
||||||
Section: base
|
Section: base
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Architecture: i386
|
Architecture: i386
|
||||||
Depends: openjdk-8-jre (>= 8u45-b14-1)
|
Depends: openjdk-8-jre (>= 8u45-b14-1)
|
||||||
Maintainer: Maxim Stewart maximstewart1@gmail.com
|
Maintainer: Maxim Stewart maximstewart1@gmail.com
|
||||||
Description: FXWinWrap
|
Description: A GUI to handle setting XWinWrap options.
|
||||||
A GUI to handle setting XWinWrap options.
|
|
0
src/debs/FXWinWrap_0.1-1_x86/opt/FXWinWrap/launch.sh → src/debs/fxwinwrap-0-1-1-x86/opt/FXWinWrap/launch.sh
Executable file → Normal file
Before Width: | Height: | Size: 9.1 KiB After Width: | Height: | Size: 9.1 KiB |
Before Width: | Height: | Size: 245 KiB After Width: | Height: | Size: 245 KiB |
|
@ -6,5 +6,5 @@ Exec=/bin/fxwinwrap
|
||||||
Icon=/opt/FXWinWrap/resources/fxwinwrap.png
|
Icon=/opt/FXWinWrap/resources/fxwinwrap.png
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Type=Application
|
Type=Application
|
||||||
Categories=Applications;System;
|
Categories=System;
|
||||||
MimeType=application/fxml;
|
MimeType=application/fxml;
|
|
@ -1,9 +1,8 @@
|
||||||
Package: FXWinWrap
|
Package: fxwinwrap64
|
||||||
Version: 0.1-2
|
Version: 0.1-2
|
||||||
Section: base
|
Section: base
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Architecture: amd64
|
Architecture: amd64
|
||||||
Depends: openjdk-8-jre (>= 8u45-b14-1), mplayer2 (>=2.0-728-g2c378c7-4), gifsicle (>=1.86-1), nitrogen (>=1.5.2-2)
|
Depends: openjdk-8-jre (>= 8u45-b14-1), mplayer2 (>=2.0-728-g2c378c7-4), gifsicle (>=1.86-1), nitrogen (>=1.5.2-2)
|
||||||
Maintainer: Maxim Stewart maximstewart1@gmail.com
|
Maintainer: Maxim Stewart maximstewart1@gmail.com
|
||||||
Description: FXWinWrap
|
Description: A GUI to handle setting XWinWrap options.
|
||||||
A GUI to handle setting XWinWrap options.
|
|
|
@ -14,7 +14,3 @@ if [ -x "`which xdg-desktop-menu 2>/dev/null`" ]; then
|
||||||
xdg-desktop-menu uninstall /usr/share/applications/FXWinWrap.desktop
|
xdg-desktop-menu uninstall /usr/share/applications/FXWinWrap.desktop
|
||||||
xdg-desktop-menu forceupdate --mode user
|
xdg-desktop-menu forceupdate --mode user
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -x "`which update-menus 2>/dev/null`" ]; then
|
|
||||||
update-menus
|
|
||||||
fi
|
|
0
src/debs/FXWinWrap_0.1-2_x64/opt/FXWinWrap/launch.sh → src/debs/fxwinwrap-0-1-2-x64/opt/FXWinWrap/launch.sh
Executable file → Normal file
Before Width: | Height: | Size: 9.1 KiB After Width: | Height: | Size: 9.1 KiB |
|
@ -6,5 +6,5 @@ Exec=/bin/fxwinwrap
|
||||||
Icon=/opt/FXWinWrap/resources/fxwinwrap.png
|
Icon=/opt/FXWinWrap/resources/fxwinwrap.png
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Type=Application
|
Type=Application
|
||||||
Categories=Applications;System;
|
Categories=System;
|
||||||
MimeType=application/fxml;
|
MimeType=application/fxml;
|
|
@ -1,9 +1,8 @@
|
||||||
Package: FXWinWrap
|
Package: fxwinwrap
|
||||||
Version: 0.1-2
|
Version: 0.1-2
|
||||||
Section: base
|
Section: base
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Architecture: i386
|
Architecture: i386
|
||||||
Depends: openjdk-8-jre (>= 8u45-b14-1), mplayer2 (>=2.0-728-g2c378c7-4), gifsicle (>=1.86-1), nitrogen (>=1.5.2-2)
|
Depends: openjdk-8-jre (>= 8u45-b14-1), mplayer2 (>=2.0-728-g2c378c7-4), gifsicle (>=1.86-1), nitrogen (>=1.5.2-2)
|
||||||
Maintainer: Maxim Stewart maximstewart1@gmail.com
|
Maintainer: Maxim Stewart maximstewart1@gmail.com
|
||||||
Description: FXWinWrap
|
Description: A GUI to handle setting XWinWrap options.
|
||||||
A GUI to handle setting XWinWrap options.
|
|
|
@ -14,7 +14,3 @@ if [ -x "`which xdg-desktop-menu 2>/dev/null`" ]; then
|
||||||
xdg-desktop-menu uninstall /usr/share/applications/FXWinWrap.desktop
|
xdg-desktop-menu uninstall /usr/share/applications/FXWinWrap.desktop
|
||||||
xdg-desktop-menu forceupdate --mode user
|
xdg-desktop-menu forceupdate --mode user
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -x "`which update-menus 2>/dev/null`" ]; then
|
|
||||||
update-menus
|
|
||||||
fi
|
|
0
src/debs/FXWinWrap_0.1-2_x86/opt/FXWinWrap/launch.sh → src/debs/fxwinwrap-0-1-2-x86/opt/FXWinWrap/launch.sh
Executable file → Normal file
Before Width: | Height: | Size: 9.1 KiB After Width: | Height: | Size: 9.1 KiB |
|
@ -6,5 +6,5 @@ Exec=/bin/fxwinwrap
|
||||||
Icon=/opt/FXWinWrap/resources/fxwinwrap.png
|
Icon=/opt/FXWinWrap/resources/fxwinwrap.png
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Type=Application
|
Type=Application
|
||||||
Categories=Applications;System;
|
Categories=System;
|
||||||
MimeType=application/fxml;
|
MimeType=application/fxml;
|
|
@ -0,0 +1,8 @@
|
||||||
|
Package: fxwinwrap64
|
||||||
|
Version: 0.1-3
|
||||||
|
Section: base
|
||||||
|
Priority: optional
|
||||||
|
Architecture: amd64
|
||||||
|
Depends: openjdk-8-jre (>= 8u45-b14-1), openjfx (>= 8u60-b27-4), ffmpegthumbnailer (>= 2.0.10-0.1), mplayer2 (>=2.0-728-g2c378c7-4), gifsicle (>=1.86-1), nitrogen (>=1.5.2-2)
|
||||||
|
Maintainer: Maxim Stewart 1itdominator@gmail.com
|
||||||
|
Description: A GUI to handle setting XWinWrap options.
|
|
@ -7,14 +7,10 @@ if [ -f /bin/fxwinwrap ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -d /opt/FXWinWrap ]; then
|
if [ -d /opt/FXWinWrap ]; then
|
||||||
rm -rf /bin/fxwinwrap
|
rm -rf /opt/FXWinWrap
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -x "`which xdg-desktop-menu 2>/dev/null`" ]; then
|
if [ -x "`which xdg-desktop-menu 2>/dev/null`" ]; then
|
||||||
xdg-desktop-menu uninstall /usr/share/applications/FXWinWrap.desktop
|
xdg-desktop-menu uninstall /usr/share/applications/FXWinWrap.desktop
|
||||||
xdg-desktop-menu forceupdate --mode user
|
xdg-desktop-menu forceupdate --mode user
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -x "`which update-menus 2>/dev/null`" ]; then
|
|
||||||
update-menus
|
|
||||||
fi
|
|
0
src/debs/FXWinWrap_0.1-3_x64/opt/FXWinWrap/launch.sh → src/debs/fxwinwrap-0-1-3-x64/opt/FXWinWrap/launch.sh
Executable file → Normal file
Before Width: | Height: | Size: 9.1 KiB After Width: | Height: | Size: 9.1 KiB |
|
@ -0,0 +1,10 @@
|
||||||
|
[Desktop Entry]
|
||||||
|
Encoding=UTF-8
|
||||||
|
Name=FXWinWrap
|
||||||
|
Comment=JavaFX gui for XWinWrap
|
||||||
|
Exec=/bin/fxwinwrap
|
||||||
|
Icon=/opt/FXWinWrap/resources/fxwinwrap.png
|
||||||
|
Terminal=false
|
||||||
|
Type=Application
|
||||||
|
Categories=System;
|
||||||
|
MimeType=application/fxml;
|
|
@ -0,0 +1,8 @@
|
||||||
|
Package: fxwinwrap
|
||||||
|
Version: 0.1-3
|
||||||
|
Section: base
|
||||||
|
Priority: optional
|
||||||
|
Architecture: i386
|
||||||
|
Depends: openjdk-8-jre (>= 8u45-b14-1), openjfx (>= 8u60-b27-4), ffmpegthumbnailer (>= 2.0.10-0.1), mplayer2 (>=2.0-728-g2c378c7-4), gifsicle (>=1.86-1), nitrogen (>=1.5.2-2)
|
||||||
|
Maintainer: Maxim Stewart 1itdominator@gmail.com
|
||||||
|
Description: A GUI to handle setting XWinWrap options.
|
|
@ -7,14 +7,10 @@ if [ -f /bin/fxwinwrap ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -d /opt/FXWinWrap ]; then
|
if [ -d /opt/FXWinWrap ]; then
|
||||||
rm -rf /bin/fxwinwrap
|
rm -rf /opt/FXWinWrap
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -x "`which xdg-desktop-menu 2>/dev/null`" ]; then
|
if [ -x "`which xdg-desktop-menu 2>/dev/null`" ]; then
|
||||||
xdg-desktop-menu uninstall /usr/share/applications/FXWinWrap.desktop
|
xdg-desktop-menu uninstall /usr/share/applications/FXWinWrap.desktop
|
||||||
xdg-desktop-menu forceupdate --mode user
|
xdg-desktop-menu forceupdate --mode user
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -x "`which update-menus 2>/dev/null`" ]; then
|
|
||||||
update-menus
|
|
||||||
fi
|
|
0
src/debs/FXWinWrap_0.1-3_x86/opt/FXWinWrap/launch.sh → src/debs/fxwinwrap-0-1-3-x86/opt/FXWinWrap/launch.sh
Executable file → Normal file
Before Width: | Height: | Size: 9.1 KiB After Width: | Height: | Size: 9.1 KiB |
|
@ -0,0 +1,10 @@
|
||||||
|
[Desktop Entry]
|
||||||
|
Encoding=UTF-8
|
||||||
|
Name=FXWinWrap
|
||||||
|
Comment=JavaFX gui for XWinWrap
|
||||||
|
Exec=/bin/fxwinwrap
|
||||||
|
Icon=/opt/FXWinWrap/resources/fxwinwrap.png
|
||||||
|
Terminal=false
|
||||||
|
Type=Application
|
||||||
|
Categories=System;
|
||||||
|
MimeType=application/fxml;
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
### nohup is needed to keep child process alive from java's
|
### nohup is needed to keep child process alive from java's
|
||||||
xterm -e ~/.animatedBGstarter.sh
|
xterm -e nohup ~/.animatedBGstarter.sh >/dev/null 2>&1
|
||||||
xterm -e ~/.animatedBGstarter2.sh
|
xterm -e nohup ~/.animatedBGstarter2.sh >/dev/null 2>&1
|
||||||
|
|
|
@ -127,6 +127,7 @@ public class Controller {
|
||||||
imgView = new ImageView("file://" + fileList[i]);
|
imgView = new ImageView("file://" + fileList[i]);
|
||||||
thumbImgView.getChildren().add(imgView);
|
thumbImgView.getChildren().add(imgView);
|
||||||
final ImageView imgViewPoped = new ImageView("file://" + fileList[i]);
|
final ImageView imgViewPoped = new ImageView("file://" + fileList[i]);
|
||||||
|
|
||||||
imgView.setOnMouseClicked(mouse -> {
|
imgView.setOnMouseClicked(mouse -> {
|
||||||
if (mouse.getClickCount() == 2 && !mouse.isConsumed()) {
|
if (mouse.getClickCount() == 2 && !mouse.isConsumed()) {
|
||||||
mouse.consume();
|
mouse.consume();
|
||||||
|
@ -137,7 +138,8 @@ public class Controller {
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Not a video or image file.");
|
System.out.println("Not a video or image file.");
|
||||||
}
|
}
|
||||||
posY = posY + 355.0; }
|
posY = posY + 355.0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// View Image enlarged Note, sets up a seperate stage and scene with auto enlargment
|
// View Image enlarged Note, sets up a seperate stage and scene with auto enlargment
|
||||||
public void displayImg(ImageView imgViewPoped, String path) {
|
public void displayImg(ImageView imgViewPoped, String path) {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
### nohup is needed to keep child process alive from java's
|
### nohup is needed to keep child process alive from java's
|
||||||
xterm -e ~/.animatedBGstarter.sh
|
xterm -e nohup ~/.animatedBGstarter.sh >/dev/null 2>&1
|
||||||
xterm -e ~/.animatedBGstarter2.sh
|
xterm -e nohup ~/.animatedBGstarter2.sh >/dev/null 2>&1
|
||||||
|
|
|
@ -12,13 +12,14 @@ import javafx.scene.input.KeyCode;
|
||||||
import javafx.scene.input.MouseEvent;
|
import javafx.scene.input.MouseEvent;
|
||||||
import javafx.geometry.Insets;
|
import javafx.geometry.Insets;
|
||||||
import java.io.*;
|
import java.io.*;
|
||||||
|
import javafx.beans.value.ChangeListener;
|
||||||
|
import javafx.beans.value.ObservableValue;
|
||||||
|
|
||||||
public class Controller {
|
public class Controller {
|
||||||
private DirectoryChooser folderChooser = new DirectoryChooser(); // Selects a dir
|
private DirectoryChooser folderChooser = new DirectoryChooser(); // Selects a dir
|
||||||
private FileChooser fileChooser = new FileChooser(); // Selects a file
|
|
||||||
private FileWriter fileWriter; // Writes to files
|
private FileWriter fileWriter; // Writes to files
|
||||||
private File directory, sveFileLoc; // Path to file or dir
|
private File directory, sveFileLoc; // Path to file or dir
|
||||||
|
private File[] fileList;
|
||||||
private Image pth = new Image("."); // Path to image
|
private Image pth = new Image("."); // Path to image
|
||||||
private ImageView imgView = new ImageView(pth); // Image view area
|
private ImageView imgView = new ImageView(pth); // Image view area
|
||||||
private Process pb; // Process runner
|
private Process pb; // Process runner
|
||||||
|
@ -52,8 +53,6 @@ public class Controller {
|
||||||
assert tilePane != null : "fx:id=\"tilePane\" was not injected: check your FXML file 'Window.fxml'.";
|
assert tilePane != null : "fx:id=\"tilePane\" was not injected: check your FXML file 'Window.fxml'.";
|
||||||
assert useXSvrn != null : "fx:id=\"useXSvrn\" was not injected: check your FXML file 'Window.fxml'.";
|
assert useXSvrn != null : "fx:id=\"useXSvrn\" was not injected: check your FXML file 'Window.fxml'.";
|
||||||
// Initialize your logic here: all @FXML variables will have been injected
|
// Initialize your logic here: all @FXML variables will have been injected
|
||||||
|
|
||||||
ffmpegChker();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Handler for TextArea[fx:id="dirPathField"] onKeyReleased
|
// Handler for TextArea[fx:id="dirPathField"] onKeyReleased
|
||||||
|
@ -64,23 +63,40 @@ public class Controller {
|
||||||
System.out.println(textAreaPth);
|
System.out.println(textAreaPth);
|
||||||
newDir();
|
newDir();
|
||||||
}
|
}
|
||||||
else
|
else {}
|
||||||
System.out.println("Not calling newDir...");
|
}
|
||||||
|
|
||||||
|
@FXML void test(ActionEvent event) {
|
||||||
|
newDir2();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Scan selected dir
|
// Scan selected dir
|
||||||
public void newDir() {
|
public void newDir() {
|
||||||
|
tilePane.getChildren().clear();
|
||||||
Stage stage = new Stage();
|
Stage stage = new Stage();
|
||||||
if (textAreaPth != "")
|
if (textAreaPth != "")
|
||||||
directory = new File(textAreaPth);
|
directory = new File(textAreaPth);
|
||||||
else
|
else {
|
||||||
directory = folderChooser.showDialog(stage);
|
directory = folderChooser.showDialog(stage);
|
||||||
|
|
||||||
File[] fileList = directory.listFiles();
|
if (directory != null) {
|
||||||
int size = fileList.length;
|
System.out.println("Directory: " + directory);
|
||||||
tilePane.getChildren().clear();
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
fileList = directory.listFiles();
|
||||||
dirPathField.setText("" + directory);
|
dirPathField.setText("" + directory);
|
||||||
for (int i=0; i<size; i++) {
|
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
newDir2();
|
||||||
|
}
|
||||||
|
public void newDir2() {
|
||||||
|
for (int i=0; i<fileList.length; i++) {
|
||||||
String path = "" + fileList[i];
|
String path = "" + fileList[i];
|
||||||
if (fileList[i].getName().contains(".mp4") || fileList[i].getName().contains(".mpeg") ||
|
if (fileList[i].getName().contains(".mp4") || fileList[i].getName().contains(".mpeg") ||
|
||||||
fileList[i].getName().contains(".mpg") || fileList[i].getName().contains(".wmv") ||
|
fileList[i].getName().contains(".mpg") || fileList[i].getName().contains(".wmv") ||
|
||||||
|
@ -92,15 +108,15 @@ public class Controller {
|
||||||
try {
|
try {
|
||||||
pb = Runtime.getRuntime().exec(movieImg);
|
pb = Runtime.getRuntime().exec(movieImg);
|
||||||
pb.waitFor();
|
pb.waitFor();
|
||||||
System.out.println(movieImg);
|
|
||||||
} catch(Throwable imgIOErr) {
|
} catch(Throwable imgIOErr) {
|
||||||
System.out.println(imgIOErr);
|
System.out.println(imgIOErr);
|
||||||
}
|
}
|
||||||
imgView = new ImageView("file:///tmp/image.png");
|
|
||||||
imgView.setFitWidth(300); // Need these here to get grid properly.
|
ImageView view = (ImageView) (tilePane.getChildren().get(i));
|
||||||
imgView.setFitHeight(200);
|
pth = new Image("file:///tmp/image.png");
|
||||||
tilePane.getChildren().add(imgView);
|
|
||||||
imgView.setOnMouseClicked(mouse -> {
|
view.setImage(pth);
|
||||||
|
view.setOnMouseClicked(mouse -> {
|
||||||
if (mouse.getClickCount() == 2 && !mouse.isConsumed()) {
|
if (mouse.getClickCount() == 2 && !mouse.isConsumed()) {
|
||||||
mouse.consume();
|
mouse.consume();
|
||||||
try {
|
try {
|
||||||
|
@ -113,14 +129,14 @@ public class Controller {
|
||||||
});
|
});
|
||||||
} else if(fileList[i].getName().contains(".png") || fileList[i].getName().contains(".jpg")||
|
} else if(fileList[i].getName().contains(".png") || fileList[i].getName().contains(".jpg")||
|
||||||
fileList[i].getName().contains(".gif") || fileList[i].getName().contains(".jpeg")) {
|
fileList[i].getName().contains(".gif") || fileList[i].getName().contains(".jpeg")) {
|
||||||
imgView = new ImageView("file://" + fileList[i]);
|
|
||||||
String title = "" + fileList[i];
|
String title = "" + fileList[i];
|
||||||
imgView.setFitWidth(300); // Need these here to get grid properly.
|
pth = new Image("file://" + fileList[i]);
|
||||||
imgView.setFitHeight(200);
|
ImageView view = (ImageView) (tilePane.getChildren().get(i));
|
||||||
tilePane.getChildren().add(imgView);
|
|
||||||
|
view.setImage(pth);
|
||||||
final ImageView imgViewPoped = new ImageView("file://" + fileList[i]);
|
final ImageView imgViewPoped = new ImageView("file://" + fileList[i]);
|
||||||
// image click actions
|
// image click actions
|
||||||
imgView.setOnMouseClicked(mouse -> {
|
view.setOnMouseClicked(mouse -> {
|
||||||
if (mouse.getClickCount() == 2 && !mouse.isConsumed()) {
|
if (mouse.getClickCount() == 2 && !mouse.isConsumed()) {
|
||||||
mouse.consume();
|
mouse.consume();
|
||||||
displayImg(imgViewPoped, title);
|
displayImg(imgViewPoped, title);
|
||||||
|
@ -217,18 +233,6 @@ public class Controller {
|
||||||
fileWriter.close();
|
fileWriter.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ffmpegChker() throws Exception {
|
|
||||||
File ffmpgLoc = new File("/usr/bin/ffmpegthumbnailer");
|
|
||||||
boolean exists = ffmpgLoc.exists();
|
|
||||||
System.out.println("" + exists);
|
|
||||||
if (exists) {
|
|
||||||
System.out.println("Ffmpeg is present....");
|
|
||||||
} else {
|
|
||||||
String installer = System.getProperty("user.dir") + "/resources/bin/InstallFFMPEGTHUMB.sh";
|
|
||||||
pb = Runtime.getRuntime().exec(installer);
|
|
||||||
pb.waitFor();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// Run changes
|
// Run changes
|
||||||
@FXML void applySttngs(ActionEvent event) throws Exception {
|
@FXML void applySttngs(ActionEvent event) throws Exception {
|
||||||
pb = Runtime.getRuntime().exec("killall xwinwrap &");
|
pb = Runtime.getRuntime().exec("killall xwinwrap &");
|
||||||
|
|
|
@ -13,7 +13,7 @@ public class XWWMenu extends Application {
|
||||||
scene.getStylesheets().add("resources/stylesheet.css");
|
scene.getStylesheets().add("resources/stylesheet.css");
|
||||||
stage.setScene(scene);
|
stage.setScene(scene);
|
||||||
//stage.setResizable(false); // keeps window from resizing
|
//stage.setResizable(false); // keeps window from resizing
|
||||||
stage.setTitle("XWinWrap Menu");
|
stage.setTitle("FXWinWrap");
|
||||||
stage.setMinWidth(800);
|
stage.setMinWidth(800);
|
||||||
stage.setMinHeight(600);
|
stage.setMinHeight(600);
|
||||||
stage.show();
|
stage.show();
|
||||||
|
|
|
@ -1,16 +1,22 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
<?import java.lang.*?>
|
<?import java.lang.String?>
|
||||||
<?import java.util.*?>
|
<?import javafx.collections.FXCollections?>
|
||||||
<?import javafx.collections.*?>
|
<?import javafx.geometry.Insets?>
|
||||||
<?import javafx.geometry.*?>
|
<?import javafx.scene.control.Button?>
|
||||||
<?import javafx.scene.control.*?>
|
<?import javafx.scene.control.CheckBox?>
|
||||||
<?import javafx.scene.layout.*?>
|
<?import javafx.scene.control.ChoiceBox?>
|
||||||
<?import javafx.scene.paint.*?>
|
<?import javafx.scene.control.Label?>
|
||||||
<?import javafx.scene.text.*?>
|
<?import javafx.scene.control.ListView?>
|
||||||
|
<?import javafx.scene.control.ScrollPane?>
|
||||||
|
<?import javafx.scene.control.TextField?>
|
||||||
|
<?import javafx.scene.layout.AnchorPane?>
|
||||||
|
<?import javafx.scene.layout.TilePane?>
|
||||||
|
<?import javafx.scene.paint.Color?>
|
||||||
|
<?import javafx.scene.text.Font?>
|
||||||
<?scenebuilder-background-color 0x444444ff?>
|
<?scenebuilder-background-color 0x444444ff?>
|
||||||
|
|
||||||
<AnchorPane minHeight="300.0" minWidth="300.0" prefHeight="600.0" prefWidth="950.0" xmlns:fx="http://javafx.com/fxml/1" xmlns="http://javafx.com/javafx/2.2" fx:controller="Controller">
|
<AnchorPane minHeight="300.0" minWidth="300.0" prefHeight="600.0" prefWidth="950.0" xmlns="http://javafx.com/javafx/8.0.60" xmlns:fx="http://javafx.com/fxml/1" fx:controller="Controller">
|
||||||
<children>
|
<children>
|
||||||
<TextField id="txtDirPath" fx:id="dirPathField" blendMode="DIFFERENCE" onKeyReleased="#onEnter" prefWidth="880.0" promptText="Directory Path" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="70.0" AnchorPane.topAnchor="0.0" />
|
<TextField id="txtDirPath" fx:id="dirPathField" blendMode="DIFFERENCE" onKeyReleased="#onEnter" prefWidth="880.0" promptText="Directory Path" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="70.0" AnchorPane.topAnchor="0.0" />
|
||||||
<Button fx:id="clear" mnemonicParsing="false" onAction="#clearBttnClick" text="Clear" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0" />
|
<Button fx:id="clear" mnemonicParsing="false" onAction="#clearBttnClick" text="Clear" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0" />
|
||||||
|
@ -146,7 +152,7 @@
|
||||||
</ChoiceBox>
|
</ChoiceBox>
|
||||||
<CheckBox fx:id="lftScrn" layoutX="211.0" mnemonicParsing="false" prefWidth="114.17000000000002" selected="true" text="Left Screen" AnchorPane.bottomAnchor="123.0" />
|
<CheckBox fx:id="lftScrn" layoutX="211.0" mnemonicParsing="false" prefWidth="114.17000000000002" selected="true" text="Left Screen" AnchorPane.bottomAnchor="123.0" />
|
||||||
<CheckBox fx:id="rghtScrn" allowIndeterminate="false" mnemonicParsing="false" prefWidth="114.17000000000002" text="Right Screen" AnchorPane.bottomAnchor="123.0" AnchorPane.rightAnchor="95.0" />
|
<CheckBox fx:id="rghtScrn" allowIndeterminate="false" mnemonicParsing="false" prefWidth="114.17000000000002" text="Right Screen" AnchorPane.bottomAnchor="123.0" AnchorPane.rightAnchor="95.0" />
|
||||||
<CheckBox fx:id="useXSvrn" mnemonicParsing="false" text="Use XScreenSaver" AnchorPane.bottomAnchor="170.0" AnchorPane.leftAnchor="489.0" AnchorPane.rightAnchor="320.0" />
|
<CheckBox fx:id="useXSvrn" layoutX="459.0" layoutY="421.0" mnemonicParsing="false" prefHeight="18.0" prefWidth="168.0" text="Use XScreenSaver" AnchorPane.bottomAnchor="161.0" AnchorPane.leftAnchor="459.0" AnchorPane.rightAnchor="323.0" />
|
||||||
<Label layoutX="211.0" text="Left Screen Resolutions:" AnchorPane.bottomAnchor="193.0" />
|
<Label layoutX="211.0" text="Left Screen Resolutions:" AnchorPane.bottomAnchor="193.0" />
|
||||||
<Label text="XScreenSaver List" AnchorPane.bottomAnchor="227.0" AnchorPane.leftAnchor="14.0" />
|
<Label text="XScreenSaver List" AnchorPane.bottomAnchor="227.0" AnchorPane.leftAnchor="14.0" />
|
||||||
<Label prefWidth="382.0" text="Note: Double click an image to view the video or image." textFill="$x1" AnchorPane.bottomAnchor="219.0" AnchorPane.leftAnchor="369.0" AnchorPane.rightAnchor="199.0" />
|
<Label prefWidth="382.0" text="Note: Double click an image to view the video or image." textFill="$x1" AnchorPane.bottomAnchor="219.0" AnchorPane.leftAnchor="369.0" AnchorPane.rightAnchor="199.0" />
|
||||||
|
|