Added direct search of translation, changed searching for translation of words list...
[mdictionary] / trunk / src / base / gui / SearchBarWidget.h
index bb5f7df..37ab63e 100644 (file)
@@ -47,7 +47,7 @@ public:
 
 Q_SIGNALS:
     //! Requests to search for translation of word passed as parameter
-    void searchForTranslations(QStringList);
+    void searchForTranslations(QString);
 
     //! Request to stop all active searchings
     void stopSearching();
@@ -60,12 +60,6 @@ public Q_SLOTS:
     */
     void setEnabled(bool);
 
-    //! Search for all words in list
-    /*!
-       Used only when program starts with parameters.
-       Perform search of all words in list.
-     */
-    void searchWordList(QStringList words);
 
     //! Sets search bar in busy state
     /*!
@@ -80,6 +74,9 @@ public Q_SLOTS:
     void setIdle();
 
 
+    //! Search for given word
+    void search(QString word);
+
 private Q_SLOTS:
     void clearSearchWordToolButtonClicked();
     void searchPushButtonClicked();
@@ -87,6 +84,7 @@ private Q_SLOTS:
     void historyNextToolButtonClicked();
     void historyShowToolButtonClicked();
 
+
 private:
     Backbone* backbone;
     QLineEdit* searchWordLineEdit;
@@ -98,6 +96,8 @@ private:
     QHBoxLayout* horizontalLayout;
     QProgressBar* searchingProgressBar;
 
+    QIcon generateIcon(QIcon oryginal, qreal rotation=0);
+
     QVBoxLayout* verticalLayout;
 
     bool _isSearching;