diff --git a/bin/.gitignore b/bin/.gitignore index b42b859..1d22fb1 100644 --- a/bin/.gitignore +++ b/bin/.gitignore @@ -1 +1,3 @@ /application/ +/datatypes/ +/cloudControllerInstances/ diff --git a/bin/application/CloudController$1.class b/bin/application/CloudController$1.class index 4935c64..3c7a48e 100644 Binary files a/bin/application/CloudController$1.class and b/bin/application/CloudController$1.class differ diff --git a/bin/application/CloudController$2.class b/bin/application/CloudController$2.class index 39f3eb2..67b3051 100644 Binary files a/bin/application/CloudController$2.class and b/bin/application/CloudController$2.class differ diff --git a/bin/application/CloudController$3.class b/bin/application/CloudController$3.class index 3058cdf..8b7aab4 100644 Binary files a/bin/application/CloudController$3.class and b/bin/application/CloudController$3.class differ diff --git a/bin/application/CloudController.class b/bin/application/CloudController.class index dde3943..a1a35cc 100644 Binary files a/bin/application/CloudController.class and b/bin/application/CloudController.class differ diff --git a/bin/application/Main.class b/bin/application/Main.class index d64faad..d5c8990 100644 Binary files a/bin/application/Main.class and b/bin/application/Main.class differ diff --git a/bin/application/MainWindowController$1.class b/bin/application/MainWindowController$1.class index 109d89f..c0193a7 100644 Binary files a/bin/application/MainWindowController$1.class and b/bin/application/MainWindowController$1.class differ diff --git a/bin/application/MainWindowController$10.class b/bin/application/MainWindowController$10.class index efd526b..bd8e82c 100644 Binary files a/bin/application/MainWindowController$10.class and b/bin/application/MainWindowController$10.class differ diff --git a/bin/application/MainWindowController$11.class b/bin/application/MainWindowController$11.class index 8553fb1..c0b6029 100644 Binary files a/bin/application/MainWindowController$11.class and b/bin/application/MainWindowController$11.class differ diff --git a/bin/application/MainWindowController$12.class b/bin/application/MainWindowController$12.class index 8d58799..99c134b 100644 Binary files a/bin/application/MainWindowController$12.class and b/bin/application/MainWindowController$12.class differ diff --git a/bin/application/MainWindowController$2.class b/bin/application/MainWindowController$2.class index 0273ed2..0ae5aa7 100644 Binary files a/bin/application/MainWindowController$2.class and b/bin/application/MainWindowController$2.class differ diff --git a/bin/application/MainWindowController$3.class b/bin/application/MainWindowController$3.class index 0cc7da3..c8204c7 100644 Binary files a/bin/application/MainWindowController$3.class and b/bin/application/MainWindowController$3.class differ diff --git a/bin/application/MainWindowController$4.class b/bin/application/MainWindowController$4.class index 4aa1e76..d0c5e8e 100644 Binary files a/bin/application/MainWindowController$4.class and b/bin/application/MainWindowController$4.class differ diff --git a/bin/application/MainWindowController$5.class b/bin/application/MainWindowController$5.class index 87e4da9..e471562 100644 Binary files a/bin/application/MainWindowController$5.class and b/bin/application/MainWindowController$5.class differ diff --git a/bin/application/MainWindowController$6.class b/bin/application/MainWindowController$6.class index 5f8003d..05d03fb 100644 Binary files a/bin/application/MainWindowController$6.class and b/bin/application/MainWindowController$6.class differ diff --git a/bin/application/MainWindowController$7.class b/bin/application/MainWindowController$7.class index 365eaa2..9054b33 100644 Binary files a/bin/application/MainWindowController$7.class and b/bin/application/MainWindowController$7.class differ diff --git a/bin/application/MainWindowController$8.class b/bin/application/MainWindowController$8.class index 7713d8d..347a652 100644 Binary files a/bin/application/MainWindowController$8.class and b/bin/application/MainWindowController$8.class differ diff --git a/bin/application/MainWindowController$9.class b/bin/application/MainWindowController$9.class index 2956aba..b1008db 100644 Binary files a/bin/application/MainWindowController$9.class and b/bin/application/MainWindowController$9.class differ diff --git a/bin/application/MainWindowController.class b/bin/application/MainWindowController.class index a6ae3ed..8095115 100644 Binary files a/bin/application/MainWindowController.class and b/bin/application/MainWindowController.class differ diff --git a/bin/application/SmmdbApiQuery.class b/bin/application/SmmdbApiQuery.class index 3e34317..1b41e98 100644 Binary files a/bin/application/SmmdbApiQuery.class and b/bin/application/SmmdbApiQuery.class differ diff --git a/bin/application/dbController.class b/bin/application/dbController.class index ba561da..9c1975a 100644 Binary files a/bin/application/dbController.class and b/bin/application/dbController.class differ diff --git a/bin/application/playGame.class b/bin/application/playGame.class index 5e89f50..b645e69 100644 Binary files a/bin/application/playGame.class and b/bin/application/playGame.class differ diff --git a/bin/cloudControllerInstances/GoogleDriveController.class b/bin/cloudControllerInstances/GoogleDriveController.class index 7b3469e..e70cd05 100644 Binary files a/bin/cloudControllerInstances/GoogleDriveController.class and b/bin/cloudControllerInstances/GoogleDriveController.class differ diff --git a/bin/datatypes/CourseTableDataType.class b/bin/datatypes/CourseTableDataType.class index 5f5d879..137fbe5 100644 Binary files a/bin/datatypes/CourseTableDataType.class and b/bin/datatypes/CourseTableDataType.class differ diff --git a/bin/datatypes/SmmdbApiDataType.class b/bin/datatypes/SmmdbApiDataType.class index 614ef21..770b9b8 100644 Binary files a/bin/datatypes/SmmdbApiDataType.class and b/bin/datatypes/SmmdbApiDataType.class differ diff --git a/bin/datatypes/UIROMDataType.class b/bin/datatypes/UIROMDataType.class index 7264a26..2984b41 100644 Binary files a/bin/datatypes/UIROMDataType.class and b/bin/datatypes/UIROMDataType.class differ diff --git a/src/application/CloudController.java b/src/application/CloudController.java index 74d72f2..c80c237 100644 --- a/src/application/CloudController.java +++ b/src/application/CloudController.java @@ -3,14 +3,22 @@ * * Copyright 2017 <@Seil0> * - * "THE CHOCOLATE-WARE LICENSE" (Revision 1): - * As long as you retain this notice this software is licensed under the GNU GENERAL PUBLIC LICENSE Version 3, - * with the following additions: - * If we meet some day, and you think this stuff is worth it, - * you can buy me a chocolate in return. - @Seil0 - * (license based in Beer-ware, see https://fedoraproject.org/wiki/Licensing/Beerware ) + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301, USA. */ + package application; import java.io.File; diff --git a/src/application/Main.java b/src/application/Main.java index f54e35f..05059a8 100644 --- a/src/application/Main.java +++ b/src/application/Main.java @@ -3,14 +3,22 @@ * * Copyright 2017 <@Seil0> * - * "THE CHOCOLATE-WARE LICENSE" (Revision 1): - * As long as you retain this notice this software is licensed under the GNU GENERAL PUBLIC LICENSE Version 3, - * with the following additions: - * If we meet some day, and you think this stuff is worth it, - * you can buy me a chocolate in return. - @Seil0 - * (license based in Beer-ware, see https://fedoraproject.org/wiki/Licensing/Beerware ) + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301, USA. */ + package application; import java.io.File; diff --git a/src/application/MainWindowController.java b/src/application/MainWindowController.java index dab22e8..a0303ae 100644 --- a/src/application/MainWindowController.java +++ b/src/application/MainWindowController.java @@ -3,14 +3,22 @@ * * Copyright 2017 <@Seil0> * - * "THE CHOCOLATE-WARE LICENSE" (Revision 1): - * As long as you retain this notice this software is licensed under the GNU GENERAL PUBLIC LICENSE Version 3, - * with the following additions: - * If we meet some day, and you think this stuff is worth it, - * you can buy me a chocolate in return. - @Seil0 - * (license based in Beer-ware, see https://fedoraproject.org/wiki/Licensing/Beerware ) + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301, USA. */ + package application; import java.awt.Desktop; @@ -956,178 +964,179 @@ public class MainWindowController { } /** - * add game to games(ArrayList) and initialize all needed actions (start, time stamps, titleID) + * add game to games (ArrayList) and initialize all needed actions (start, time stamps, titleID) * @param title : game title * @param coverPath : path to cover (cache) - * @param romPath : path to rom file (.rpx) - * @param titleID : rom ID + * @param romPath : path to ROM file (.rpx) + * @param titleID : ROM ID */ void addGame(String title, String coverPath, String romPath, String titleID){ - ImageView imageView = new ImageView(); - Label gameTitleLabel = new Label(title); - File coverFile = new File(coverPath); VBox VBox = new VBox(); + Label gameTitleLabel = new Label(); JFXButton gameBtn = new JFXButton(); - Image coverImage = new Image(coverFile.toURI().toString()); + ImageView imageView = new ImageView(); + Image coverImage = new Image(new File(coverPath).toURI().toString()); generatePosition(); - LOGGER.info("add " + getxPos()); //TODO debug - VBox.setLayoutX(getxPos()); - VBox.setLayoutY(getyPos()); - VBox.getChildren().addAll(gameTitleLabel,gameBtn); - gameTitleLabel.setMaxWidth(200); - gameTitleLabel.setPadding(new Insets(0,0,0,8)); - gameTitleLabel.setFont(Font.font("System", FontWeight.BOLD, 14)); - imageView.setImage(coverImage); - imageView.setFitHeight(300); - imageView.setFitWidth(200); - gameBtn.setGraphic(imageView); - gameBtn.setContextMenu(gameContextMenu); - gameBtn.setStyle("-fx-effect: dropshadow(three-pass-box, rgba(0,0,0,0.8), 10, 0, 0, 3); "); - gameBtn.addEventHandler(MouseEvent.MOUSE_CLICKED, new EventHandler() { - @Override - public void handle(MouseEvent event) { - LOGGER.info("selected: "+title+"; ID: "+titleID); - //getting the selected game index by comparing event.getSource() with games.get(i).getButton() - for(int i=0; i 60 minutes, formate is "x hours x minutes" (xh x min), else only minutes are showed - if(Integer.parseInt(dbController.getTotalPlaytime(titleID)) > 60){ - int hoursPlayed = (int) Math.floor(Integer.parseInt(dbController.getTotalPlaytime(titleID))/60); - int minutesPlayed = Integer.parseInt(dbController.getTotalPlaytime(titleID))-60*hoursPlayed; - totalPlaytimeBtn.setText(hoursPlayed+" h "+minutesPlayed+" min"); - }else{ - totalPlaytimeBtn.setText(dbController.getTotalPlaytime(titleID)+ " min"); - } - - if (!playTrue) { - playBtnSlideIn(); - } - if (menuTrue) { - sideMenuSlideOut(); - } - - } - }); - games.add(new UIROMDataType(VBox, gameTitleLabel, gameBtn, imageView, titleID, romPath)); +// LOGGER.info("add " + getxPos()); //TODO debug -// //THIS IS TESTING AREA!!!! -// UIROMDataType test = new UIROMDataType(VBox, gameTitleLabel, gameBtn, imageView, titleID, romPath); -// -// test.getLabel().setText(title); -// test.getLabel().setMaxWidth(200); -// test.getLabel().setPadding(new Insets(0,0,0,8)); -// test.getLabel().setFont(Font.font("System", FontWeight.BOLD, 14)); -// -// //i think we can do this locally and remove the imageView from the datatype since it's used as graphic -// test.getImageView().setImage(coverImage); -// test.getImageView().setFitHeight(300); -// test.getImageView().setFitWidth(200); -// -// test.getButton().setGraphic(test.getImageView()); -// test.getButton().setContextMenu(gameContextMenu); -// test.getButton().setStyle("-fx-effect: dropshadow(three-pass-box, rgba(0,0,0,0.8), 10, 0, 0, 3); "); -// test.getButton().addEventHandler(MouseEvent.MOUSE_CLICKED, new EventHandler() { -// @Override -// public void handle(MouseEvent event) { -// LOGGER.info("selected: " + title + "; ID: " + titleID); -// // getting the selected game index by comparing event.getSource() with games.get(i).getButton() -// for (int i = 0; i < games.size(); i++) { -// if (games.get(i).getButton() == event.getSource()) { -// selectedUIDataIndex = i; -// } -// } -// -// gameExecutePath = romPath; -// selectedGameTitleID = titleID; -// selectedGameTitle = title; -// -// // underling selected Label -// lastGameLabel.setStyle("-fx-underline: false;"); -// games.get(selectedUIDataIndex).getLabel().setStyle("-fx-underline: true;"); -// lastGameLabel = games.get(selectedUIDataIndex).getLabel(); -// -// // setting last played, if lastPlayed is empty game was never played before, else set correct date -// if (dbController.getLastPlayed(titleID).equals("") || dbController.getLastPlayed(titleID).equals(null)) { -// lastTimePlayedBtn.setText("Last played, never"); -// totalPlaytimeBtn.setText(dbController.getTotalPlaytime(titleID) + " min"); -// } else { -// DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yyyy-MM-dd"); -// -// int today = Integer.parseInt(dtf.format(LocalDate.now()).replaceAll("-", "")); -// int yesterday = Integer.parseInt(dtf.format(LocalDate.now().minusDays(1)).replaceAll("-", "")); -// int lastPlayedDay = Integer.parseInt(dbController.getLastPlayed(titleID).replaceAll("-", "")); -// -// if (today == lastPlayedDay) { -// lastTimePlayedBtn.setText("Last played, today"); -// } else if (yesterday == lastPlayedDay) { -// lastTimePlayedBtn.setText("Last played, yesterday"); -// } else { -// lastTimePlayedBtn.setText("Last played, " + dbController.getLastPlayed(titleID)); -// } -// } -// -// // setting total playtime, if total playtime > 60 minutes, formate is "x hours x -// // minutes" (xh x min), else only minutes are showed -// if (Integer.parseInt(dbController.getTotalPlaytime(titleID)) > 60) { -// int hoursPlayed = (int) Math.floor(Integer.parseInt(dbController.getTotalPlaytime(titleID)) / 60); -// int minutesPlayed = Integer.parseInt(dbController.getTotalPlaytime(titleID)) - 60 * hoursPlayed; -// totalPlaytimeBtn.setText(hoursPlayed + " h " + minutesPlayed + " min"); -// } else { -// totalPlaytimeBtn.setText(dbController.getTotalPlaytime(titleID) + " min"); -// } -// -// if (!playTrue) { -// playBtnSlideIn(); -// } -// if (menuTrue) { +// VBox.setLayoutX(getxPos()); +// VBox.setLayoutY(getyPos()); +// VBox.getChildren().addAll(gameTitleLabel,gameBtn); +// gameTitleLabel.setMaxWidth(200); +// gameTitleLabel.setPadding(new Insets(0,0,0,8)); +// gameTitleLabel.setFont(Font.font("System", FontWeight.BOLD, 14)); +// imageView.setImage(coverImage); +// imageView.setFitHeight(300); +// imageView.setFitWidth(200); +// gameBtn.setGraphic(imageView); +// gameBtn.setContextMenu(gameContextMenu); +// gameBtn.setStyle("-fx-effect: dropshadow(three-pass-box, rgba(0,0,0,0.8), 10, 0, 0, 3); "); +// gameBtn.addEventHandler(MouseEvent.MOUSE_CLICKED, new EventHandler() { +// @Override +// public void handle(MouseEvent event) { +// LOGGER.info("selected: "+title+"; ID: "+titleID); +// //getting the selected game index by comparing event.getSource() with games.get(i).getButton() +// for(int i=0; i 60 minutes, formate is "x hours x minutes" (xh x min), else only minutes are showed +// if(Integer.parseInt(dbController.getTotalPlaytime(titleID)) > 60){ +// int hoursPlayed = (int) Math.floor(Integer.parseInt(dbController.getTotalPlaytime(titleID))/60); +// int minutesPlayed = Integer.parseInt(dbController.getTotalPlaytime(titleID))-60*hoursPlayed; +// totalPlaytimeBtn.setText(hoursPlayed+" h "+minutesPlayed+" min"); +// }else{ +// totalPlaytimeBtn.setText(dbController.getTotalPlaytime(titleID)+ " min"); +// } +// +// if (!playTrue) { +// playBtnSlideIn(); +// } +// if (menuTrue) { // sideMenuSlideOut(); // } -// -// } -// }); -// -// test.getVBox().setLayoutX(getxPos()); -// test.getVBox().setLayoutY(getyPos()); -// test.getVBox().getChildren().addAll(gameTitleLabel,gameBtn); -// -// games.add(test); +// +// } +// }); +// games.add(new UIROMDataType(VBox, gameTitleLabel, gameBtn, imageView, titleID, romPath)); + + //THIS IS TESTING AREA!!!! + UIROMDataType uiROMElement = new UIROMDataType(VBox, gameTitleLabel, gameBtn, imageView, titleID, romPath); + + uiROMElement.getLabel().setText(title); + uiROMElement.getLabel().setMaxWidth(200); + uiROMElement.getLabel().setPadding(new Insets(0,0,0,8)); + uiROMElement.getLabel().setFont(Font.font("System", FontWeight.BOLD, 14)); + + // i think we can do this locally and remove the imageView from the data type since it's used as graphic + uiROMElement.getImageView().setImage(coverImage); + uiROMElement.getImageView().setFitHeight(300); + uiROMElement.getImageView().setFitWidth(200); + + uiROMElement.getButton().setGraphic(uiROMElement.getImageView()); + uiROMElement.getButton().setContextMenu(gameContextMenu); + uiROMElement.getButton().setStyle("-fx-effect: dropshadow(three-pass-box, rgba(0,0,0,0.8), 10, 0, 0, 3); "); + uiROMElement.getButton().addEventHandler(MouseEvent.MOUSE_CLICKED, new EventHandler() { + @Override + public void handle(MouseEvent event) { + LOGGER.info("selected: " + title + "; ID: " + titleID); + // getting the selected game index by comparing event.getSource() with games.get(i).getButton() + for (int i = 0; i < games.size(); i++) { + if (games.get(i).getButton() == event.getSource()) { + selectedUIDataIndex = i; + } + } + + gameExecutePath = romPath; + selectedGameTitleID = titleID; + selectedGameTitle = title; + + // underlining selected Label + lastGameLabel.setStyle("-fx-underline: false;"); + games.get(selectedUIDataIndex).getLabel().setStyle("-fx-underline: true;"); + lastGameLabel = games.get(selectedUIDataIndex).getLabel(); + + // setting last played, if lastPlayed is empty game was never played before, else set correct date + if (dbController.getLastPlayed(titleID).equals("") || dbController.getLastPlayed(titleID).equals(null)) { + lastTimePlayedBtn.setText("Last played, never"); + totalPlaytimeBtn.setText(dbController.getTotalPlaytime(titleID) + " min"); + } else { + DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yyyy-MM-dd"); + + int today = Integer.parseInt(dtf.format(LocalDate.now()).replaceAll("-", "")); + int yesterday = Integer.parseInt(dtf.format(LocalDate.now().minusDays(1)).replaceAll("-", "")); + int lastPlayedDay = Integer.parseInt(dbController.getLastPlayed(titleID).replaceAll("-", "")); + + if (lastPlayedDay == today) { + lastTimePlayedBtn.setText("Last played, today"); + } else if (lastPlayedDay == yesterday) { + lastTimePlayedBtn.setText("Last played, yesterday"); + } else { + lastTimePlayedBtn.setText("Last played, " + dbController.getLastPlayed(titleID)); + } + } + + // setting total playtime, if total playtime > 60 minutes, format is "x hours x minutes" (x h x min), + // else only minutes are showed + if (Integer.parseInt(dbController.getTotalPlaytime(titleID)) > 60) { + int hoursPlayed = (int) Math.floor(Integer.parseInt(dbController.getTotalPlaytime(titleID)) / 60); + int minutesPlayed = Integer.parseInt(dbController.getTotalPlaytime(titleID)) - 60 * hoursPlayed; + totalPlaytimeBtn.setText(hoursPlayed + " h " + minutesPlayed + " min"); + } else { + totalPlaytimeBtn.setText(dbController.getTotalPlaytime(titleID) + " min"); + } + + if (!playTrue) { + playBtnSlideIn(); + } + if (menuTrue) { + sideMenuSlideOut(); + } + + } + }); + + uiROMElement.getVBox().setLayoutX(getxPos()); + uiROMElement.getVBox().setLayoutY(getyPos()); + uiROMElement.getVBox().getChildren().addAll(gameTitleLabel,gameBtn); + + // add uiROMElement to games list + games.add(uiROMElement); } - //add all games saved in games(ArrayList) to the gamesAnchorPane + //add all games saved in games(ArrayList) to gamesAnchorPane void addUIData() { for(int i=0; i + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301, USA. */ + package application; import java.io.BufferedReader; diff --git a/src/application/dbController.java b/src/application/dbController.java index c421d77..e535a91 100644 --- a/src/application/dbController.java +++ b/src/application/dbController.java @@ -3,14 +3,22 @@ * * Copyright 2017 <@Seil0> * - * "THE CHOCOLATE-WARE LICENSE" (Revision 1): - * As long as you retain this notice this software is licensed under the GNU GENERAL PUBLIC LICENSE Version 3, - * with the following additions: - * If we meet some day, and you think this stuff is worth it, - * you can buy me a chocolate in return. - @Seil0 - * (license based in Beer-ware, see https://fedoraproject.org/wiki/Licensing/Beerware ) + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301, USA. */ + package application; import java.awt.Graphics2D; diff --git a/src/application/playGame.java b/src/application/playGame.java index 6f8305d..6e7eef1 100644 --- a/src/application/playGame.java +++ b/src/application/playGame.java @@ -3,13 +3,20 @@ * * Copyright 2017 <@Seil0> * - * "THE CHOCOLATE-WARE LICENSE" (Revision 1): - * As long as you retain this notice this software is licensed under the GNU GENERAL PUBLIC LICENSE Version 3, - * with the following additions: - * If we meet some day, and you think this stuff is worth it, - * you can buy me a chocolate in return. - @Seil0 - * (license based in Beer-ware, see https://fedoraproject.org/wiki/Licensing/Beerware ) + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301, USA. */ package application; diff --git a/src/cloudControllerInstances/GoogleDriveController.java b/src/cloudControllerInstances/GoogleDriveController.java index e5f92e3..7589d4c 100644 --- a/src/cloudControllerInstances/GoogleDriveController.java +++ b/src/cloudControllerInstances/GoogleDriveController.java @@ -1,3 +1,24 @@ +/** + * cemu_UI + * + * Copyright 2017 <@Seil0> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + package cloudControllerInstances; import java.io.FileInputStream; diff --git a/src/datatypes/CourseTableDataType.java b/src/datatypes/CourseTableDataType.java index fc70af0..858c6ad 100644 --- a/src/datatypes/CourseTableDataType.java +++ b/src/datatypes/CourseTableDataType.java @@ -1,6 +1,24 @@ /** - * Datatype used in the TreeTableview for + * cemu_UI + * + * Copyright 2017 <@Seil0> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301, USA. */ + package datatypes; import com.jfoenix.controls.datamodels.treetable.RecursiveTreeObject; @@ -16,7 +34,10 @@ public class CourseTableDataType extends RecursiveTreeObject + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301, USA. */ + package datatypes; import javafx.beans.property.IntegerProperty; @@ -23,6 +41,9 @@ public class SmmdbApiDataType { private final StringProperty nintendoid = new SimpleStringProperty(); private final StringProperty title = new SimpleStringProperty(); + /** + * Data type used for the smmdbapi query + */ public SmmdbApiDataType(final int courseTheme, final int gameStyle, final int difficulty, final int lastmodified, final int uploaded, final int autoScroll, final int stars, final int time, final String owner, final String id, final String nintendoid, final String title) { diff --git a/src/datatypes/UIROMDataType.java b/src/datatypes/UIROMDataType.java index 1a57295..5f4ba76 100644 --- a/src/datatypes/UIROMDataType.java +++ b/src/datatypes/UIROMDataType.java @@ -1,6 +1,24 @@ /** - * Datatype used for UI ROM elements + * cemu_UI + * + * Copyright 2017 <@Seil0> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301, USA. */ + package datatypes; import com.jfoenix.controls.JFXButton; @@ -21,6 +39,9 @@ public class UIROMDataType { private final StringProperty titleID = new SimpleStringProperty(); private final StringProperty romPath = new SimpleStringProperty(); + /** + * Data type used for UI ROM elements all uiROMElemts are of this data type + */ public UIROMDataType (final VBox vBox, final Label label, final JFXButton button, final ImageView imageView, final String titleID, final String romPath){ this.vBox.set(vBox); this.label.set(label);