-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #187 from pwgit-create/develop
Appwish Enterprise 2.0.5. PR to Master Branch
- Loading branch information
Showing
16 changed files
with
307 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
AppWish/AppWish/src/main/java/pn/app_wish/constant/AboutConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
package pn.app_wish.constant; | ||
|
||
|
||
public record AboutConstants() { | ||
|
||
private static final String APP_WISH_VERSION = "Appwish Enterprise 2.0.5"; | ||
private static final String ABOUT_APP_WISH = "AppWish (2) is a open source project that creates Java applications from text input with the help of AI models"; | ||
private static final String DEVELOPED_BY = "Pwgit-Create / Peter Westin"; | ||
private static final String CONTACT = "\nEmail: [email protected]"; | ||
private static final String LINK_TO_DISCUSSION = "https://github.com/pwgit-create/APPWISH_OLLAMA/discussions"; | ||
private static final String LINK_TO_ISSUE_PORTAL="https://github.com/pwgit-create/APPWISH_OLLAMA/issues"; | ||
private static final String IF_YOU_LIKE_THE_PROJECT = "\n\nIf you like AppWish and wants to show your support, please let me know by leaving a post"; | ||
private static final String THANKS_FOR_USING_APP_WISH_ENTERPRISE = "\n\nThanks for taking the time to read the about section, you rock! :)"; | ||
|
||
|
||
/** | ||
* Builds an About String that can be used in the About section | ||
* @return String | ||
*/ | ||
public static String BuildAboutString() { | ||
|
||
return "Version: " + | ||
APP_WISH_VERSION + | ||
"\n\nWhat is AppWish used for? " + | ||
ABOUT_APP_WISH + | ||
"\n\nDeveloper: " + | ||
DEVELOPED_BY + | ||
"\n\nQuestions or in need of support? " + | ||
CONTACT + | ||
"\nIssue Portal: " + | ||
LINK_TO_ISSUE_PORTAL + | ||
"\n\nJoin the discussion and see updates: " + | ||
LINK_TO_DISCUSSION + | ||
IF_YOU_LIKE_THE_PROJECT + | ||
THANKS_FOR_USING_APP_WISH_ENTERPRISE; | ||
|
||
} | ||
|
||
/* | ||
Get the header text for the about section | ||
*/ | ||
public static String GetHeaderText(){ | ||
|
||
return "AppWish Enterprise"; | ||
} | ||
|
||
/* | ||
Get the header text for the about section | ||
*/ | ||
public static String GetTitleTest(){ | ||
|
||
return "About AppWish"; | ||
} | ||
|
||
} |
2 changes: 1 addition & 1 deletion
2
AppWish/AppWish/src/main/java/pn/app_wish/constant/GUIConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
AppWish/AppWish/src/main/java/pn/app_wish/controller/SplashScreenController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
package pn.app_wish.controller; | ||
import javafx.animation.PauseTransition; | ||
import javafx.fxml.FXML; | ||
import javafx.fxml.FXMLLoader; | ||
import javafx.fxml.Initializable; | ||
import javafx.scene.Parent; | ||
import javafx.scene.Scene; | ||
import javafx.scene.control.Label; | ||
import javafx.scene.image.Image; | ||
import javafx.scene.image.ImageView; | ||
import javafx.stage.Stage; | ||
import javafx.util.Duration; | ||
import pn.app_wish.AppWish; | ||
|
||
import java.io.IOException; | ||
import java.net.URL; | ||
import java.util.Objects; | ||
import java.util.ResourceBundle; | ||
|
||
|
||
|
||
|
||
public class SplashScreenController implements Initializable { | ||
@FXML | ||
private ImageView splashImage; | ||
|
||
@FXML | ||
private Label label; | ||
|
||
@Override | ||
public void initialize(URL url, ResourceBundle rb) { | ||
|
||
splashImage.setImage(new Image("shooting_star.png")); | ||
PauseTransition delay = new PauseTransition(Duration.seconds(3)); | ||
delay.setOnFinished(event -> { | ||
// Close the SplashScreen and show the main application stage | ||
Stage splashStage = (Stage) splashImage.getScene().getWindow(); | ||
splashStage.close(); | ||
|
||
try { | ||
Parent root = FXMLLoader.load(Objects.requireNonNull(getClass().getClassLoader().getResource("start.fxml"))); | ||
Stage mainStage = new Stage(); | ||
//mainStage.setResizable(false); | ||
mainStage.setScene(new Scene(root)); | ||
|
||
AppWish.mainStage = mainStage; | ||
mainStage.show(); | ||
} catch (IOException ex) { | ||
// Handle exception | ||
} | ||
}); | ||
delay.play(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+603 Bytes
AppWish/AppWish/src/main/resources/java_source_code_classes_tmp/Countdown.class
Binary file not shown.
Oops, something went wrong.