Added option for stripping accents on add dict dialog;
[mdictionary] / trunk / src / plugins / xdxf / src / XdxfLoadDialog.cpp
index 8b4a039..99f6759 100644 (file)
@@ -44,6 +44,9 @@ XdxfLoadDialog::XdxfLoadDialog(QWidget *parent) :
 
     cacheLayout = new QHBoxLayout(this);
     verticalLayout->addLayout(cacheLayout);
+    accentsCheckBox = new QCheckBox(tr("Strip accents \n(searching takes more time, "
+                 "but spelling don't have to be exact)"));
+    verticalLayout->addWidget(accentsCheckBox);
 
     cacheCheckBox = new QCheckBox(tr("Optimize for quicker searches (may take some time)"),this);
     cacheCheckBox->setChecked(true);
@@ -107,6 +110,11 @@ Settings* XdxfLoadDialog::getSettings(QWidget *parent) {
         else {
             settings->setValue("generateCache", "false");
         }
+        if(loadDialog.accentsCheckBox->isChecked())
+            settings->setValue("strip_accents", "true");
+        else
+            settings->setValue("strip_accents", "false");
+
 
         return settings;
     }