Work on PreferencesPanel and fix a bug in Database (bad request for AddOperation)

This commit is contained in:
2012-01-07 09:21:22 +01:00
parent fda8f32fd7
commit a71638ace6
4 changed files with 212 additions and 166 deletions

View File

@@ -23,7 +23,7 @@
namespace SupportedLanguages {
#define ICONS_PATH RESSOURCES_ROOT "icons/"
enum wxLanguage {wxLANGUAGE_ENGLISH, wxLANGUAGE_FRENCH} ;
enum wxLanguage {wxLANGUAGE_ENGLISH, wxLANGUAGE_FRENCH, NB_SUPPORTED_LANGUAGES} ;
typedef struct {
QString name;
@@ -31,8 +31,6 @@ namespace SupportedLanguages {
wxLanguage language;
} language ;
const int NB_SUPPORTED_LANGUAGES = 2;
static const language languages[NB_SUPPORTED_LANGUAGES] = {
{ "English", ICONS_PATH "/United Kingdom.png", wxLANGUAGE_ENGLISH},
{ "Français",ICONS_PATH "/France.png", wxLANGUAGE_FRENCH}