commit 7ea736591baeb849482b7044a3abf47c95cb479f Author: Zohair Ahmed Date: Sat Sep 10 09:39:09 2022 -0400 init-commit, committed what is working diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..b522f75 Binary files /dev/null and b/.DS_Store differ diff --git a/.metadata/.lock b/.metadata/.lock new file mode 100644 index 0000000..e69de29 diff --git a/.metadata/.log b/.metadata/.log new file mode 100644 index 0000000..9f8fab0 --- /dev/null +++ b/.metadata/.log @@ -0,0 +1,28 @@ +!SESSION 2022-09-10 09:35:14.954 ----------------------------------------------- +eclipse.buildId=4.17.0.I20200902-1800 +java.version=14.0.2 +java.vendor=Oracle Corporation +BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_CA +Framework arguments: -product org.eclipse.epp.package.java.product -keyring /Users/Zohair/.eclipse_keyring +Command-line arguments: -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.java.product -keyring /Users/Zohair/.eclipse_keyring + +!ENTRY org.eclipse.jface 2 0 2022-09-10 09:35:28.792 +!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation. +!SUBENTRY 1 org.eclipse.jface 2 0 2022-09-10 09:35:28.792 +!MESSAGE A conflict occurred for COMMAND+SHIFT+T: +Binding(COMMAND+SHIFT+T, + ParameterizedCommand(Command(org.eclipse.jdt.ui.navigate.open.type,Open Type, + Open a type in a Java editor, + Category(org.eclipse.ui.category.navigate,Navigate,null,true), + org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@c02a1be, + ,,true),null), + org.eclipse.ui.defaultAcceleratorConfiguration, + org.eclipse.ui.contexts.window,,,system) +Binding(COMMAND+SHIFT+T, + ParameterizedCommand(Command(org.eclipse.lsp4e.symbolinworkspace,Go to Symbol in Workspace, + , + Category(org.eclipse.lsp4e.category,Language Servers,null,true), + org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@6f740044, + ,,true),null), + org.eclipse.ui.defaultAcceleratorConfiguration, + org.eclipse.ui.contexts.window,,,system) diff --git a/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/properties.index b/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/properties.index new file mode 100644 index 0000000..ed9b514 Binary files /dev/null and b/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/properties.index differ diff --git a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.ui.prefs b/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.ui.prefs new file mode 100644 index 0000000..79a47f9 --- /dev/null +++ b/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.ui.prefs @@ -0,0 +1,90 @@ +content_assist_completion_replacement_background=200,200,0 +content_assist_completion_replacement_foreground=200,0,0 +content_assist_parameters_background=52,57,61 +content_assist_parameters_foreground=238,238,238 +content_assist_proposals_background=52,57,61 +content_assist_proposals_foreground=238,238,238 +eclipse.preferences.version=1 +java_bracket=249,250,244 +java_comment_task_tag=154,140,124 +java_default=217,232,247 +java_doc_default=128,128,128 +java_doc_keyword=154,140,124 +java_doc_link=169,156,140 +java_doc_tag=30,120,155 +java_keyword=204,108,29 +java_keyword_bold=false +java_keyword_return=204,108,29 +java_keyword_return_bold=false +java_multi_line_comment=128,128,128 +java_operator=230,230,250 +java_single_line_comment=128,128,128 +java_string=23,198,163 +matchingBracketsColor=249,250,244 +org.eclipse.jdt.ui.formatterprofiles.version=20 +overriddenByCSS=,content_assist_completion_replacement_background,content_assist_completion_replacement_foreground,content_assist_parameters_background,content_assist_parameters_foreground,content_assist_proposals_background,content_assist_proposals_foreground,java_bracket,java_comment_task_tag,java_default,java_doc_default,java_doc_keyword,java_doc_link,java_doc_tag,java_keyword,java_keyword_bold,java_keyword_return,java_keyword_return_bold,java_multi_line_comment,java_operator,java_single_line_comment,java_string,matchingBracketsColor,pf_coloring_argument,pf_coloring_assignment,pf_coloring_comment,pf_coloring_key,pf_coloring_value,semanticHighlighting.abstractClass.color,semanticHighlighting.abstractClass.enabled,semanticHighlighting.abstractMethodInvocation.color,semanticHighlighting.abstractMethodInvocation.enabled,semanticHighlighting.annotation.color,semanticHighlighting.annotation.enabled,semanticHighlighting.annotation.italic,semanticHighlighting.annotationElementReference.color,semanticHighlighting.annotationElementReference.enabled,semanticHighlighting.class.color,semanticHighlighting.class.enabled,semanticHighlighting.deprecatedMember.color,semanticHighlighting.deprecatedMember.enabled,semanticHighlighting.deprecatedMember.underline,semanticHighlighting.deprecatedMember.strikethrough,semanticHighlighting.enum.color,semanticHighlighting.enum.enabled,semanticHighlighting.enum.italic,semanticHighlighting.field.color,semanticHighlighting.field.enabled,semanticHighlighting.inheritedField.color,semanticHighlighting.inheritedMethodInvocation.color,semanticHighlighting.inheritedMethodInvocation.enabled,semanticHighlighting.interface.color,semanticHighlighting.interface.enabled,semanticHighlighting.localVariable.color,semanticHighlighting.localVariable.enabled,semanticHighlighting.localVariableDeclaration.color,semanticHighlighting.localVariableDeclaration.enabled,semanticHighlighting.localVariableDeclaration.bold,semanticHighlighting.method.color,semanticHighlighting.method.enabled,semanticHighlighting.methodDeclarationName.color,semanticHighlighting.methodDeclarationName.enabled,semanticHighlighting.methodDeclarationName.bold,semanticHighlighting.number.color,semanticHighlighting.number.enabled,semanticHighlighting.parameterVariable.color,semanticHighlighting.parameterVariable.enabled,semanticHighlighting.staticField.color,semanticHighlighting.staticField.enabled,semanticHighlighting.staticFinalField.color,semanticHighlighting.staticFinalField.enabled,semanticHighlighting.staticMethodInvocation.color,semanticHighlighting.staticMethodInvocation.enabled,semanticHighlighting.typeArgument.color,semanticHighlighting.typeArgument.enabled,semanticHighlighting.typeParameter.color,semanticHighlighting.typeParameter.enabled,semanticHighlighting.typeParameter.bold,semanticHighlighting.varKeyword.color,semanticHighlighting.varKeyword.bold,semanticHighlighting.yieldKeyword.color,semanticHighlighting.yieldKeyword.bold,semanticHighlighting.recordKeyword.color,semanticHighlighting.recordKeyword.bold,sourceHoverBackgroundColor, +pf_coloring_argument=221,40,103 +pf_coloring_assignment=217,232,247 +pf_coloring_comment=128,128,128 +pf_coloring_key=217,232,247 +pf_coloring_value=23,198,163 +semanticHighlighting.abstractClass.color=62,171,230 +semanticHighlighting.abstractClass.enabled=true +semanticHighlighting.abstractMethodInvocation.color=128,246,167 +semanticHighlighting.abstractMethodInvocation.enabled=true +semanticHighlighting.annotation.color=160,160,160 +semanticHighlighting.annotation.enabled=true +semanticHighlighting.annotation.italic=true +semanticHighlighting.annotationElementReference.color=235,75,100 +semanticHighlighting.annotationElementReference.enabled=true +semanticHighlighting.class.color=18,144,195 +semanticHighlighting.class.enabled=true +semanticHighlighting.deprecatedMember.color=128,128,128 +semanticHighlighting.deprecatedMember.enabled=true +semanticHighlighting.deprecatedMember.strikethrough=true +semanticHighlighting.deprecatedMember.underline=false +semanticHighlighting.enum.color=204,129,186 +semanticHighlighting.enum.enabled=true +semanticHighlighting.enum.italic=true +semanticHighlighting.field.color=102,225,248 +semanticHighlighting.field.enabled=true +semanticHighlighting.inheritedField.color=143,143,191 +semanticHighlighting.inheritedMethodInvocation.color=205,246,104 +semanticHighlighting.inheritedMethodInvocation.enabled=true +semanticHighlighting.interface.color=128,242,246 +semanticHighlighting.interface.enabled=true +semanticHighlighting.localVariable.color=243,236,121 +semanticHighlighting.localVariable.enabled=true +semanticHighlighting.localVariableDeclaration.bold=false +semanticHighlighting.localVariableDeclaration.color=242,242,0 +semanticHighlighting.localVariableDeclaration.enabled=true +semanticHighlighting.method.color=167,236,33 +semanticHighlighting.method.enabled=true +semanticHighlighting.methodDeclarationName.bold=false +semanticHighlighting.methodDeclarationName.color=30,181,64 +semanticHighlighting.methodDeclarationName.enabled=true +semanticHighlighting.number.color=104,151,187 +semanticHighlighting.number.enabled=true +semanticHighlighting.parameterVariable.color=121,171,255 +semanticHighlighting.parameterVariable.enabled=true +semanticHighlighting.recordKeyword.bold=false +semanticHighlighting.recordKeyword.color=204,108,29 +semanticHighlighting.staticField.color=141,218,248 +semanticHighlighting.staticField.enabled=true +semanticHighlighting.staticFinalField.color=141,218,248 +semanticHighlighting.staticFinalField.enabled=true +semanticHighlighting.staticMethodInvocation.color=150,236,63 +semanticHighlighting.staticMethodInvocation.enabled=true +semanticHighlighting.typeArgument.color=177,102,218 +semanticHighlighting.typeArgument.enabled=true +semanticHighlighting.typeParameter.bold=false +semanticHighlighting.typeParameter.color=191,164,164 +semanticHighlighting.typeParameter.enabled=true +semanticHighlighting.varKeyword.bold=false +semanticHighlighting.varKeyword.color=204,108,29 +semanticHighlighting.yieldKeyword.bold=false +semanticHighlighting.yieldKeyword.color=204,108,29 +sourceHoverBackgroundColor=68,68,68 +spelling_locale_initialized=true +useAnnotationsPrefPage=true +useQuickDiffPrefPage=true diff --git a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.prefs b/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.prefs new file mode 100644 index 0000000..08076f2 --- /dev/null +++ b/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +showIntro=false diff --git a/.metadata/.plugins/org.eclipse.m2e.logback.configuration/0.log b/.metadata/.plugins/org.eclipse.m2e.logback.configuration/0.log new file mode 100644 index 0000000..5514f33 --- /dev/null +++ b/.metadata/.plugins/org.eclipse.m2e.logback.configuration/0.log @@ -0,0 +1 @@ +2022-09-10 09:35:31,123 [Worker-5: Loading available Gradle versions] INFO o.e.b.c.i.u.g.PublishedGradleVersions - Gradle version information cache is up-to-date. Trying to read. diff --git a/.metadata/.plugins/org.eclipse.m2e.logback.configuration/logback.1.16.0.20200318-1040.xml b/.metadata/.plugins/org.eclipse.m2e.logback.configuration/logback.1.16.0.20200318-1040.xml new file mode 100644 index 0000000..e33758c --- /dev/null +++ b/.metadata/.plugins/org.eclipse.m2e.logback.configuration/logback.1.16.0.20200318-1040.xml @@ -0,0 +1,43 @@ + + + + %date [%thread] %-5level %logger{35} - %msg%n + + + OFF + + + + + ${org.eclipse.m2e.log.dir}/0.log + + ${org.eclipse.m2e.log.dir}/%i.log + 1 + 10 + + + 100MB + + + %date [%thread] %-5level %logger{35} - %msg%n + + + + + + WARN + + + + + + + + + + + + + + + diff --git a/.metadata/.plugins/org.eclipse.oomph.setup/workspace.setup b/.metadata/.plugins/org.eclipse.oomph.setup/workspace.setup new file mode 100644 index 0000000..1f73e14 --- /dev/null +++ b/.metadata/.plugins/org.eclipse.oomph.setup/workspace.setup @@ -0,0 +1,6 @@ + + diff --git a/.metadata/.plugins/org.eclipse.ui.intro/introstate b/.metadata/.plugins/org.eclipse.ui.intro/introstate new file mode 100644 index 0000000..02f134f --- /dev/null +++ b/.metadata/.plugins/org.eclipse.ui.intro/introstate @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/.metadata/.plugins/org.eclipse.ui.workbench/workingsets.xml b/.metadata/.plugins/org.eclipse.ui.workbench/workingsets.xml new file mode 100644 index 0000000..5dc9d80 --- /dev/null +++ b/.metadata/.plugins/org.eclipse.ui.workbench/workingsets.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.metadata/version.ini b/.metadata/version.ini new file mode 100644 index 0000000..89cb1c5 --- /dev/null +++ b/.metadata/version.ini @@ -0,0 +1,3 @@ +#Sat Sep 10 09:35:27 EDT 2022 +org.eclipse.core.runtime=2 +org.eclipse.platform=4.17.0.v20200902-1800 diff --git a/LexHelp/.DS_Store b/LexHelp/.DS_Store new file mode 100644 index 0000000..ace53e1 Binary files /dev/null and b/LexHelp/.DS_Store differ diff --git a/LexHelp/.classpath b/LexHelp/.classpath new file mode 100644 index 0000000..75ee049 --- /dev/null +++ b/LexHelp/.classpath @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/LexHelp/.gitignore b/LexHelp/.gitignore new file mode 100644 index 0000000..ae3c172 --- /dev/null +++ b/LexHelp/.gitignore @@ -0,0 +1 @@ +/bin/ diff --git a/LexHelp/.project b/LexHelp/.project new file mode 100644 index 0000000..32c669f --- /dev/null +++ b/LexHelp/.project @@ -0,0 +1,23 @@ + + + LexHelp + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.xtext.ui.shared.xtextBuilder + + + + + + org.eclipse.xtext.ui.shared.xtextNature + org.eclipse.jdt.core.javanature + + diff --git a/LexHelp/.settings/org.eclipse.jdt.core.prefs b/LexHelp/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..910a770 --- /dev/null +++ b/LexHelp/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,14 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=14 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=14 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate +org.eclipse.jdt.core.compiler.debug.localVariable=generate +org.eclipse.jdt.core.compiler.debug.sourceFile=generate +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning +org.eclipse.jdt.core.compiler.release=enabled +org.eclipse.jdt.core.compiler.source=14 diff --git a/LexHelp/build.fxbuild b/LexHelp/build.fxbuild new file mode 100644 index 0000000..bac51f7 --- /dev/null +++ b/LexHelp/build.fxbuild @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/LexHelp/src/.DS_Store b/LexHelp/src/.DS_Store new file mode 100644 index 0000000..2d6aa60 Binary files /dev/null and b/LexHelp/src/.DS_Store differ diff --git a/LexHelp/src/application/.DS_Store b/LexHelp/src/application/.DS_Store new file mode 100644 index 0000000..5008ddf Binary files /dev/null and b/LexHelp/src/application/.DS_Store differ diff --git a/LexHelp/src/application/Main.java b/LexHelp/src/application/Main.java new file mode 100644 index 0000000..032ce6e --- /dev/null +++ b/LexHelp/src/application/Main.java @@ -0,0 +1,57 @@ +package application; + +import java.io.FileInputStream; + +import javafx.application.Application; +import javafx.stage.Stage; +import javafx.scene.Scene; +import javafx.scene.control.Button; +import javafx.scene.image.Image; +import javafx.scene.image.ImageView; +import javafx.scene.layout.BorderPane; +import javafx.scene.transform.Scale; + + +public class Main extends Application { + @Override + public void start(Stage primaryStage) { + int width = 1728, height = 646; + try { + BorderPane root = new BorderPane(); + root.setId("border-pane"); + Scene scene = new Scene(root, width, height); + scene.getStylesheets().add(getClass().getResource("application.css").toExternalForm()); + + // icon + Image icon = new Image("entypo_modern-mic.png"); + + // mic button + FileInputStream micBtnPath = new FileInputStream("src/images/mic.png"); + Image micBtnImg = new Image(micBtnPath); + ImageView micBtnImgView = new ImageView(micBtnImg); + Button micBtn = new Button("Hello", micBtnImgView); + micBtn.setId("mic-Button"); + micBtn.setTranslateX(width/2.05); + micBtn.setTranslateY(height/2); + root.getChildren().add(micBtn); + + micBtn.setOnAction((event) -> { + System.out.println("Button clicked!"); + }); + + // pdf button + + + primaryStage.setTitle("LexHelp"); + primaryStage.getIcons().add(icon); + primaryStage.setScene(scene); + primaryStage.show(); + } catch(Exception e) { + e.printStackTrace(); + } + } + + public static void main(String[] args) { + launch(args); + } +} diff --git a/LexHelp/src/application/application.css b/LexHelp/src/application/application.css new file mode 100644 index 0000000..83a2b61 --- /dev/null +++ b/LexHelp/src/application/application.css @@ -0,0 +1,11 @@ +/* JavaFX CSS - Leave this comment until you have at least create one rule which uses -fx-Property */ +#border-pane { + -fx-background-image: url("../images/lexhelp-bg.png"); + -fx-background-repeat: no-repeat; + -fx-background-size: 1728 646; + -fx-background-position: center center; +} + +#mic-Button { + -fx-background-image: url("../images/mic.png"); +} \ No newline at end of file diff --git a/LexHelp/src/entypo_modern-mic.png b/LexHelp/src/entypo_modern-mic.png new file mode 100644 index 0000000..aa02f1d Binary files /dev/null and b/LexHelp/src/entypo_modern-mic.png differ diff --git a/LexHelp/src/images/lexhelp-bg.png b/LexHelp/src/images/lexhelp-bg.png new file mode 100644 index 0000000..2a5a8ff Binary files /dev/null and b/LexHelp/src/images/lexhelp-bg.png differ diff --git a/LexHelp/src/images/mic.png b/LexHelp/src/images/mic.png new file mode 100644 index 0000000..a942f45 Binary files /dev/null and b/LexHelp/src/images/mic.png differ diff --git a/LexHelp/src/module-info.java b/LexHelp/src/module-info.java new file mode 100644 index 0000000..af72d62 --- /dev/null +++ b/LexHelp/src/module-info.java @@ -0,0 +1,6 @@ +module LexHelp { + requires javafx.controls; + requires javafx.graphics; + + opens application to javafx.graphics, javafx.fxml; +}