Remove English search mode
This commit is contained in:
parent
7dab46364e
commit
eb3beb0dfe
@ -1,5 +1,5 @@
|
|||||||
package com.marvinelsen.willow.domain
|
package com.marvinelsen.willow.domain
|
||||||
|
|
||||||
enum class SearchMode {
|
enum class SearchMode {
|
||||||
PINYIN, SIMPLIFIED, TRADITIONAL, ENGLISH, SEGMENTS
|
PINYIN, SIMPLIFIED, TRADITIONAL, SEGMENTS
|
||||||
}
|
}
|
||||||
|
@ -90,7 +90,6 @@ class SqliteDictionary(private val connection: Connection) : Dictionary {
|
|||||||
SearchMode.SIMPLIFIED -> searchSimplified(query)
|
SearchMode.SIMPLIFIED -> searchSimplified(query)
|
||||||
SearchMode.TRADITIONAL -> searchTraditional(query)
|
SearchMode.TRADITIONAL -> searchTraditional(query)
|
||||||
SearchMode.SEGMENTS -> searchSegments(query)
|
SearchMode.SEGMENTS -> searchSegments(query)
|
||||||
SearchMode.ENGLISH -> TODO()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun findWordsContaining(entry: DictionaryEntry): List<DictionaryEntry> {
|
override fun findWordsContaining(entry: DictionaryEntry): List<DictionaryEntry> {
|
||||||
|
@ -36,12 +36,5 @@
|
|||||||
<SearchMode fx:value="SEGMENTS"/>
|
<SearchMode fx:value="SEGMENTS"/>
|
||||||
</userData>
|
</userData>
|
||||||
</RadioButton>
|
</RadioButton>
|
||||||
<RadioButton mnemonicParsing="false" text="%search.mode.english"
|
|
||||||
toggleGroup="$searchModeToggleGroup"
|
|
||||||
disable="true">
|
|
||||||
<userData>
|
|
||||||
<SearchMode fx:value="ENGLISH"/>
|
|
||||||
</userData>
|
|
||||||
</RadioButton>
|
|
||||||
</FlowPane>
|
</FlowPane>
|
||||||
</VBox>
|
</VBox>
|
||||||
|
Loading…
Reference in New Issue
Block a user