eric7.Plugins.PluginTranslator

Module implementing the Translator plugin.

Global Attributes

__header__
error
translatorPluginObject

Classes

TranslatorPlugin Class implementing the Translator plug-in.

Functions

createTranslationServicesPage Module function to create the Translation Services configuration page.
createTranslatorPage Module function to create the Translator configuration page.
getConfigData Module function returning data as required by the configuration dialog.
prepareUninstall Module function to prepare for an uninstallation.


TranslatorPlugin

Class implementing the Translator plug-in.

Signals

preferencesChanged()
emitted to signal a change of preferences. This signal is simply relayed from the main UI.
updateLanguages()
emitted to indicate a languages update

Derived from

QObject

Class Attributes

DefaultPreferences
PreferencesKey

Class Methods

getPreferences Class method to retrieve the various settings.
getPreferencesDefault Class method to retrieve the various default settings.
setPreferences Class method to store the various settings.

Methods

TranslatorPlugin Constructor
__initialize Private slot to (re)initialize the plugin.
activate Public method to activate this plugin.
deactivate Public method to deactivate this plugin.

Static Methods

None

TranslatorPlugin.getPreferences (class method)

getPreferences(key)

Class method to retrieve the various settings.

key (str)
the key of the value to get
Return:
the requested setting
Return Type:
Any

TranslatorPlugin.getPreferencesDefault (class method)

getPreferencesDefault(key)

Class method to retrieve the various default settings.

key (str)
the key of the value to get
Return:
the requested setting
Return Type:
Any

TranslatorPlugin.setPreferences (class method)

setPreferences(key, value)

Class method to store the various settings.

key (str)
the key of the setting to be set
value (Any)
the value to be set

TranslatorPlugin (Constructor)

TranslatorPlugin(ui)

Constructor

ui (UI.UserInterface)
reference to the user interface object

TranslatorPlugin.__initialize

__initialize()

Private slot to (re)initialize the plugin.

TranslatorPlugin.activate

activate()

Public method to activate this plugin.

Return:
tuple of None and activation status
Return Type:
tuple of (None, bool)

TranslatorPlugin.deactivate

deactivate()

Public method to deactivate this plugin.

Up


createTranslationServicesPage

createTranslationServicesPage(_configDlg)

Module function to create the Translation Services configuration page.

_configDlg (ConfigurationWidget)
reference to the configuration dialog (unused)
Return:
reference to the configuration page
Return Type:
TranslatorPage
Up


createTranslatorPage

createTranslatorPage(_configDlg)

Module function to create the Translator configuration page.

_configDlg (ConfigurationWidget)
reference to the configuration dialog (unused)
Return:
reference to the configuration page
Return Type:
TranslatorPage
Up


getConfigData

getConfigData()

Module function returning data as required by the configuration dialog.

Return:
dictionary containing the relevant data
Return Type:
dict
Up


prepareUninstall

prepareUninstall()

Module function to prepare for an uninstallation.

Up