--- /dev/null
+#include "GoogleDictDialog.h"
+
+GoogleDictDialog::GoogleDictDialog(GooglePlugin *plugin, QObject *parent) :
+ DictDialog(parent) {
+
+ this->plugin = plugin;
+}
+
+
+Settings* GoogleDictDialog::addNewDictionary(QWidget *parent) {
+ Settings *settings = new Settings();
+ settings->setValue("langTo","en");
+ settings->setValue("langFrom","pl");
+ return settings;
+ //return GoogleLoadDialog::getSettings(parent);
+}
+
+void GoogleDictDialog::changeSettings(QWidget * parent) {
+
+ Settings* settings = new Settings;
+ foreach(QString key, plugin->settings()->keys())
+ settings->setValue(key, plugin->settings()->value(key));
+ plugin->setSettings(settings);
+ delete settings;
+}
--- /dev/null
+#ifndef GOOGLEDICTDIALOG_H
+#define GOOGLEDICTDIALOG_H
+
+#include "../../../includes/DictDialog.h"
+#include "GooglePlugin.h"
+
+class GooglePlugin;
+
+class GoogleDictDialog : public DictDialog
+{
+ Q_OBJECT
+public:
+ explicit GoogleDictDialog(GooglePlugin* plugin, QObject *parent = 0);
+ /*!
+ Shows add new xdxf dictionary dialog and returns settings of new dict
+ \param parent parent widget on which will be displayed dialog
+ */
+ Settings* addNewDictionary(QWidget *parent);
+
+ /*!
+ Shows settings dialog and save new settings in plugin
+ \param parent parent widget on which will be displayed dialog
+ */
+ void changeSettings(QWidget *parent);
+
+private:
+ GooglePlugin* plugin;
+};
+
+#endif // GOOGLEDICTDIALOG_H