|
Code_TYMPAN
4.4.0
Industrial site acoustic simulation
|
#include <OLocalizator.h>

Static Public Member Functions | |
| static bool | setRessourceFile (const QString &filename) |
| static void | setRessourcePath (const QString &path) |
| static bool | isRessourceFile () |
| static QString | getString (const QString &classname, const QString &stringId) |
| static QString | getPicture (const QString &classname, const QString &pictureId) |
Private Types | |
| typedef QMap< QString, QString > | OptimMap |
Static Private Member Functions | |
| static bool | selectClassDirectory (const QString &classname) |
| static bool | findIdAndSetValue (const QString &directory, const QString &stringId, QString &returnString) |
Static Private Attributes | |
| static bool | _isRessourceFile = false |
| static OptimMap | _stringMap |
| static QString | _ressourcePath |
| static OXMLTreeManager | _treeManager |
A Class to handle application an plugin ressources. It allows to store strings and reference sounds and picture outside the application. It can be used to localize the plugins or the application.
Definition at line 38 of file OLocalizator.h.
|
private |
Definition at line 81 of file OLocalizator.h.
|
staticprivate |
Definition at line 127 of file OLocalizator.cpp.


|
static |
Returns a picture full path name, identified by its id and used by the class Classname.
| classname | Name of the class using this picture. |
| pictureId | Identifier of this picture |
Definition at line 64 of file OLocalizator.cpp.


|
static |
Returns a string identified by its id and used by the class Classname.
| classname | Name of the class using this string. |
| stringId | Identifier of this string. |
Definition at line 38 of file OLocalizator.cpp.


|
inlinestatic |
Return true if ressource file is loaded, false otherwise.
Definition at line 57 of file OLocalizator.h.

|
staticprivate |
Definition at line 98 of file OLocalizator.cpp.


|
static |
Load a file containing the ressources for a particular language.
| filename | XML filename (Mcs ressource format). |
Definition at line 31 of file OLocalizator.cpp.


|
inlinestatic |
Sets the absolute directory path of the sounds and pictures.
| path | File path of the picture and sounds to be used in the application. |
Definition at line 50 of file OLocalizator.h.

|
staticprivate |
Definition at line 79 of file OLocalizator.h.
|
staticprivate |
Definition at line 83 of file OLocalizator.h.
|
staticprivate |
Definition at line 82 of file OLocalizator.h.
|
staticprivate |
Definition at line 84 of file OLocalizator.h.