Allows the user to adjust translation values for a given language.
More...
|
| bool | canSave () |
| | Returns whether the current edits can be saved.
|
|
void | copyReference () |
| | Copies the reference translation values into the editing translator.
|
|
void | saveLanguage () |
| | Saves the current translation edits to disk.
|
|
void | updateTranslationView () |
| | Updates the translation view panel with the current entries.
|
|
void | updateUI () |
| | Refreshes the editor UI to reflect the current state.
|
|
|
bool | m_has_change = false |
| | Whether unsaved changes exist.
|
|
Translator | m_original_translator |
| | The original translator state before edits.
|
|
Translator | m_reference_translator |
| | The reference translator for comparison.
|
|
Translator | m_translator |
| | The translator currently being edited.
|
|
Ui::LanguageEditorUI * | ui |
| | The auto-generated UI form for the editor.
|
Allows the user to adjust translation values for a given language.
Definition at line 51 of file LanguageEditor.h.
◆ LanguageEditor()
| LanguageEditor::LanguageEditor |
( |
QWidget * | parent = nullptr | ) |
|
◆ canSave()
| bool LanguageEditor::canSave |
( |
| ) |
|
|
protected |
Returns whether the current edits can be saved.
- Returns
- True if the translation has changes that can be saved.
◆ setEditingTranslation()
| void LanguageEditor::setEditingTranslation |
( |
const Translator & | translator | ) |
|
Sets the translator currently being edited.
- Parameters
-
| [in] | translator | The translator whose translations will be modified. |
◆ setReferenceTranslation()
| void LanguageEditor::setReferenceTranslation |
( |
const Translator & | translator | ) |
|
Sets the reference translator to compare against while editing.
- Parameters
-
| [in] | translator | The reference translator providing source translations. |
The documentation for this class was generated from the following file: