Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
e523f0f21a
10 changed files with 46 additions and 16 deletions
BIN
dev/20200427/kab74/DesignSpecGroup20
Normal file
BIN
dev/20200427/kab74/DesignSpecGroup20
Normal file
Binary file not shown.
BIN
dev/20200427/kab74/DesignSpecGroup20Edit
Normal file
BIN
dev/20200427/kab74/DesignSpecGroup20Edit
Normal file
Binary file not shown.
BIN
dev/20200427/kab74/DesignSpecGroup20Edit.odg
Normal file
BIN
dev/20200427/kab74/DesignSpecGroup20Edit.odg
Normal file
Binary file not shown.
Binary file not shown.
1
docs/design_spec/src/.~lock.DesignSpecGroup20.docx#
Normal file
1
docs/design_spec/src/.~lock.DesignSpecGroup20.docx#
Normal file
|
@ -0,0 +1 @@
|
||||||
|
,kainpretzel,Kain-ThinkPad,30.04.2020 17:07,file:///home/kainpretzel/.config/libreoffice/4;
|
Binary file not shown.
|
@ -38,6 +38,10 @@ import uk.ac.aber.cs22120.group20.json.DictionaryEntry;
|
||||||
*/
|
*/
|
||||||
public class AddWordController extends SharedCodeController {
|
public class AddWordController extends SharedCodeController {
|
||||||
|
|
||||||
|
// /////////////////// //
|
||||||
|
// Instance variables. //
|
||||||
|
// /////////////////// //
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private TextField welsh;
|
private TextField welsh;
|
||||||
@FXML
|
@FXML
|
||||||
|
@ -45,12 +49,15 @@ public class AddWordController extends SharedCodeController {
|
||||||
@FXML
|
@FXML
|
||||||
private ComboBox<String> wordType;
|
private ComboBox<String> wordType;
|
||||||
|
|
||||||
|
// //////// //
|
||||||
|
// Methods. //
|
||||||
|
// //////// //
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the value from the welsh text field
|
* Gets the value from the welsh text field
|
||||||
*
|
*
|
||||||
* @return welsh
|
* @return welsh
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public TextField getWelsh() {
|
public TextField getWelsh() {
|
||||||
return welsh;
|
return welsh;
|
||||||
}
|
}
|
||||||
|
@ -60,7 +67,6 @@ public class AddWordController extends SharedCodeController {
|
||||||
*
|
*
|
||||||
* @return english
|
* @return english
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public TextField getEnglish() {
|
public TextField getEnglish() {
|
||||||
return english;
|
return english;
|
||||||
}
|
}
|
||||||
|
@ -86,7 +92,6 @@ public class AddWordController extends SharedCodeController {
|
||||||
* @see Application
|
* @see Application
|
||||||
* @see DictionaryEntry
|
* @see DictionaryEntry
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
protected void addButtonClick(ActionEvent actionEvent) {
|
protected void addButtonClick(ActionEvent actionEvent) {
|
||||||
DictionaryEntry.wordTypeEnum trueWordType;
|
DictionaryEntry.wordTypeEnum trueWordType;
|
||||||
|
@ -172,7 +177,6 @@ public class AddWordController extends SharedCodeController {
|
||||||
*
|
*
|
||||||
* @param actionEvent action event for the button click
|
* @param actionEvent action event for the button click
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public void addChardd(ActionEvent actionEvent) {
|
public void addChardd(ActionEvent actionEvent) {
|
||||||
welsh.appendText("dd");
|
welsh.appendText("dd");
|
||||||
}
|
}
|
||||||
|
@ -182,7 +186,6 @@ public class AddWordController extends SharedCodeController {
|
||||||
*
|
*
|
||||||
* @param actionEvent action event for the button click
|
* @param actionEvent action event for the button click
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public void addCharff(ActionEvent actionEvent) {
|
public void addCharff(ActionEvent actionEvent) {
|
||||||
welsh.appendText("ff");
|
welsh.appendText("ff");
|
||||||
}
|
}
|
||||||
|
@ -192,7 +195,6 @@ public class AddWordController extends SharedCodeController {
|
||||||
*
|
*
|
||||||
* @param actionEvent action event for the button click
|
* @param actionEvent action event for the button click
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public void addCharng(ActionEvent actionEvent) {
|
public void addCharng(ActionEvent actionEvent) {
|
||||||
welsh.appendText("ng");
|
welsh.appendText("ng");
|
||||||
}
|
}
|
||||||
|
@ -202,7 +204,6 @@ public class AddWordController extends SharedCodeController {
|
||||||
*
|
*
|
||||||
* @param actionEvent action event for the button click
|
* @param actionEvent action event for the button click
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public void addCharll(ActionEvent actionEvent) {
|
public void addCharll(ActionEvent actionEvent) {
|
||||||
welsh.appendText("ll");
|
welsh.appendText("ll");
|
||||||
}
|
}
|
||||||
|
@ -212,7 +213,6 @@ public class AddWordController extends SharedCodeController {
|
||||||
*
|
*
|
||||||
* @param actionEvent action event for the button click
|
* @param actionEvent action event for the button click
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public void addCharph(ActionEvent actionEvent) {
|
public void addCharph(ActionEvent actionEvent) {
|
||||||
welsh.appendText("ph");
|
welsh.appendText("ph");
|
||||||
}
|
}
|
||||||
|
@ -222,7 +222,6 @@ public class AddWordController extends SharedCodeController {
|
||||||
*
|
*
|
||||||
* @param actionEvent action event for the button click
|
* @param actionEvent action event for the button click
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public void addCharrh(ActionEvent actionEvent) {
|
public void addCharrh(ActionEvent actionEvent) {
|
||||||
welsh.appendText("rh");
|
welsh.appendText("rh");
|
||||||
}
|
}
|
||||||
|
@ -232,7 +231,6 @@ public class AddWordController extends SharedCodeController {
|
||||||
*
|
*
|
||||||
* @param actionEvent action event for the button click
|
* @param actionEvent action event for the button click
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public void addCharth(ActionEvent actionEvent) {
|
public void addCharth(ActionEvent actionEvent) {
|
||||||
welsh.appendText("th");
|
welsh.appendText("th");
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,12 +39,19 @@ import java.util.*;
|
||||||
|
|
||||||
public class MatchTheMeaningController extends SharedCodeController {
|
public class MatchTheMeaningController extends SharedCodeController {
|
||||||
|
|
||||||
|
// //////////////// //
|
||||||
|
// Class variables. //
|
||||||
|
// //////////////// //
|
||||||
|
|
||||||
public static ArrayList<DictionaryEntry> answer =new ArrayList<>();
|
public static ArrayList<DictionaryEntry> answer =new ArrayList<>();
|
||||||
|
|
||||||
|
// /////////////////// //
|
||||||
|
// Instance variables. //
|
||||||
|
// /////////////////// //
|
||||||
|
|
||||||
private ArrayList<Integer> orderList = new ArrayList<>(Arrays.asList(0,1,2,3));
|
private ArrayList<Integer> orderList = new ArrayList<>(Arrays.asList(0,1,2,3));
|
||||||
private boolean isEnglish = AssessmentGenerator.isEnglish;
|
private boolean isEnglish = AssessmentGenerator.isEnglish;
|
||||||
|
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private ComboBox<String> word1;
|
private ComboBox<String> word1;
|
||||||
|
|
||||||
|
@ -87,7 +94,9 @@ public class MatchTheMeaningController extends SharedCodeController {
|
||||||
@FXML
|
@FXML
|
||||||
private Label WrongAnswer;
|
private Label WrongAnswer;
|
||||||
|
|
||||||
|
// //////// //
|
||||||
|
// Methods. //
|
||||||
|
// //////// //
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set chosen words from dictionary on the scene.
|
* Set chosen words from dictionary on the scene.
|
||||||
|
|
|
@ -38,13 +38,21 @@ import java.util.*;
|
||||||
|
|
||||||
public class SixMeaningsController extends SharedCodeController {
|
public class SixMeaningsController extends SharedCodeController {
|
||||||
|
|
||||||
private ArrayList<DictionaryEntry> wordSet = new ArrayList<>();
|
// //////////////// //
|
||||||
|
// Class variables. //
|
||||||
|
// //////////////// //
|
||||||
|
|
||||||
public static ArrayList<DictionaryEntry> allQuestions = new ArrayList<>();
|
public static ArrayList<DictionaryEntry> allQuestions = new ArrayList<>();
|
||||||
|
|
||||||
|
// /////////////////// //
|
||||||
|
// Instance variables. //
|
||||||
|
// /////////////////// //
|
||||||
|
|
||||||
|
private ArrayList<DictionaryEntry> wordSet = new ArrayList<>();
|
||||||
private ArrayList<Integer> orderList = new ArrayList<>(Arrays.asList(0, 1, 2, 3, 4, 5));
|
private ArrayList<Integer> orderList = new ArrayList<>(Arrays.asList(0, 1, 2, 3, 4, 5));
|
||||||
private String wordCounterpart;
|
private String wordCounterpart;
|
||||||
private boolean isEnglish = AssessmentGenerator.isEnglish;
|
private boolean isEnglish = AssessmentGenerator.isEnglish;
|
||||||
|
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private Text correctAnswer;
|
private Text correctAnswer;
|
||||||
|
|
||||||
|
@ -72,6 +80,10 @@ public class SixMeaningsController extends SharedCodeController {
|
||||||
@FXML
|
@FXML
|
||||||
private Text possibleAnswer6;
|
private Text possibleAnswer6;
|
||||||
|
|
||||||
|
// //////// //
|
||||||
|
// Methods. //
|
||||||
|
// //////// //
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
void answer1(MouseEvent event) {
|
void answer1(MouseEvent event) {
|
||||||
wordCounterpart = possibleAnswer1.getText();
|
wordCounterpart = possibleAnswer1.getText();
|
||||||
|
|
|
@ -24,9 +24,17 @@ import uk.ac.aber.cs22120.group20.selfassessment.Question;
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class TranslationController extends SharedCodeController{
|
public class TranslationController extends SharedCodeController{
|
||||||
private ArrayList<DictionaryEntry> practiceList = new ArrayList<>();
|
|
||||||
|
// //////////////// //
|
||||||
|
// Class variables. //
|
||||||
|
// //////////////// //
|
||||||
|
|
||||||
public static DictionaryEntry answer = new DictionaryEntry();
|
public static DictionaryEntry answer = new DictionaryEntry();
|
||||||
|
|
||||||
|
// /////////////////// //
|
||||||
|
// Instance variables. //
|
||||||
|
// /////////////////// //
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents the word that will be randomly chosen from the practiceList.
|
* Represents the word that will be randomly chosen from the practiceList.
|
||||||
*/
|
*/
|
||||||
|
@ -51,7 +59,9 @@ public class TranslationController extends SharedCodeController{
|
||||||
|
|
||||||
Random rand = new Random();
|
Random rand = new Random();
|
||||||
|
|
||||||
|
// //////// //
|
||||||
|
// Methods. //
|
||||||
|
// //////// //
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Loads the test for the first time, filling the practice list with words from the dictionary,
|
* Loads the test for the first time, filling the practice list with words from the dictionary,
|
||||||
|
|
Reference in a new issue