HP Views Designer Assistant: TranslatableApp Class Reference

| HP Views Designer Assistant 1.0.0 TFG - Alberto Gutierrez Perez - Universidad de Valladolid |

Public Member Functions | Private Attributes | List of all members
TranslatableApp Class Reference

The TranslatableApp class. More...

`#include <translatableapp.h>`

Inheritance diagram for TranslatableApp:

## Public Member Functions

| TranslatableApp (int &argc, char **argv)
| TranslatableApp constructor. More...
void | createTranslators (QStringList languages)
| createTranslators Loads the translations of the app- More...
void | swithLanguage (QString languaje)
| swithLanguage Changes the current app language. More...

## Private Attributes

QMap< QString, QTranslator * > | translators
| translators Map with all of app languages.
QTranslator * | currentLanguaje
| currentLanguaje Language of the app.

## Detailed Description

The TranslatableApp class.

## Constructor & Destructor Documentation

## ◆ TranslatableApp()

TranslatableApp::TranslatableApp | ( | int & | argc,
|  | char ** | argv
| ) |  |

TranslatableApp constructor.

Parameters

  argc |
  argv |

## Member Function Documentation

## ◆ createTranslators()

void TranslatableApp::createTranslators | ( | QStringList | languages | ) |

createTranslators Loads the translations of the app-

Parameters

  languages | List with the acronym of the languages.

## ◆ swithLanguage()

void TranslatableApp::swithLanguage | ( | QString | languaje | ) |

swithLanguage Changes the current app language.

Parameters

  languaje | Language to translate the app.

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

- D:/Documentos/ViewDesignerAssistant/translatableapp.h
- D:/Documentos/ViewDesignerAssistant/translatableapp.cpp