#include <QDebug>
#include "GoogleDictDialog.h"
-
GooglePlugin::GooglePlugin(QObject *parent): CommonDictInterface(parent),
- _langFrom(tr("")), _langTo(tr("")),_name(tr("")),
- _type("google"), _infoNote(tr("")) {
-
- stopped = false;
- _connectionAccept = false;
+ _name(tr("")),_infoNote(tr("")) {
-
_settings = new Settings();
+ _settings->setValue("lang_to","");
+ _settings->setValue("lang_from","");
+ _settings->setValue("type","google");
+ _settings->setValue("connection_acepted","true");
_dictDialog = new GoogleDictDialog(this,this);
-
_icon = QIcon(":/icons/drawing.png");
+
+ stopped = false;
languages=initLanguages();
- _settings->setValue("type","google");
- _settings->setValue("connectionAcepted","false");
http = new QHttp(this);
connect(http, SIGNAL(done(bool)), this, SLOT(done()));
connect(cancelButton, SIGNAL(clicked()),
this, SIGNAL(cancelCaching()));
- // connect(parent, SIGNAL(updateCachingProgress(int, int)),
- // this, SLOT(updateCachingProgress(int, int)));
-
+ connect(parent, SIGNAL(updateCachingProgress(int, int)),
+ this, SLOT(updateCachingProgress(int, int)));
-
time.start();
}
XdxfPlugin::XdxfPlugin(QObject *parent) : CommonDictInterface(parent),
_langFrom(tr("")), _langTo(tr("")),_name(tr("")),
- _type("xdxf"), _infoNote(tr("")) {
+ _type(tr("xdxf")), _infoNote(tr("")) {
-
_wordsCount = -1;
_settings = new Settings();
_dictDialog = new XdxfDictDialog(this);