this->backbone = backbone;
ui->setupUi(this);
- setAttribute(Qt::WA_Maemo5StackedWindow);
+
+ #ifdef Q_WS_MAEMO_5
+ setAttribute(Qt::WA_Maemo5StackedWindow);
+ #endif
searchBarWidget = new SearchBarWidget(backbone);
wordListWidget = new WordListWidget(backbone);
this->backbone = backbone;
- setAttribute(Qt::WA_Maemo5StackedWindow);
+ #ifdef Q_WS_MAEMO_5
+ setAttribute(Qt::WA_Maemo5StackedWindow);
+ #endif
setWindowFlags(windowFlags() | Qt::Window);
initializeUI();
Settings* XdxfDictDialog::addNewDictionary(QWidget *parent) {
return XdxfLoadDialog::getSettings(parent);
}
+
+void XdxfDictDialog::changeSettings(QWidget *) {
+
+}
XdxfLoadDialog loadDialog(parent);
Settings* settings = new Settings;
- if(loadDialog.exec()==0) {
+ if(loadDialog.exec()==QDialog::Accepted) {
settings->setValue("dictionaryFile", dicitonaryFilePath);
if(generateCache) {
settings->setValue("cache", "1");
path="dict.xdxf";
stopped = false;
_settings = new Settings();
+ _dictDialog = new XdxfDictDialog(this);
}
QString XdxfPlugin::langFrom() const {
}
DictDialog* XdxfPlugin::dictDialog() {
- return NULL;
+ return _dictDialog;
}
#include <QDialog>
#include <QRegExp>
#include <QTime>
+#include "XdxfDictDialog.h"
class TranslationXdxf;
uint _hash;
bool stopped; /*volatile*/
Settings *_settings;
+ XdxfDictDialog* _dictDialog;
};
#endif // XDXFPLUGIN_H