/*! 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();
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(){}
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() {