bi change + completer in line edit
[mdictionary] / src / mdictionary / gui / SearchBarWidget.h
index 52a8e65..0e84bee 100644 (file)
@@ -56,6 +56,11 @@ Q_SIGNALS:
     void setButtonText(QVariant text);
     void setLineEditText(QVariant text);
     void setLineEditEnables(QVariant enabled);
+    void progresSetMax(QVariant);
+    void progresSetMin(QVariant);
+    void progresSetValue(QVariant);
+    void progresSetValue2(QVariant);
+    void setCompleterText(QVariant);
 
     //! Requests to search for a list of words matching a word passed as
     //! a parameter
@@ -82,6 +87,8 @@ Q_SIGNALS:
 
 public Q_SLOTS:
 
+    void updateBusyTimer();
+
     void searchButtonClicked(QString text);
 
     //! Enables or disables search word line edit and history buttons
@@ -142,15 +149,27 @@ private Q_SLOTS:
     //! shows history
     void showHistoryButtonClicked();
 
+    void textChange(QString text);
+
+    void nextCompleter();
+
+    void prevCompleter();
 
 private:
 
     QVBoxLayout* mainLayout;
     QDeclarativeView *view;
+    QDeclarativeView *progressBar;
+    QTimer *busyTimer;
+    bool progressMax;
+    QDeclarativeContext *ctxt;
+    QStringList* completerModel;
+    QCompleter* lineEditCompleter;
+    QString preferedCompliter;
+    QString actualString;
+    QStringList completerActualList;
 
     QLineEdit* searchWordLineEdit;
-    QCompleter* lineEditCompleter;
-    QStringListModel* completerModel;
     QToolButton* clearSearchWordToolButton;
     QPushButton* searchPushButton;
     QToolButton* historyPrevToolButton;