]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/marDictionary.h
*** empty log message ***
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / marDictionary.h
1
2 #ifndef MARDICTIONARY_H
3 #define MARDICTIONARY_H
4
5
6 #include <vector>
7
8
9 class marDictFrase{
10 public:
11         marDictFrase(int id,char*frase);
12         ~marDictFrase();
13         int             GetIdFrase();
14         char*   GetFrase();
15 private:
16         int             _idfrase;
17         char    *_frase;
18 };
19
20
21
22
23 // Define a new application type, each program should derive a class from wxApp
24 class marDictionary {
25 public:
26                         marDictionary();
27                         ~marDictionary();
28         void    ResetDictionary();
29         void    SetLanguage(int language);
30         char*   GetString(int id);
31         int             GetLanguage();
32         bool    LoadDictionaryFile(char *dictionaryFileName);
33         void    LoadDictionary_English();
34         void    LoadDictionary_French();
35         void    LoadDictionary_Japanese();
36
37         void    FreeDictionary();
38
39
40 private:
41                         char                                             _emptyStr[30];
42         static  int                                                      _language;     
43         static  std::vector<marDictFrase*>  *_frases;
44
45                         bool ExistFileDictionary(char *dictionaryFileName);
46                         void SetString(int id,char *ss);
47 };
48
49
50 #endif // MARDICTIONARY_H