//MetaPhrase/com.github.diegoberaldin.metaphrase.feature.translate.presentation/TranslateComponent/Intent
Intent
interface Intent
View intents.
Inheritors
Types
| Name | Summary | 
|---|---|
| AddGlossaryTerm | [jvm] data class AddGlossaryTerm(val source: String?, val target: String?) : TranslateComponent.Intent Add a new glossary term.  | 
    
| AddSegment | [jvm] object AddSegment : TranslateComponent.Intent Add a new segment (opens dialog).  | 
    
| CloseDialog | [jvm] object CloseDialog : TranslateComponent.Intent Close any opened dialog.  | 
    
| CopyBase | [jvm] object CopyBase : TranslateComponent.Intent Copy the base (source) message to the translation field in the editor.  | 
    
| DeleteSegment | [jvm] object DeleteSegment : TranslateComponent.Intent Delete the current segment.  | 
    
| EndEditing | [jvm] object EndEditing : TranslateComponent.Intent End the current editing operation.  | 
    
| Export | [jvm] data class Export(val path: String, val type: ResourceFileType) : TranslateComponent.Intent Export the current language messages to a resource file.  | 
    
| ExportTmx | [jvm] data class ExportTmx(val path: String) : TranslateComponent.Intent Export the global TM as a TMX file.  | 
    
| GlobalSpellcheck | [jvm] object GlobalSpellcheck : TranslateComponent.Intent Start a global spellcheck validation.  | 
    
| Import | [jvm] data class Import(val path: String, val type: ResourceFileType) : TranslateComponent.Intent Import a list of message for the current language from a resource file.  | 
    
| InsertBestMatch | [jvm] object InsertBestMatch : TranslateComponent.Intent Insert the best match from translation memory in the translation field of the editor.  | 
    
| MachineTranslationContributeTm | [jvm] object MachineTranslationContributeTm : TranslateComponent.Intent Share the whole project content (all messages for all languages) with the machine translation provider.  | 
    
| MachineTranslationCopyTarget | [jvm] object MachineTranslationCopyTarget : TranslateComponent.Intent Copy the current translation of the editor into the MT suggestion.  | 
    
| MachineTranslationInsert | [jvm] object MachineTranslationInsert : TranslateComponent.Intent Copy the MT suggestion into the translation editor.  | 
    
| MachineTranslationRetrieve | [jvm] object MachineTranslationRetrieve : TranslateComponent.Intent Retrieve a suggestion for the current message from the machine translation provider. In order for this to work, the TryLoadMachineTranslation intent should have been sent earlier.  | 
    
| MachineTranslationShare | [jvm] object MachineTranslationShare : TranslateComponent.Intent Share the current suggestion (after editing) with the machine translation provider.  | 
    
| MoveToNext | [jvm] object MoveToNext : TranslateComponent.Intent Moves the cursor to the next message.  | 
    
| MoveToPrevious | [jvm] object MoveToPrevious : TranslateComponent.Intent Moves the cursor to the previous message.  | 
    
| Save | [jvm] data class Save(val path: String) : TranslateComponent.Intent Save the current project to a TMX file.  | 
    
| SyncWithTm | [jvm] object SyncWithTm : TranslateComponent.Intent Export all the segments of the current project to the global translation memory.  | 
    
| TogglePanel | [jvm] data class TogglePanel(val config: TranslateComponent.PanelConfig) : TranslateComponent.Intent Toggle a bottom panel for a given section)  | 
    
| TryLoadGlossary | [jvm] object TryLoadGlossary : TranslateComponent.Intent Try and load terms from the glossary for the currently opened message.  | 
    
| TryLoadMachineTranslation | [jvm] object TryLoadMachineTranslation : TranslateComponent.Intent Loads the source version of the current message in machine translation component. (This does not retrieve any result from the MT provider, use MachineTranslationRetrieve after having called this method)  | 
    
| TryLoadSimilarities | [jvm] object TryLoadSimilarities : TranslateComponent.Intent Try and load similarities from the translation memory for the currently opened message.  | 
    
| ValidatePlaceholders | [jvm] object ValidatePlaceholders : TranslateComponent.Intent Start a placeholder validation.  |