XdxfPlugin::XdxfPlugin(QObject *parent) : CommonDictInterface(parent),
_langFrom(tr("")), _langTo(tr("")),_name(tr("")),
_type(tr("xdxf")), _infoNote(tr("")) {
+
_wordsCount = -1;
_settings = new Settings();
_dictDialog = new XdxfDictDialog(this);
- cachingDialog = new XdxfCachingDialog();
+ cachingDialog = new XdxfCachingDialog(this);
+
connect(cachingDialog, SIGNAL(cancelCaching()),
this, SLOT(stop()));
-
connect(this, SIGNAL(updateCachingProgress(int,int)),
cachingDialog, SLOT(updateCachingProgress(int,int)));
+
_settings->setValue("type","xdxf");
stopped = false;
XdxfPlugin::~XdxfPlugin() {
delete _settings;
+ delete cachingDialog;
}
QFile dictionaryFile(dictFileN.filePath());
-
if (!dictionaryFile.open(QFile::ReadOnly | QFile::Text)) {
Q_EMIT updateCachingProgress(100, 0);
Q_EMIT notify(Notify::Warning,