[qet] [2768] Add country flag icon in combobox switch language |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 2768
Author: scorpio810
Date: 2014-01-23 09:34:47 +0100 (Thu, 23 Jan 2014)
Log Message:
-----------
Add country flag icon in combobox switch language
Modified Paths:
--------------
trunk/qelectrotech.qrc
trunk/sources/configpages.cpp
trunk/sources/qeticons.cpp
trunk/sources/qeticons.h
Modified: trunk/qelectrotech.qrc
===================================================================
--- trunk/qelectrotech.qrc 2014-01-23 02:52:57 UTC (rev 2767)
+++ trunk/qelectrotech.qrc 2014-01-23 08:34:47 UTC (rev 2768)
@@ -166,7 +166,7 @@
<file>ico/22x22/textfield.png</file>
<file>ico/22x22/text.png</file>
<file>ico/22x22/text-xml.png</file>
- <file>ico/22x22/transform-scale.png</file>
+ <file>ico/22x22/transform-scale.png</file>
<file>ico/22x22/two_pages.png</file>
<file>ico/22x22/view_fit_width.png</file>
<file>ico/22x22/view_fit_window.png</file>
@@ -209,5 +209,20 @@
<file>ico/32x32/format-text-bold.png</file>
<file>ico/32x32/format-text-italic.png</file>
<file>ico/32x32/format-text-underline.png</file>
+ <file>ico/24x16/ar.png</file>
+ <file>ico/24x16/cs.png</file>
+ <file>ico/24x16/de.png</file>
+ <file>ico/24x16/es.png</file>
+ <file>ico/24x16/en.png</file>
+ <file>ico/24x16/catalonia.png</file>
+ <file>ico/24x16/fr.png</file>
+ <file>ico/24x16/hr.png</file>
+ <file>ico/24x16/lt.png</file>
+ <file>ico/24x16/pl.png</file>
+ <file>ico/24x16/pt.png</file>
+ <file>ico/24x16/ro.png</file>
+ <file>ico/24x16/ru.png</file>
+ <file>ico/24x16/sl.png</file>
+ <file>ico/24x16/gr.png</file>
</qresource>
</RCC>
Modified: trunk/sources/configpages.cpp
===================================================================
--- trunk/sources/configpages.cpp 2014-01-23 02:52:57 UTC (rev 2767)
+++ trunk/sources/configpages.cpp 2014-01-23 08:34:47 UTC (rev 2768)
@@ -231,21 +231,21 @@
lang_combo_box->insertSeparator(1);
// all lang available on lang directory
- lang_combo_box->addItem(tr("Arabe"), "ar");
- lang_combo_box->addItem(tr("Catalan"), "ca");
- lang_combo_box->addItem(tr("Tch\350que"), "cs");
- lang_combo_box->addItem(tr("Allemand"), "de");
- lang_combo_box->addItem(tr("Grec"), "el");
- lang_combo_box->addItem(tr("Anglais"), "en");
- lang_combo_box->addItem(tr("Espagnol"), "es");
- lang_combo_box->addItem(tr("Fran\347ais"), "fr");
- lang_combo_box->addItem(tr("Croate"), "hr");
- lang_combo_box->addItem(tr("Italien"), "it");
- lang_combo_box->addItem(tr("Polonais"), "pl");
- lang_combo_box->addItem(tr("Portugais"), "pt");
- lang_combo_box->addItem(tr("Roumains"), "ro");
- lang_combo_box->addItem(tr("Russe"), "ru");
- lang_combo_box->addItem(tr("Slov\350ne"), "sl");
+ lang_combo_box->addItem(QET::Icons::ar, tr("Arabe"), "ar");
+ lang_combo_box->addItem(QET::Icons::catalania, tr("Catalan"), "ca");
+ lang_combo_box->addItem(QET::Icons::cs, tr("Tch\350que"), "cs");
+ lang_combo_box->addItem(QET::Icons::de, tr("Allemand"), "de");
+ lang_combo_box->addItem(QET::Icons::gr, tr("Grec"), "el");
+ lang_combo_box->addItem(QET::Icons::en, tr("Anglais"), "en");
+ lang_combo_box->addItem(QET::Icons::es, tr("Espagnol"), "es");
+ lang_combo_box->addItem(QET::Icons::fr, tr("Fran\347ais"), "fr");
+ lang_combo_box->addItem(QET::Icons::hr, tr("Croate"), "hr");
+ lang_combo_box->addItem(QET::Icons::it, tr("Italien"), "it");
+ lang_combo_box->addItem(QET::Icons::pl, tr("Polonais"), "pl");
+ lang_combo_box->addItem(QET::Icons::pt, tr("Portugais"), "pt");
+ lang_combo_box->addItem(QET::Icons::ro, tr("Roumains"), "ro");
+ lang_combo_box->addItem(QET::Icons::ru, tr("Russe"), "ru");
+ lang_combo_box->addItem(QET::Icons::sl, tr("Slov\350ne"), "sl");
//set curent index to the lang found in setting file
//if lang doesn't exist set to system
Modified: trunk/sources/qeticons.cpp
===================================================================
--- trunk/sources/qeticons.cpp 2014-01-23 02:52:57 UTC (rev 2767)
+++ trunk/sources/qeticons.cpp 2014-01-23 08:34:47 UTC (rev 2768)
@@ -154,6 +154,21 @@
QIcon ZoomOut;
QIcon adding_image;
QIcon resize_image;
+ QIcon ar;
+ QIcon catalania;
+ QIcon cs;
+ QIcon de;
+ QIcon gr;
+ QIcon en;
+ QIcon es;
+ QIcon fr;
+ QIcon hr;
+ QIcon it;
+ QIcon pl;
+ QIcon pt;
+ QIcon ro;
+ QIcon ru;
+ QIcon sl;
}
}
@@ -388,4 +403,19 @@
ZoomOriginal .addFile(":/ico/22x22/zoom-original.png");
ZoomOut .addFile(":/ico/16x16/zoom-out.png");
ZoomOut .addFile(":/ico/22x22/zoom-out.png");
+ ar .addFile(":/ico/24x16/ar.png");
+ catalania .addFile(":/ico/24x16/catalania.png");
+ cs .addFile(":/ico/24x16/cs.png");
+ de .addFile(":/ico/24x16/de.png");
+ gr .addFile(":/ico/24x16/gr.png");
+ en .addFile(":/ico/24x16/en.png");
+ es .addFile(":/ico/24x16/es.png");
+ fr .addFile(":/ico/24x16/fr.png");
+ hr .addFile(":/ico/24x16/hr.png");
+ it .addFile(":/ico/24x16/it.png");
+ pl .addFile(":/ico/24x16/pl.png");
+ pt .addFile(":/ico/24x16/pt.png");
+ ro .addFile(":/ico/24x16/ro.png");
+ ru .addFile(":/ico/24x16/ru.png");
+ sl .addFile(":/ico/24x16/sl.png");
}
Modified: trunk/sources/qeticons.h
===================================================================
--- trunk/sources/qeticons.h 2014-01-23 02:52:57 UTC (rev 2767)
+++ trunk/sources/qeticons.h 2014-01-23 08:34:47 UTC (rev 2768)
@@ -163,6 +163,21 @@
extern QIcon ZoomOut;
extern QIcon adding_image;
extern QIcon resize_image;
+ extern QIcon ar;
+ extern QIcon catalania;
+ extern QIcon cs;
+ extern QIcon de;
+ extern QIcon gr;
+ extern QIcon en;
+ extern QIcon es;
+ extern QIcon fr;
+ extern QIcon hr;
+ extern QIcon it;
+ extern QIcon pl;
+ extern QIcon pt;
+ extern QIcon ro;
+ extern QIcon ru;
+ extern QIcon sl;
}
}
#endif