New Features #1

Open
marvinelsen wants to merge 76 commits from develop into main
Showing only changes of commit 46af4db9f1 - Show all commits

View File

@ -24,6 +24,7 @@ import kotlinx.html.ol
import kotlinx.html.stream.createHTML
import java.util.ResourceBundle
@Suppress("UnusedPrivateMember")
class DetailsController(private val model: Model, private val config: Config) {
@FXML
private lateinit var resources: ResourceBundle
@ -61,7 +62,6 @@ class DetailsController(private val model: Model, private val config: Config) {
@FXML
private lateinit var labelNoWordsFound: Label
@FXML
private fun initialize() {
initializeLabelHeadword()
@ -104,9 +104,20 @@ class DetailsController(private val model: Model, private val config: Config) {
{
val selectedEntry = model.selectedEntry.value
when (config.details.pronunciation.value!!) {
Pronunciation.PINYIN_WITH_TONE_MARKS -> selectedEntry?.pinyinWithToneMarksProperty?.value
Pronunciation.PINYIN_WITH_TONE_NUMBERS -> selectedEntry?.pinyinWithToneNumbersProperty?.value
Pronunciation.ZHUYIN -> selectedEntry?.zhuyinProperty?.value
Pronunciation.PINYIN_WITH_TONE_MARKS ->
selectedEntry
?.pinyinWithToneMarksProperty
?.value
Pronunciation.PINYIN_WITH_TONE_NUMBERS ->
selectedEntry
?.pinyinWithToneNumbersProperty
?.value
Pronunciation.ZHUYIN ->
selectedEntry
?.zhuyinProperty
?.value
}
},
config.details.pronunciation,