Clean and order documentation in source files. Source ready to beta 2 release
[mdictionary] / src / mdictionary / gui / TranslationWidget.h
index 5907f97..cb4f13b 100644 (file)
     Copyright 2010 Comarch S.A.
 
 *******************************************************************************/
-//! \file TranslationWidget.h
-//! \author Mateusz Półrola <mateusz.polrola@comarch.pl>
+/*! \file TranslationWidget.h
+    \brief Displays translation of a word found in dictionaries
+
+    \author Mateusz Półrola <mateusz.polrola@comarch.pl>
+*/
 
 #ifndef TRANSLATIONWIDGET_H
 #define TRANSLATIONWIDGET_H
@@ -34,7 +37,6 @@
 #include <QPropertyAnimation>
 #include "../../include/GUIInterface.h"
 
-//! Displays translation of a word found in dictionaries
 /*!
     Displays many translations of word, formatted as xml.
 */
@@ -45,6 +47,7 @@ public:
 
 Q_SIGNALS:
     void search(QString);
+    void notify(Notify::NotifyType, QString);
 
 public Q_SLOTS:
     //! Show widget.
@@ -64,12 +67,15 @@ 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;
     TranslationView *webkit;