ACF $AcfVersion:0$
ITranslationManager.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ACF-Commercial
2#pragma once
3
4
5// ACF includes
6#include <iprm/IOptionsList.h>
7
8
9class QTranslator;
10
11
12namespace iqt
13{
14
19{
20public:
24 virtual const iprm::IOptionsList& GetLanguagesInfo() const = 0;
25
29 virtual int GetCurrentLanguageIndex() const = 0;
30
34 virtual const QTranslator* GetLanguageTranslator(int languageIndex) const = 0;
35
40
44 virtual void SwitchLanguage(int languageIndex) = 0;
45
49 virtual void SetSystemLanguage() = 0;
50};
51
52
53} // namespace iqt
54
55
56
57
Constraints of selection from set of possibilities.
Common interface for the localization manager.
virtual int GetCurrentLanguageIndex() const =0
Get current language index.
virtual const QTranslator * GetLanguageTranslator(int languageIndex) const =0
Get Qt translator for a given language.
virtual const iprm::IOptionsList & GetLanguagesInfo() const =0
Get the list of supported languages given as a list of options.
virtual void SetSystemLanguage()=0
Set default system's language.
virtual void SwitchLanguage(int languageIndex)=0
Switch the current language to the language with the index languageIndex.
virtual const ITranslationManager * GetSlaveTranslationManager() const =0
Get slave translation manager, if set.
Base interface for all used interfaces and implementations.
This namespace contains non-UI utility classes based on Qt.