Merge branch 'master' into google
authorBartosz Szatkowski <bulislaw@linux.com>
Thu, 26 Aug 2010 09:22:50 +0000 (11:22 +0200)
committerBartosz Szatkowski <bulislaw@linux.com>
Thu, 26 Aug 2010 09:22:50 +0000 (11:22 +0200)
Conflicts:
trunk/src/base/gui/WordListWidget.cpp
trunk/src/plugins/xdxf/src/xdxfplugin.cpp

1  2 
trunk/src/base/backbone/Bookmarks.h
trunk/src/base/backbone/backbone.h
trunk/src/base/gui/DictTypeSelectDialog.h
trunk/src/base/gui/MainWindow.cpp
trunk/src/base/gui/WordListWidget.cpp
trunk/src/includes/CommonDictInterface.h
trunk/src/includes/settings.h
trunk/src/plugins/xdxf/src/XdxfSettingsDialog.h
trunk/src/plugins/xdxf/src/xdxfplugin.cpp
trunk/src/plugins/xdxf/src/xdxfplugin.h
trunk/tests/mDictionaryTests/tst_Backbone.cpp

@@@ -48,12 -49,11 +49,11 @@@ class BookmarkTranslation
  /*! Bookmarks are way to store words that You think You will need to search
    for often.
  
 -  When You add bookmark (by clickin on "star" in words list) You adds it to
 +  When You add bookmark (by clickin on "star" in words list) You add it to
    special list with cached translations from all available dictionaries so
 -  You can search for them quickly even when You delete coresponding dict.
 +  You can search for them quickly even when You delete corresponding dict.
    */
- class Bookmarks
- {
+ class Bookmarks : public AccentsNormalizer {
  public:
      Bookmarks();
  
Simple merge
Simple merge
@@@ -111,8 -110,7 +110,7 @@@ void WordListWidget::showSearchResults
  
  void WordListWidget::wordClicked(QModelIndex index) {
      //we're getting translation based on data in index
-     //qDebug()<<searchResult[index.data().toString()].at(0)->dictionaryInfo();
 -    emit showTranslation(
 +    Q_EMIT showTranslation(
              searchResult[index.data().toString()]);
  }
  
  
  #include <QString>
  #include <QHash>
- #include "CommonDictInterface.h"
  #include <QDebug>
  
- class CommonDictInterface;
  /*! Plugins or dictionaries may need to keep some of configuration between
 -  sessions, moreover Backbone or GUI may want store some additional info in
 +  sessions, moreover Backbone or GUI may want to store some additional info in
    plugin Settings.
  
 -  Its important for plugin to store all information given it in Settings.*/
 +  It's important for plugin to store all information given to it in Settings.*/
  class Settings {
    public:
      Settings(){}
@@@ -340,9 -358,12 +357,12 @@@ void XdxfPlugin::setSettings(Settings *
      else {
         _settings->setValue("cached", "false");
      }
+    foreach(QString key, settings->keys())
+        if(key != "generateCache")
+            _settings->setValue(key, settings->value(key));
      delete settings;
  
 -    emit settingsChanged();
 +    Q_EMIT settingsChanged();
  }
  
  void XdxfPlugin::getDictionaryInfo() {