serachBar + progressBar
[mdictionary] / src / mdictionary / gui / SearchBarWidget.h
index afef2f5..52a8e65 100644 (file)
@@ -30,6 +30,8 @@
 
 #include <QWidget>
 #include <QtGui>
+#include <QDeclarativeView>
+
 #include "../backbone/backbone.h"
 #include "../../include/History.h"
 
@@ -47,6 +49,14 @@ public:
     ~SearchBarWidget();
 
 Q_SIGNALS:
+
+    void setEnableHistoryNext(QVariant enable);
+    void setEnableHistoryShow(QVariant enable);
+    void setEnableHistoryPrev(QVariant enable);
+    void setButtonText(QVariant text);
+    void setLineEditText(QVariant text);
+    void setLineEditEnables(QVariant enabled);
+
     //! Requests to search for a list of words matching a word passed as
     //! a parameter
     void searchForTranslations(QString);
@@ -71,6 +81,9 @@ Q_SIGNALS:
     void refreshHistoryButtons();
 
 public Q_SLOTS:
+
+    void searchButtonClicked(QString text);
+
     //! Enables or disables search word line edit and history buttons
     /*!
       While searching it disables only history button and line edit.
@@ -131,6 +144,10 @@ private Q_SLOTS:
 
 
 private:
+
+    QVBoxLayout* mainLayout;
+    QDeclarativeView *view;
+
     QLineEdit* searchWordLineEdit;
     QCompleter* lineEditCompleter;
     QStringListModel* completerModel;