[%General]
-plugin_path=/usr/lib/mdictiona
+plugin_path=/usr/lib/mdictionary
history_length=10
search_limit=15
+
+[dictionary_0]
+type=xdxf
+path=/usr/lib/mdictionary/en-fin.xdxf
+_default_=true
+
+[dictionary_1]
+type=xdxf
+path=/usr/lib/mdictionary/pol-eng.xdxf
+_default_=true
_history = new History(5, this);
}
-Backbone::Backbone(QString pluginPath, QString configPath, QObject *parent)
+Backbone::Backbone(QString pluginPath, QString configPath, bool dry,
+ QObject *parent)
: QObject(parent)
{
- init();
- dryRun = true;
_pluginPath = pluginPath;
_configPath = configPath;
_defaultConfigPath = configPath;
+ init();
+ if(dry)
+ dryRun = true;
}
void Backbone::dictUpdated() {
if(dryRun)
return;
+ qDebug() << "UPDATE";
QFileInfo file(QDir::toNativeSeparators(_configPath));
QDir confDir(file.dir());
if(!confDir.exists())
public:
/*!\param pluginPath path to plugins (leave blank for default)
\param configPath path to folder with configuration files*/
- Backbone(QString pluginPath="", QString configPath="", QObject *parent = 0);
+ Backbone(QString pluginPath="", QString configPath="",
+ bool dry = 0, QObject *parent = 0);
~Backbone();
Backbone(const Backbone& b);
cd->namev = QString("name%1").arg(i);
cd->typev = QString("type%1").arg(i);
}
- back = new Backbone("empty","empty");
+ back = new Backbone("empty","empty", 1);
qDebug() << back->getDictionaries().size();
addDicts();
}