#include "../backbone/backbone.h"
#include <QtXml>
#include <QXmlQuery>
-#include "TranslationTextEdit.h"
+#include "TranslationView.h"
#include <QPropertyAnimation>
#include "../../include/GUIInterface.h"
//! Displays translation of a word found in dictionaries
/*!
- Displays many translations of word, formatted as html.
+ Displays many translations of word, formatted as xml.
*/
class TranslationWidget : public QScrollArea {
Q_OBJECT
Q_SIGNALS:
void search(QString);
+ void notify(Notify::NotifyType, QString);
public Q_SLOTS:
//! Show widget.
private Q_SLOTS:
void searchSelected();
+ void copySelected();
#ifdef Q_WS_MAEMO_5
void showButtons();
#endif
private:
QString XslConversion(QString translation);
+ QString checkTranslation(QString trans);
+ QString createTranslation(QStringList translations);
QToolButton* zoomInToolButton;
QToolButton* zoomOutToolButton;
- TranslationTextEdit *webkit;
+ TranslationView *webkit;
QString xslt;
#ifdef Q_WS_MAEMO_5