|
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) |
| static QString | getResourcePath () |
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 89 of file OLocalizator.h.
|
staticprivate |
Definition at line 124 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 61 of file OLocalizator.cpp.


|
inlinestatic |
Returns the path to resources folder
Definition at line 77 of file OLocalizator.h.
|
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 35 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 95 of file OLocalizator.cpp.


|
static |
Load a file containing the ressources for a particular language.
| filename | XML filename (Mcs ressource format). |
Definition at line 28 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 87 of file OLocalizator.h.
|
staticprivate |
Definition at line 91 of file OLocalizator.h.
|
staticprivate |
Definition at line 90 of file OLocalizator.h.
|
staticprivate |
Definition at line 92 of file OLocalizator.h.