API Documentation
Loading...
Searching...
No Matches
LanguageEditor Class Reference

Allows the user to adjust translation values for a given language. More...

#include <LanguageEditor.h>

Inheritance diagram for LanguageEditor:
[legend]
Collaboration diagram for LanguageEditor:
[legend]

Public Member Functions

 LanguageEditor (QWidget *parent=nullptr)
 
void setEditingTranslation (const Translator &translator)
 
void setReferenceTranslation (const Translator &translator)
 
virtual ~LanguageEditor ()
 

Protected Member Functions

bool canSave ()
 
void copyReference ()
 
void saveLanguage ()
 
void updateTranslationView ()
 
void updateUI ()
 

Protected Attributes

bool m_has_change = false
 
Translator m_original_translator
 
Translator m_reference_translator
 
Translator m_translator
 
Ui::LanguageEditorUI * ui
 

Detailed Description

Allows the user to adjust translation values for a given language.


Constructor & Destructor Documentation

◆ LanguageEditor()

LanguageEditor ( QWidget * parent = nullptr)

◆ ~LanguageEditor()

virtual ~LanguageEditor ( )
virtual

Member Function Documentation

◆ canSave()

bool canSave ( )
protected

◆ copyReference()

void copyReference ( )
protected

◆ saveLanguage()

void saveLanguage ( )
protected

◆ setEditingTranslation()

void setEditingTranslation ( const Translator & translator)

◆ setReferenceTranslation()

void setReferenceTranslation ( const Translator & translator)

◆ updateTranslationView()

void updateTranslationView ( )
protected

◆ updateUI()

void updateUI ( )
protected

Member Data Documentation

◆ m_has_change

bool m_has_change = false
protected

◆ m_original_translator

Translator m_original_translator
protected

◆ m_reference_translator

Translator m_reference_translator
protected

◆ m_translator

Translator m_translator
protected

◆ ui

Ui::LanguageEditorUI* ui
protected

The documentation for this class was generated from the following file: