change comment's and fix bug (xslt transform)
[mdictionary] / src / mdictionary / gui / TranslationWidget.h
index a051c22..b0e4f7c 100644 (file)
 #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
@@ -45,6 +45,7 @@ public:
 
 Q_SIGNALS:
     void search(QString);
+    void notify(Notify::NotifyType, QString);
 
 public Q_SLOTS:
     //! Show widget.
@@ -64,15 +65,18 @@ protected:
 
 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