//MetaPhrase/com.github.diegoberaldin.metaphrase.feature.translate.messages.presentation/MessageListComponent/Intent
Intent
interface Intent
View intents.
Inheritors
Types
Name | Summary |
---|---|
AddToGlossarySource | [jvm] data class AddToGlossarySource(val lemma: String, val lang: String) : MessageListComponent.Intent Opens the new glossary term dialog. |
ChangeSegmentText | [jvm] data class ChangeSegmentText(val text: String) : MessageListComponent.Intent Change segment text programmatically (intended for application initiated interaction). |
ClearMessages | [jvm] object ClearMessages : MessageListComponent.Intent Clear the message list. |
CopyBase | [jvm] object CopyBase : MessageListComponent.Intent Copy the base (source) message to the target field. |
DeleteSegment | [jvm] object DeleteSegment : MessageListComponent.Intent Delete the current segment. |
EndEditing | [jvm] object EndEditing : MessageListComponent.Intent End the editing operation. |
IgnoreWordInSpelling | [jvm] data class IgnoreWordInSpelling(val word: String) : MessageListComponent.Intent Ignore a given word in spelling for the current language adding it to a user defined dictionary. |
LoadNextPage | [jvm] object LoadNextPage : MessageListComponent.Intent Load the next page of messages from the DB. |
MarkAsTranslatable | [jvm] data class MarkAsTranslatable(val value: Boolean, val key: String) : MessageListComponent.Intent Mark a segment as translatable. |
MoveToNext | [jvm] object MoveToNext : MessageListComponent.Intent Move cursor to the next message. |
MoveToPrevious | [jvm] object MoveToPrevious : MessageListComponent.Intent Move cursor to the previous message. |
Refresh | [jvm] object Refresh : MessageListComponent.Intent Reload the message list. |
ReloadMessages | [jvm] data class ReloadMessages(val language: LanguageModel, val filter: TranslationUnitTypeFilter, val projectId: Int) : MessageListComponent.Intent Reload the message list. It should be called for the first loading operation, for subsequent ones the Refresh intent is enough |
ScrollToMessage | [jvm] data class ScrollToMessage(val key: String) : MessageListComponent.Intent Scroll to a given message. |
Search | [jvm] data class Search(val text: String) : MessageListComponent.Intent Search for messages matching the textual query. |
SetEditingEnabled | [jvm] data class SetEditingEnabled(val value: Boolean) : MessageListComponent.Intent Enable or disable editing. |
SetSegmentText | [jvm] data class SetSegmentText(val text: String) : MessageListComponent.Intent Set the current segment text (intended for user initiated interaction). |
StartEditing | [jvm] data class StartEditing(val index: Int) : MessageListComponent.Intent Start editing a given message. |