Added about page + help commented
This commit is contained in:
parent
96133965c6
commit
5abb23415c
119
src/main/java/gui/AboutTab.java
Executable file
119
src/main/java/gui/AboutTab.java
Executable file
|
@ -0,0 +1,119 @@
|
||||||
|
package gui;
|
||||||
|
|
||||||
|
import alg.XML_processing;
|
||||||
|
import data.*;
|
||||||
|
import javafx.application.HostServices;
|
||||||
|
import javafx.beans.InvalidationListener;
|
||||||
|
import javafx.beans.Observable;
|
||||||
|
import javafx.beans.binding.StringBinding;
|
||||||
|
import javafx.beans.property.ReadOnlyDoubleWrapper;
|
||||||
|
import javafx.beans.value.ChangeListener;
|
||||||
|
import javafx.beans.value.ObservableValue;
|
||||||
|
import javafx.collections.ListChangeListener;
|
||||||
|
import javafx.collections.ObservableList;
|
||||||
|
import javafx.concurrent.Task;
|
||||||
|
import javafx.fxml.FXML;
|
||||||
|
import javafx.scene.control.*;
|
||||||
|
import javafx.scene.image.ImageView;
|
||||||
|
import javafx.scene.layout.AnchorPane;
|
||||||
|
import javafx.scene.layout.Pane;
|
||||||
|
import org.apache.commons.lang3.StringUtils;
|
||||||
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
|
import org.controlsfx.control.CheckComboBox;
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
|
import java.io.UnsupportedEncodingException;
|
||||||
|
import java.util.*;
|
||||||
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
|
import static gui.GUIController.showAlert;
|
||||||
|
|
||||||
|
@SuppressWarnings("Duplicates")
|
||||||
|
public class AboutTab {
|
||||||
|
public final static Logger logger = LogManager.getLogger(AboutTab.class);
|
||||||
|
|
||||||
|
private HostServices hostService;
|
||||||
|
|
||||||
|
@FXML
|
||||||
|
public AnchorPane aboutTabPane;
|
||||||
|
|
||||||
|
@FXML
|
||||||
|
public Pane paneSlo;
|
||||||
|
|
||||||
|
@FXML
|
||||||
|
public Pane paneEng;
|
||||||
|
|
||||||
|
@FXML
|
||||||
|
public Label aboutL;
|
||||||
|
|
||||||
|
@FXML
|
||||||
|
private Hyperlink cjvtSH;
|
||||||
|
|
||||||
|
@FXML
|
||||||
|
private Hyperlink githubSH;
|
||||||
|
|
||||||
|
@FXML
|
||||||
|
private Hyperlink cjvtEH;
|
||||||
|
|
||||||
|
@FXML
|
||||||
|
private Hyperlink githubEH;
|
||||||
|
|
||||||
|
@FXML
|
||||||
|
private Button changeLanguageB;
|
||||||
|
|
||||||
|
@FXML
|
||||||
|
public ImageView stringLengthI;
|
||||||
|
|
||||||
|
// TODO: pass observables for taxonomy based on header scan
|
||||||
|
// after header scan
|
||||||
|
|
||||||
|
public void initialize() {
|
||||||
|
aboutTabPane.getStylesheets().add("style.css");
|
||||||
|
aboutTabPane.getStyleClass().add("root");
|
||||||
|
|
||||||
|
Messages.setPane(paneSlo, paneEng);
|
||||||
|
|
||||||
|
manageTranslations();
|
||||||
|
|
||||||
|
changeLanguageB.setOnAction(e -> {
|
||||||
|
if (I18N.getLocale() == new Locale.Builder().setLanguage("sl").setRegion("SI").build()){
|
||||||
|
I18N.setLocale(Locale.ENGLISH);
|
||||||
|
} else {
|
||||||
|
I18N.setLocale(new Locale.Builder().setLanguage("sl").setRegion("SI").build());
|
||||||
|
}
|
||||||
|
Messages.reload();
|
||||||
|
Messages.updateChooseCorpusL();
|
||||||
|
logger.info("change language");
|
||||||
|
});
|
||||||
|
|
||||||
|
cjvtSH.setOnAction(e -> openCjvtWebsite());
|
||||||
|
|
||||||
|
githubSH.setOnAction(e -> openGithubWebsite());
|
||||||
|
|
||||||
|
cjvtEH.setOnAction(e -> openCjvtWebsite());
|
||||||
|
|
||||||
|
githubEH.setOnAction(e -> openGithubWebsite());
|
||||||
|
}
|
||||||
|
|
||||||
|
private void manageTranslations(){
|
||||||
|
changeLanguageB.textProperty().bind(I18N.createStringBinding("button.language"));
|
||||||
|
aboutL.textProperty().bind(I18N.createStringBinding("about.text"));
|
||||||
|
// calculateForL.textProperty().bind(I18N.createStringBinding("label.calculateFor"));
|
||||||
|
// displayTaxonomyL.textProperty().bind(I18N.createStringBinding("label.displayTaxonomy"));
|
||||||
|
//
|
||||||
|
// addTooltipToImage(stringLengthI, I18N.createStringBinding("label.letter.stringLengthH"));
|
||||||
|
}
|
||||||
|
|
||||||
|
private void openCjvtWebsite(){
|
||||||
|
hostService.showDocument(Messages.CJVT_URL);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void openGithubWebsite(){
|
||||||
|
hostService.showDocument(Messages.GITHUB_URL);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setHostServices(HostServices hostServices){
|
||||||
|
this.hostService = hostServices;
|
||||||
|
}
|
||||||
|
}
|
|
@ -148,8 +148,8 @@ public class CharacterAnalysisTab {
|
||||||
@FXML
|
@FXML
|
||||||
public Label progressLabel;
|
public Label progressLabel;
|
||||||
|
|
||||||
@FXML
|
// @FXML
|
||||||
private Hyperlink helpH;
|
// private Hyperlink helpH;
|
||||||
|
|
||||||
private enum MODE {
|
private enum MODE {
|
||||||
LETTER
|
LETTER
|
||||||
|
@ -429,7 +429,7 @@ public class CharacterAnalysisTab {
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
helpH.setOnAction(e -> openHelpWebsite());
|
// helpH.setOnAction(e -> openHelpWebsite());
|
||||||
|
|
||||||
cancel.setVisible(false);
|
cancel.setVisible(false);
|
||||||
}
|
}
|
||||||
|
@ -441,7 +441,7 @@ public class CharacterAnalysisTab {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void manageTranslations(){
|
private void manageTranslations(){
|
||||||
helpH.textProperty().bind(I18N.createStringBinding("hyperlink.help"));
|
// helpH.textProperty().bind(I18N.createStringBinding("hyperlink.help"));
|
||||||
changeLanguageB.textProperty().bind(I18N.createStringBinding("button.language"));
|
changeLanguageB.textProperty().bind(I18N.createStringBinding("button.language"));
|
||||||
computeNgramsB.textProperty().bind(I18N.createStringBinding("button.computeNgrams"));
|
computeNgramsB.textProperty().bind(I18N.createStringBinding("button.computeNgrams"));
|
||||||
cancel.textProperty().bind(I18N.createStringBinding("button.cancel"));
|
cancel.textProperty().bind(I18N.createStringBinding("button.cancel"));
|
||||||
|
|
|
@ -122,13 +122,14 @@ public class CorpusTab {
|
||||||
private ProgressIndicator locationScanPI;
|
private ProgressIndicator locationScanPI;
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private Hyperlink helpH;
|
// private Hyperlink helpH;
|
||||||
|
|
||||||
// *** shared ***
|
// *** shared ***
|
||||||
private Corpus corpus;
|
private Corpus corpus;
|
||||||
private CorpusType corpusType;
|
private CorpusType corpusType;
|
||||||
|
|
||||||
// tabs - used to enable/disable
|
// tabs - used to enable/disable
|
||||||
|
private Tab aboutTab;
|
||||||
private Tab stringLevelTabNew2;
|
private Tab stringLevelTabNew2;
|
||||||
private Tab oneWordAnalysisTab;
|
private Tab oneWordAnalysisTab;
|
||||||
private Tab characterLevelTab;
|
private Tab characterLevelTab;
|
||||||
|
@ -138,6 +139,7 @@ public class CorpusTab {
|
||||||
private TabPane tabPane;
|
private TabPane tabPane;
|
||||||
private StringAnalysisTabNew2 satNew2Controller;
|
private StringAnalysisTabNew2 satNew2Controller;
|
||||||
private OneWordAnalysisTab oneWordTabController;
|
private OneWordAnalysisTab oneWordTabController;
|
||||||
|
private AboutTab aboutTabController;
|
||||||
private CharacterAnalysisTab catController;
|
private CharacterAnalysisTab catController;
|
||||||
private FiltersForSolar ffsController;
|
private FiltersForSolar ffsController;
|
||||||
// private WordFormationTab wfController;
|
// private WordFormationTab wfController;
|
||||||
|
@ -239,7 +241,7 @@ public class CorpusTab {
|
||||||
|
|
||||||
// add listeners
|
// add listeners
|
||||||
chooseCorpusLocationB.setOnAction(e -> chooseCorpusLocation());
|
chooseCorpusLocationB.setOnAction(e -> chooseCorpusLocation());
|
||||||
helpH.setOnAction(e -> openHelpWebsite());
|
// helpH.setOnAction(e -> openHelpWebsite());
|
||||||
|
|
||||||
readHeaderInfoChB.selectedProperty().addListener((observable, oldValue, newValue) -> {
|
readHeaderInfoChB.selectedProperty().addListener((observable, oldValue, newValue) -> {
|
||||||
readHeaderInfo = newValue;
|
readHeaderInfo = newValue;
|
||||||
|
@ -279,7 +281,7 @@ public class CorpusTab {
|
||||||
readHeaderInfoChB.textProperty().bind(I18N.createStringBinding("checkBox.readHeaderInfo"));
|
readHeaderInfoChB.textProperty().bind(I18N.createStringBinding("checkBox.readHeaderInfo"));
|
||||||
chooseResultsLocationB.textProperty().bind(I18N.createStringBinding("button.chooseResultsLocation"));
|
chooseResultsLocationB.textProperty().bind(I18N.createStringBinding("button.chooseResultsLocation"));
|
||||||
chooseResultsLocationL.textProperty().bind(I18N.createStringBinding("label.chooseResultsLocation"));
|
chooseResultsLocationL.textProperty().bind(I18N.createStringBinding("label.chooseResultsLocation"));
|
||||||
helpH.textProperty().bind(I18N.createStringBinding("hyperlink.help"));
|
// helpH.textProperty().bind(I18N.createStringBinding("hyperlink.help"));
|
||||||
changeLanguageB.textProperty().bind(I18N.createStringBinding("button.language"));
|
changeLanguageB.textProperty().bind(I18N.createStringBinding("button.language"));
|
||||||
chooseCorpusL.textProperty().bind(I18N.createStringBinding("message.LABEL_CORPUS_LOCATION_NOT_SET"));
|
chooseCorpusL.textProperty().bind(I18N.createStringBinding("message.LABEL_CORPUS_LOCATION_NOT_SET"));
|
||||||
chooseResultsL.textProperty().bind(I18N.createStringBinding("message.LABEL_RESULTS_LOCATION_NOT_SET"));
|
chooseResultsL.textProperty().bind(I18N.createStringBinding("message.LABEL_RESULTS_LOCATION_NOT_SET"));
|
||||||
|
@ -531,6 +533,7 @@ public class CorpusTab {
|
||||||
|
|
||||||
if (ValidationUtil.isEmpty(readTaxonomy)) {
|
if (ValidationUtil.isEmpty(readTaxonomy)) {
|
||||||
// if no taxonomy found alert the user and keep other tabs disabled
|
// if no taxonomy found alert the user and keep other tabs disabled
|
||||||
|
// aboutTab.setDisable(true);
|
||||||
stringLevelTabNew2.setDisable(true);
|
stringLevelTabNew2.setDisable(true);
|
||||||
oneWordAnalysisTab.setDisable(true);
|
oneWordAnalysisTab.setDisable(true);
|
||||||
characterLevelTab.setDisable(true);
|
characterLevelTab.setDisable(true);
|
||||||
|
@ -693,6 +696,8 @@ public class CorpusTab {
|
||||||
private void setCorpusForAnalysis() {
|
private void setCorpusForAnalysis() {
|
||||||
if (corpus.validate()) {
|
if (corpus.validate()) {
|
||||||
// new statistic, enable tabs...
|
// new statistic, enable tabs...
|
||||||
|
// aboutTab.setDisable(false);
|
||||||
|
// aboutTabController.init();
|
||||||
stringLevelTabNew2.setDisable(false);
|
stringLevelTabNew2.setDisable(false);
|
||||||
satNew2Controller.setCorpus(corpus);
|
satNew2Controller.setCorpus(corpus);
|
||||||
satNew2Controller.init();
|
satNew2Controller.init();
|
||||||
|
@ -814,6 +819,8 @@ public class CorpusTab {
|
||||||
this.corpus = corpus;
|
this.corpus = corpus;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setAboutTab(Tab aboutTab) { this.aboutTab = aboutTab; }
|
||||||
|
|
||||||
public void setStringLevelTabNew2(Tab stringLevelTabNew2) { this.stringLevelTabNew2 = stringLevelTabNew2; }
|
public void setStringLevelTabNew2(Tab stringLevelTabNew2) { this.stringLevelTabNew2 = stringLevelTabNew2; }
|
||||||
|
|
||||||
public void setOneWordAnalysisTab(Tab oneWordAnalysisTab) { this.oneWordAnalysisTab = oneWordAnalysisTab; }
|
public void setOneWordAnalysisTab(Tab oneWordAnalysisTab) { this.oneWordAnalysisTab = oneWordAnalysisTab; }
|
||||||
|
@ -849,4 +856,8 @@ public class CorpusTab {
|
||||||
public void setHostServices(HostServices hostServices){
|
public void setHostServices(HostServices hostServices){
|
||||||
this.hostService = hostServices;
|
this.hostService = hostServices;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setAboutTabController(AboutTab aboutTabController) {
|
||||||
|
this.aboutTabController = aboutTabController;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -55,8 +55,8 @@ public class FiltersForSolar {
|
||||||
public TextArea selectedFiltersTextArea;
|
public TextArea selectedFiltersTextArea;
|
||||||
@FXML
|
@FXML
|
||||||
private Button changeLanguageB;
|
private Button changeLanguageB;
|
||||||
@FXML
|
// @FXML
|
||||||
private Hyperlink helpH;
|
// private Hyperlink helpH;
|
||||||
|
|
||||||
private Corpus corpus;
|
private Corpus corpus;
|
||||||
|
|
||||||
|
@ -115,11 +115,11 @@ public class FiltersForSolar {
|
||||||
logger.info("change language");
|
logger.info("change language");
|
||||||
});
|
});
|
||||||
|
|
||||||
helpH.setOnAction(e -> openHelpWebsite());
|
// helpH.setOnAction(e -> openHelpWebsite());
|
||||||
}
|
}
|
||||||
|
|
||||||
private void manageTranslations() {
|
private void manageTranslations() {
|
||||||
helpH.textProperty().bind(I18N.createStringBinding("hyperlink.help"));
|
// helpH.textProperty().bind(I18N.createStringBinding("hyperlink.help"));
|
||||||
changeLanguageB.textProperty().bind(I18N.createStringBinding("button.language"));
|
changeLanguageB.textProperty().bind(I18N.createStringBinding("button.language"));
|
||||||
|
|
||||||
solarRegijaL.textProperty().bind(I18N.createStringBinding("filter.solarRegijaL"));
|
solarRegijaL.textProperty().bind(I18N.createStringBinding("filter.solarRegijaL"));
|
||||||
|
|
|
@ -26,6 +26,8 @@ public class GUIController extends Application {
|
||||||
@FXML
|
@FXML
|
||||||
public AnchorPane gui;
|
public AnchorPane gui;
|
||||||
@FXML
|
@FXML
|
||||||
|
public Tab AboutTab;
|
||||||
|
@FXML
|
||||||
public Tab StringLevelTabNew2;
|
public Tab StringLevelTabNew2;
|
||||||
@FXML
|
@FXML
|
||||||
public Tab OneWordAnalysisTab;
|
public Tab OneWordAnalysisTab;
|
||||||
|
@ -45,6 +47,8 @@ public class GUIController extends Application {
|
||||||
@FXML
|
@FXML
|
||||||
private OneWordAnalysisTab oneWordTabController;
|
private OneWordAnalysisTab oneWordTabController;
|
||||||
@FXML
|
@FXML
|
||||||
|
private AboutTab aboutTabController;
|
||||||
|
@FXML
|
||||||
private static Parent oneWordTab;
|
private static Parent oneWordTab;
|
||||||
@FXML
|
@FXML
|
||||||
private CorpusTab ctController;
|
private CorpusTab ctController;
|
||||||
|
@ -87,11 +91,13 @@ public class GUIController extends Application {
|
||||||
|
|
||||||
ctController.setCorpus(corpus);
|
ctController.setCorpus(corpus);
|
||||||
ctController.setFilterTab(filterTab);
|
ctController.setFilterTab(filterTab);
|
||||||
|
ctController.setAboutTab(AboutTab);
|
||||||
ctController.setStringLevelTabNew2(StringLevelTabNew2);
|
ctController.setStringLevelTabNew2(StringLevelTabNew2);
|
||||||
ctController.setOneWordAnalysisTab(OneWordAnalysisTab);
|
ctController.setOneWordAnalysisTab(OneWordAnalysisTab);
|
||||||
ctController.setCharacterLevelTab(CharacterLevelTabNew);
|
ctController.setCharacterLevelTab(CharacterLevelTabNew);
|
||||||
ctController.setSatNew2Controller(satNew2Controller);
|
ctController.setSatNew2Controller(satNew2Controller);
|
||||||
ctController.setOneWordTabController(oneWordTabController);
|
ctController.setOneWordTabController(oneWordTabController);
|
||||||
|
ctController.setAboutTabController(aboutTabController);
|
||||||
ctController.setCatController(catController);
|
ctController.setCatController(catController);
|
||||||
ctController.setWlController(wlController);
|
ctController.setWlController(wlController);
|
||||||
ctController.setTabPane(tabPane);
|
ctController.setTabPane(tabPane);
|
||||||
|
@ -104,6 +110,7 @@ public class GUIController extends Application {
|
||||||
satNew2Controller.setHostServices(getHostServices());
|
satNew2Controller.setHostServices(getHostServices());
|
||||||
oneWordTabController.setCorpus(corpus);
|
oneWordTabController.setCorpus(corpus);
|
||||||
oneWordTabController.setHostServices(getHostServices());
|
oneWordTabController.setHostServices(getHostServices());
|
||||||
|
aboutTabController.setHostServices(getHostServices());
|
||||||
catController.setCorpus(corpus);
|
catController.setCorpus(corpus);
|
||||||
catController.setHostServices(getHostServices());
|
catController.setHostServices(getHostServices());
|
||||||
wlController.setCorpus(corpus);
|
wlController.setCorpus(corpus);
|
||||||
|
@ -129,6 +136,7 @@ public class GUIController extends Application {
|
||||||
wordLevelTab.textProperty().bind(I18N.createStringBinding("tab.wordLevelTab"));
|
wordLevelTab.textProperty().bind(I18N.createStringBinding("tab.wordLevelTab"));
|
||||||
OneWordAnalysisTab.textProperty().bind(I18N.createStringBinding("tab.oneWordAnalysisTab"));
|
OneWordAnalysisTab.textProperty().bind(I18N.createStringBinding("tab.oneWordAnalysisTab"));
|
||||||
StringLevelTabNew2.textProperty().bind(I18N.createStringBinding("tab.stringLevelTabNew2"));
|
StringLevelTabNew2.textProperty().bind(I18N.createStringBinding("tab.stringLevelTabNew2"));
|
||||||
|
AboutTab.textProperty().bind(I18N.createStringBinding("tab.aboutTab"));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void showAlert(Alert.AlertType alertType, String headerText, String contentText) {
|
static void showAlert(Alert.AlertType alertType, String headerText, String contentText) {
|
||||||
|
|
|
@ -3,9 +3,11 @@ package gui;
|
||||||
import static javafx.scene.control.Alert.AlertType.*;
|
import static javafx.scene.control.Alert.AlertType.*;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
import java.util.Locale;
|
||||||
|
|
||||||
import javafx.scene.control.Alert;
|
import javafx.scene.control.Alert;
|
||||||
import javafx.scene.control.Label;
|
import javafx.scene.control.Label;
|
||||||
|
import javafx.scene.layout.Pane;
|
||||||
|
|
||||||
public class Messages {
|
public class Messages {
|
||||||
|
|
||||||
|
@ -37,8 +39,13 @@ public class Messages {
|
||||||
private static String chooseCorpusLabelContent;
|
private static String chooseCorpusLabelContent;
|
||||||
private static String[] chooseCorpusLabelProperties;
|
private static String[] chooseCorpusLabelProperties;
|
||||||
|
|
||||||
|
private static Pane paneSlo;
|
||||||
|
private static Pane paneEng;
|
||||||
|
|
||||||
// Not properly to be here. TODO move somewhere else in future
|
// Not properly to be here. TODO move somewhere else in future
|
||||||
public static String HELP_URL = "http://slovnica.ijs.si/";
|
public static String HELP_URL = "http://slovnica.ijs.si/";
|
||||||
|
public static String CJVT_URL = "http://hdl.handle.net/11356/1227";
|
||||||
|
public static String GITHUB_URL = "https://gitea.cjvt.si/lkrsnik/korpeks";
|
||||||
|
|
||||||
// helper maps
|
// helper maps
|
||||||
/**
|
/**
|
||||||
|
@ -62,6 +69,19 @@ public class Messages {
|
||||||
windowTitles.put(ERROR, I18N.get("windowTitles.error"));
|
windowTitles.put(ERROR, I18N.get("windowTitles.error"));
|
||||||
windowTitles.put(WARNING, I18N.get("windowTitles.warning"));
|
windowTitles.put(WARNING, I18N.get("windowTitles.warning"));
|
||||||
windowTitles.put(CONFIRMATION, I18N.get("windowTitles.confirmation"));
|
windowTitles.put(CONFIRMATION, I18N.get("windowTitles.confirmation"));
|
||||||
|
|
||||||
|
if(I18N.getLocale().equals(Locale.ENGLISH)){
|
||||||
|
paneSlo.setVisible(false);
|
||||||
|
paneEng.setVisible(true);
|
||||||
|
} else {
|
||||||
|
paneSlo.setVisible(true);
|
||||||
|
paneEng.setVisible(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void setPane(Pane paneSl, Pane paneEn){
|
||||||
|
paneSlo = paneSl;
|
||||||
|
paneEng = paneEn;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void setChooseCorpusL(Label chooseCorpus, String chooseCorpusLabel){
|
public static void setChooseCorpusL(Label chooseCorpus, String chooseCorpusLabel){
|
||||||
|
|
|
@ -166,9 +166,9 @@ public class OneWordAnalysisTab {
|
||||||
public ProgressBar ngramProgressBar;
|
public ProgressBar ngramProgressBar;
|
||||||
@FXML
|
@FXML
|
||||||
public Label progressLabel;
|
public Label progressLabel;
|
||||||
|
//
|
||||||
@FXML
|
// @FXML
|
||||||
private Hyperlink helpH;
|
// private Hyperlink helpH;
|
||||||
|
|
||||||
private enum MODE {
|
private enum MODE {
|
||||||
LETTER,
|
LETTER,
|
||||||
|
@ -609,7 +609,7 @@ public class OneWordAnalysisTab {
|
||||||
compute();
|
compute();
|
||||||
logger.info("compute button");
|
logger.info("compute button");
|
||||||
});
|
});
|
||||||
helpH.setOnAction(e -> openHelpWebsite());
|
// helpH.setOnAction(e -> openHelpWebsite());
|
||||||
|
|
||||||
cancel.setVisible(false);
|
cancel.setVisible(false);
|
||||||
}
|
}
|
||||||
|
@ -621,7 +621,7 @@ public class OneWordAnalysisTab {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void manageTranslations(){
|
private void manageTranslations(){
|
||||||
helpH.textProperty().bind(I18N.createStringBinding("hyperlink.help"));
|
// helpH.textProperty().bind(I18N.createStringBinding("hyperlink.help"));
|
||||||
changeLanguageB.textProperty().bind(I18N.createStringBinding("button.language"));
|
changeLanguageB.textProperty().bind(I18N.createStringBinding("button.language"));
|
||||||
computeNgramsB.textProperty().bind(I18N.createStringBinding("button.computeNgrams"));
|
computeNgramsB.textProperty().bind(I18N.createStringBinding("button.computeNgrams"));
|
||||||
cancel.textProperty().bind(I18N.createStringBinding("button.cancel"));
|
cancel.textProperty().bind(I18N.createStringBinding("button.cancel"));
|
||||||
|
|
|
@ -194,9 +194,9 @@ public class StringAnalysisTabNew2 {
|
||||||
public ProgressBar ngramProgressBar;
|
public ProgressBar ngramProgressBar;
|
||||||
@FXML
|
@FXML
|
||||||
public Label progressLabel;
|
public Label progressLabel;
|
||||||
|
//
|
||||||
@FXML
|
// @FXML
|
||||||
private Hyperlink helpH;
|
// private Hyperlink helpH;
|
||||||
|
|
||||||
private enum MODE {
|
private enum MODE {
|
||||||
LETTER,
|
LETTER,
|
||||||
|
@ -684,7 +684,7 @@ public class StringAnalysisTabNew2 {
|
||||||
logger.info("compute button");
|
logger.info("compute button");
|
||||||
});
|
});
|
||||||
|
|
||||||
helpH.setOnAction(e -> openHelpWebsite());
|
// helpH.setOnAction(e -> openHelpWebsite());
|
||||||
|
|
||||||
cancel.setVisible(false);
|
cancel.setVisible(false);
|
||||||
}
|
}
|
||||||
|
@ -696,7 +696,7 @@ public class StringAnalysisTabNew2 {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void manageTranslations(){
|
private void manageTranslations(){
|
||||||
helpH.textProperty().bind(I18N.createStringBinding("hyperlink.help"));
|
// helpH.textProperty().bind(I18N.createStringBinding("hyperlink.help"));
|
||||||
changeLanguageB.textProperty().bind(I18N.createStringBinding("button.language"));
|
changeLanguageB.textProperty().bind(I18N.createStringBinding("button.language"));
|
||||||
computeNgramsB.textProperty().bind(I18N.createStringBinding("button.computeNgrams"));
|
computeNgramsB.textProperty().bind(I18N.createStringBinding("button.computeNgrams"));
|
||||||
cancel.textProperty().bind(I18N.createStringBinding("button.cancel"));
|
cancel.textProperty().bind(I18N.createStringBinding("button.cancel"));
|
||||||
|
|
|
@ -193,8 +193,8 @@ public class WordLevelTab {
|
||||||
@FXML
|
@FXML
|
||||||
public Label progressLabel;
|
public Label progressLabel;
|
||||||
|
|
||||||
@FXML
|
// @FXML
|
||||||
private Hyperlink helpH;
|
// private Hyperlink helpH;
|
||||||
|
|
||||||
private enum MODE {
|
private enum MODE {
|
||||||
LETTER,
|
LETTER,
|
||||||
|
@ -706,7 +706,7 @@ public class WordLevelTab {
|
||||||
compute();
|
compute();
|
||||||
logger.info("compute button");
|
logger.info("compute button");
|
||||||
});
|
});
|
||||||
helpH.setOnAction(e -> openHelpWebsite());
|
// helpH.setOnAction(e -> openHelpWebsite());
|
||||||
|
|
||||||
cancel.setVisible(false);
|
cancel.setVisible(false);
|
||||||
}
|
}
|
||||||
|
@ -718,7 +718,7 @@ public class WordLevelTab {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void manageTranslations(){
|
private void manageTranslations(){
|
||||||
helpH.textProperty().bind(I18N.createStringBinding("hyperlink.help"));
|
// helpH.textProperty().bind(I18N.createStringBinding("hyperlink.help"));
|
||||||
changeLanguageB.textProperty().bind(I18N.createStringBinding("button.language"));
|
changeLanguageB.textProperty().bind(I18N.createStringBinding("button.language"));
|
||||||
computeNgramsB.textProperty().bind(I18N.createStringBinding("button.computeNgrams"));
|
computeNgramsB.textProperty().bind(I18N.createStringBinding("button.computeNgrams"));
|
||||||
cancel.textProperty().bind(I18N.createStringBinding("button.cancel"));
|
cancel.textProperty().bind(I18N.createStringBinding("button.cancel"));
|
||||||
|
|
BIN
src/main/resources/CJVT_CGP_Osnovni_znak+Pripis_naziva_ENG.png
Normal file
BIN
src/main/resources/CJVT_CGP_Osnovni_znak+Pripis_naziva_ENG.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 26 KiB |
BIN
src/main/resources/CJVT_CGP_Osnovni_znak+Pripis_naziva_SLO.png
Normal file
BIN
src/main/resources/CJVT_CGP_Osnovni_znak+Pripis_naziva_SLO.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 20 KiB |
|
@ -31,6 +31,9 @@
|
||||||
<Tab fx:id="StringLevelTabNew2" closable="false" disable="true" text="Besedni nizi">
|
<Tab fx:id="StringLevelTabNew2" closable="false" disable="true" text="Besedni nizi">
|
||||||
<fx:include fx:id="satNew2" source="gui/StringAnalysisTabNew2.fxml"/>
|
<fx:include fx:id="satNew2" source="gui/StringAnalysisTabNew2.fxml"/>
|
||||||
</Tab>
|
</Tab>
|
||||||
|
<Tab fx:id="AboutTab" closable="false" text="O programu">
|
||||||
|
<fx:include fx:id="aboutTab" source="gui/AboutTab.fxml"/>
|
||||||
|
</Tab>
|
||||||
<!--<Tab fx:id="wordFormationTab" closable="false" disable="true" text="Besedotvorni procesi">
|
<!--<Tab fx:id="wordFormationTab" closable="false" disable="true" text="Besedotvorni procesi">
|
||||||
<fx:include fx:id="wf" source="gui/WordFormationTab.fxml"/>
|
<fx:include fx:id="wf" source="gui/WordFormationTab.fxml"/>
|
||||||
</Tab>-->
|
</Tab>-->
|
||||||
|
|
46
src/main/resources/gui/AboutTab.fxml
Executable file
46
src/main/resources/gui/AboutTab.fxml
Executable file
|
@ -0,0 +1,46 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
|
<?import javafx.scene.control.Label?>
|
||||||
|
<?import javafx.scene.layout.AnchorPane?>
|
||||||
|
<?import javafx.scene.control.Label?>
|
||||||
|
<?import javafx.scene.layout.Pane?>
|
||||||
|
<?import javafx.scene.image.ImageView?>
|
||||||
|
<?import javafx.scene.image.Image?>
|
||||||
|
<?import javafx.scene.control.Button?>
|
||||||
|
<?import javafx.scene.control.Hyperlink?>
|
||||||
|
<AnchorPane fx:id="aboutTabPane" prefHeight="600.0" prefWidth="800.0" xmlns="http://javafx.com/javafx/8.0.112" xmlns:fx="http://javafx.com/fxml/1" fx:controller="gui.AboutTab">
|
||||||
|
<children>
|
||||||
|
<Pane>
|
||||||
|
<Label fx:id="aboutL" layoutX="10.0" layoutY="20.0" prefWidth="800" text="?" />
|
||||||
|
<!--<ImageView fx:id="stringLengthI" layoutX="370.0" layoutY="27.5" pickOnBounds="true" preserveRatio="true">-->
|
||||||
|
<!--<Image url="questionmark.png" backgroundLoading="true"/>-->
|
||||||
|
<!--</ImageView>-->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!--<Label fx:id="calculateForL" layoutX="10.0" layoutY="60.0" prefHeight="25.0" text="Izračunaj za"/>-->
|
||||||
|
<Pane fx:id="paneSlo">
|
||||||
|
<Label fx:id="linksSL" layoutX="114.0" layoutY="360.0" prefWidth="800" text="in ." />
|
||||||
|
|
||||||
|
<ImageView fx:id="logoSloI" layoutX="10.0" layoutY="360.0" pickOnBounds="true" preserveRatio="true" fitWidth="600">
|
||||||
|
<Image url="CJVT_CGP_Osnovni_znak+Pripis_naziva_SLO.png" backgroundLoading="true"/>
|
||||||
|
</ImageView>
|
||||||
|
|
||||||
|
<Hyperlink fx:id="cjvtSH" layoutX="25.0" layoutY="356.0" text="CLARIN.SI" />
|
||||||
|
<Hyperlink fx:id="githubSH" layoutX="129.0" layoutY="356.0" text="GitHub" />
|
||||||
|
</Pane>
|
||||||
|
|
||||||
|
<Pane fx:id="paneEng" visible="false">
|
||||||
|
<Label fx:id="linksEL" layoutX="114.0" layoutY="360.0" prefWidth="800" text="and ." />
|
||||||
|
|
||||||
|
<ImageView fx:id="logoEngI" layoutX="10.0" layoutY="360.0" pickOnBounds="true" preserveRatio="true" fitWidth="740">
|
||||||
|
<Image url="CJVT_CGP_Osnovni_znak+Pripis_naziva_ENG.png" backgroundLoading="true"/>
|
||||||
|
</ImageView>
|
||||||
|
|
||||||
|
<Hyperlink fx:id="cjvtEH" layoutX="25.0" layoutY="356.0" text="CLARIN.SI" />
|
||||||
|
<Hyperlink fx:id="githubEH" layoutX="144.0" layoutY="356.0" text="GitHub" />
|
||||||
|
</Pane>
|
||||||
|
</Pane>
|
||||||
|
</children>
|
||||||
|
<Button fx:id="changeLanguageB" layoutX="710.0" layoutY="40.0" mnemonicParsing="false" prefWidth="50.0"/>
|
||||||
|
</AnchorPane>
|
Binary file not shown.
After Width: | Height: | Size: 26 KiB |
Binary file not shown.
After Width: | Height: | Size: 20 KiB |
|
@ -84,7 +84,7 @@
|
||||||
<TextArea fx:id="selectedFiltersTextArea" layoutX="10.0" layoutY="360.0" prefHeight="115.0" maxHeight="115.0" prefWidth="360.0" text=" " wrapText="true" editable="false"/>
|
<TextArea fx:id="selectedFiltersTextArea" layoutX="10.0" layoutY="360.0" prefHeight="115.0" maxHeight="115.0" prefWidth="360.0" text=" " wrapText="true" editable="false"/>
|
||||||
</Pane>
|
</Pane>
|
||||||
|
|
||||||
<Hyperlink fx:id="helpH" alignment="TOP_LEFT" layoutX="710.0" layoutY="16.0" text="Pomoč" />
|
<!--<Hyperlink fx:id="helpH" alignment="TOP_LEFT" layoutX="710.0" layoutY="16.0" text="Pomoč" />-->
|
||||||
<Button fx:id="changeLanguageB" layoutX="710.0" layoutY="40.0" mnemonicParsing="false" prefWidth="50.0"/>
|
<Button fx:id="changeLanguageB" layoutX="710.0" layoutY="40.0" mnemonicParsing="false" prefWidth="50.0"/>
|
||||||
|
|
||||||
<Button fx:id="cancel" layoutX="540.0" layoutY="482.0" mnemonicParsing="false"
|
<Button fx:id="cancel" layoutX="540.0" layoutY="482.0" mnemonicParsing="false"
|
||||||
|
|
|
@ -32,6 +32,6 @@
|
||||||
<TextArea fx:id="selectedFiltersTextArea" layoutX="10.0" layoutY="100.0" prefHeight="340.0" maxHeight="200.0" prefWidth="275.0" text=" " wrapText="true" editable="false"/>
|
<TextArea fx:id="selectedFiltersTextArea" layoutX="10.0" layoutY="100.0" prefHeight="340.0" maxHeight="200.0" prefWidth="275.0" text=" " wrapText="true" editable="false"/>
|
||||||
</Pane>
|
</Pane>
|
||||||
|
|
||||||
<Hyperlink fx:id="helpH" alignment="TOP_LEFT" layoutX="710.0" layoutY="16.0"/>
|
<!--<Hyperlink fx:id="helpH" alignment="TOP_LEFT" layoutX="710.0" layoutY="16.0"/>-->
|
||||||
<Button fx:id="changeLanguageB" layoutX="710.0" layoutY="40.0" mnemonicParsing="false" prefWidth="50.0"/>
|
<Button fx:id="changeLanguageB" layoutX="710.0" layoutY="40.0" mnemonicParsing="false" prefWidth="50.0"/>
|
||||||
</AnchorPane>
|
</AnchorPane>
|
||||||
|
|
|
@ -110,7 +110,7 @@
|
||||||
<TextArea fx:id="selectedFiltersTextArea" layoutX="10.0" layoutY="380.0" prefHeight="95.0" maxHeight="95.0" prefWidth="360.0" text=" " wrapText="true" editable="false"/>
|
<TextArea fx:id="selectedFiltersTextArea" layoutX="10.0" layoutY="380.0" prefHeight="95.0" maxHeight="95.0" prefWidth="360.0" text=" " wrapText="true" editable="false"/>
|
||||||
</Pane>
|
</Pane>
|
||||||
|
|
||||||
<Hyperlink fx:id="helpH" alignment="TOP_LEFT" layoutX="710.0" layoutY="16.0" text="Pomoč" />
|
<!--<Hyperlink fx:id="helpH" alignment="TOP_LEFT" layoutX="710.0" layoutY="16.0" text="Pomoč" />-->
|
||||||
<Button fx:id="changeLanguageB" layoutX="710.0" layoutY="40.0" mnemonicParsing="false" prefWidth="50.0"/>
|
<Button fx:id="changeLanguageB" layoutX="710.0" layoutY="40.0" mnemonicParsing="false" prefWidth="50.0"/>
|
||||||
|
|
||||||
<Button fx:id="cancel" layoutX="540.0" layoutY="482.0" mnemonicParsing="false"
|
<Button fx:id="cancel" layoutX="540.0" layoutY="482.0" mnemonicParsing="false"
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<?import javafx.scene.control.Label?>
|
|
||||||
<?import javafx.scene.layout.AnchorPane?>
|
|
||||||
<?import javafx.scene.control.Label?>
|
|
||||||
<AnchorPane prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/8.0.111" xmlns:fx="http://javafx.com/fxml/1">
|
|
||||||
<children>
|
|
||||||
<Label layoutX="371.0" layoutY="26.0" text="Izbrani filtri:"/>
|
|
||||||
<Label fx:id="selectedFiltersLabel" alignment="TOP_LEFT" layoutX="371.0" layoutY="43.0" prefHeight="188.0"
|
|
||||||
prefWidth="215.0"
|
|
||||||
text=" "/>
|
|
||||||
</children>
|
|
||||||
</AnchorPane>
|
|
|
@ -151,7 +151,7 @@
|
||||||
<TextArea fx:id="selectedFiltersTextArea" layoutX="10.0" layoutY="380.0" prefHeight="95.0" maxHeight="95.0" prefWidth="360.0" text=" " wrapText="true" editable="false"/>
|
<TextArea fx:id="selectedFiltersTextArea" layoutX="10.0" layoutY="380.0" prefHeight="95.0" maxHeight="95.0" prefWidth="360.0" text=" " wrapText="true" editable="false"/>
|
||||||
</Pane>
|
</Pane>
|
||||||
|
|
||||||
<Hyperlink fx:id="helpH" alignment="TOP_LEFT" layoutX="710.0" layoutY="16.0" text="Pomoč" />
|
<!--<Hyperlink fx:id="helpH" alignment="TOP_LEFT" layoutX="710.0" layoutY="16.0" text="Pomoč" />-->
|
||||||
<Button fx:id="changeLanguageB" layoutX="710.0" layoutY="40.0" mnemonicParsing="false" prefWidth="50.0"/>
|
<Button fx:id="changeLanguageB" layoutX="710.0" layoutY="40.0" mnemonicParsing="false" prefWidth="50.0"/>
|
||||||
|
|
||||||
<Button fx:id="cancel" layoutX="540.0" layoutY="482.0" mnemonicParsing="false" prefHeight="25.0" prefWidth="250.0" text="Prekini" />
|
<Button fx:id="cancel" layoutX="540.0" layoutY="482.0" mnemonicParsing="false" prefHeight="25.0" prefWidth="250.0" text="Prekini" />
|
||||||
|
|
|
@ -155,7 +155,7 @@
|
||||||
<TextArea fx:id="selectedFiltersTextArea" layoutX="10.0" layoutY="380.0" prefHeight="95.0" maxHeight="95.0" prefWidth="360.0" text=" " wrapText="true" editable="false"/>
|
<TextArea fx:id="selectedFiltersTextArea" layoutX="10.0" layoutY="380.0" prefHeight="95.0" maxHeight="95.0" prefWidth="360.0" text=" " wrapText="true" editable="false"/>
|
||||||
</Pane>
|
</Pane>
|
||||||
|
|
||||||
<Hyperlink fx:id="helpH" alignment="TOP_LEFT" layoutX="710.0" layoutY="16.0" text="Pomoč" />
|
<!--<Hyperlink fx:id="helpH" alignment="TOP_LEFT" layoutX="710.0" layoutY="16.0" text="Pomoč" />-->
|
||||||
<Button fx:id="changeLanguageB" layoutX="710.0" layoutY="40.0" mnemonicParsing="false" prefWidth="50.0"/>
|
<Button fx:id="changeLanguageB" layoutX="710.0" layoutY="40.0" mnemonicParsing="false" prefWidth="50.0"/>
|
||||||
|
|
||||||
<Button fx:id="cancel" layoutX="540.0" layoutY="482.0" mnemonicParsing="false"
|
<Button fx:id="cancel" layoutX="540.0" layoutY="482.0" mnemonicParsing="false"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# general
|
# general
|
||||||
window.title=Corpus analyzer
|
window.title=Korpeks 1.0
|
||||||
|
|
||||||
hyperlink.help=Help
|
hyperlink.help=Help
|
||||||
button.language=SL
|
button.language=SL
|
||||||
|
@ -13,6 +13,7 @@ tab.characterLevelTabNew=Characters
|
||||||
tab.wordLevelTab=Word parts
|
tab.wordLevelTab=Word parts
|
||||||
tab.oneWordAnalysisTab=Words
|
tab.oneWordAnalysisTab=Words
|
||||||
tab.stringLevelTabNew2=Word sets
|
tab.stringLevelTabNew2=Word sets
|
||||||
|
tab.aboutTab=About
|
||||||
|
|
||||||
# corpus tab
|
# corpus tab
|
||||||
label.setCorpusLocation=Set corpus location
|
label.setCorpusLocation=Set corpus location
|
||||||
|
@ -280,3 +281,5 @@ exportFileName.words=words
|
||||||
exportFileName.wordSets=word-sets
|
exportFileName.wordSets=word-sets
|
||||||
exportFileName.gram=-gram
|
exportFileName.gram=-gram
|
||||||
exportFileName.skip=-skip
|
exportFileName.skip=-skip
|
||||||
|
|
||||||
|
about.text=Korpeks – Corpus Extraction Tool\nVersion: 1.0 (Last update: 21 March 2019)\nAuthors: Luka Krsnik, Špela Arhar Holdt, Jaka Čibej, Kaja Dobrovoljc, Aleksander\n Ključevšek, Simon Krek, Marko Robnik Šikonja\n\nThe Korpeks corpus extraction tool is a program for extracting lists from text corpora on the\n levels of characters, word parts, words, and word sets. The program was developed within\n the New Grammar of Modern Standard Slovene: Resource and Methods project (J6-8256),\n which was financially supported by the Slovenian Research Agency between 2017 and 2021.\n\n\nPublisher: Centre for Language Resources and Technologies, University of Ljubljana,\nJožef Stefan Institute,\nFaculty of Computer and Information Science, University of Ljubljana\n\nMaintenance: Centre for Language Resources and Technologies, University of Ljubljana\nThe program is available under the GNU General Public Licence (version 3) at
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# general
|
# general
|
||||||
window.title=Korpusni luščilnik
|
window.title=Korpeks 1.0
|
||||||
|
|
||||||
hyperlink.help=Pomoč
|
hyperlink.help=Pomoč
|
||||||
button.language=EN
|
button.language=EN
|
||||||
|
@ -13,6 +13,7 @@ tab.characterLevelTabNew=Znaki
|
||||||
tab.wordLevelTab=Besedni deli
|
tab.wordLevelTab=Besedni deli
|
||||||
tab.oneWordAnalysisTab=Besede
|
tab.oneWordAnalysisTab=Besede
|
||||||
tab.stringLevelTabNew2=Besedni nizi
|
tab.stringLevelTabNew2=Besedni nizi
|
||||||
|
tab.aboutTab=O programu
|
||||||
|
|
||||||
# corpus tab
|
# corpus tab
|
||||||
label.setCorpusLocation=Nastavi lokacijo korpusa
|
label.setCorpusLocation=Nastavi lokacijo korpusa
|
||||||
|
@ -280,3 +281,5 @@ exportFileName.words=besede
|
||||||
exportFileName.wordSets=besedni-nizi
|
exportFileName.wordSets=besedni-nizi
|
||||||
exportFileName.gram=-gram
|
exportFileName.gram=-gram
|
||||||
exportFileName.skip=-preskok
|
exportFileName.skip=-preskok
|
||||||
|
|
||||||
|
about.text=Korpeks, korpusni luščilnik\nRazličica: 1.0 (Zadnja posodobitev: 21. marec 2019)\nAvtorji: Luka Krsnik, Špela Arhar Holdt, Jaka Čibej, Kaja Dobrovoljc, Aleksander\n Ključevšek, Simon Krek, Marko Robnik Šikonja\n\nKorpusni luščilnik Korpeks je program za luščenje spiskov iz besedilnih korpusov na nivojih\n znakov, besednih delov, besed in besednih nizov. Nastal je v okviru projekta Nova slovnica\n sodobne standardne slovenščine: viri in metode (J6-8256), ki ga je med letoma 2016 in 2020\n sofinancirala Javna agencija za raziskovalno dejavnost Republike Slovenije iz državnega\n proračuna.\n\nIzdajatelj: Center za jezikovne vire in tehnologije Univerze v Ljubljani,\nInstitut "Jožef Stefan",\nFakulteta za računalništvo in informatiko Univerze v Ljubljani\n\nVzdrževanje programa: Center za jezikovne vire in tehnologije Univerze v Ljubljani\nProgram je dostopen pod licenco GNU General Public Licence (version 3) na repozitorijih
|
||||||
|
|
Loading…
Reference in New Issue
Block a user