Merge branch 'gui'
authorMateusz Półrola <mateusz.polrola@comarch.pl>
Thu, 12 Aug 2010 12:59:47 +0000 (14:59 +0200)
committerMateusz Półrola <mateusz.polrola@comarch.pl>
Thu, 12 Aug 2010 12:59:47 +0000 (14:59 +0200)
Conflicts:
trunk/src/base/backbone/backbone.h

1  2 
trunk/src/base/backbone/backbone.h
trunk/src/base/gui/DictManagerWidget.cpp
trunk/src/base/gui/SearchBarWidget.cpp

@@@ -86,11 -77,11 +86,6 @@@ public
      //! \return maximum number of word that plugin could find
      int searchLimit() const;
  
-     /*! Performs search for final translation (html/xml) form
-       \param list of Translation* to be searched for
-       */
-     void searchHtml(QList<Translation*>);
 -    //! \return number of active searches
 -    int activeSearches() const;
 -
 -
 -
      //! \return final translation (after searching for html)
      QStringList htmls();
  
@@@ -60,25 -56,8 +56,11 @@@ SearchBarWidget::SearchBarWidget(QWidge
              this, SLOT(clearSearchWordToolButtonClicked()));
  
  
-     //connects request to backbone
-     connect(this, SIGNAL(searchForTranslations(QString)),
-             backbone, SLOT(search(QString)));
-     connect(this, SIGNAL(stopSearching()),
-             backbone, SLOT(stopSearching()));
-     connect(backbone, SIGNAL(ready()),
-             this, SLOT(setIdle()));
-     connect(backbone, SIGNAL(htmlReady()),
-             this, SLOT(setIdle()));
-     connect(history, SIGNAL(historyChanged(bool,bool,bool)),
-             this, SLOT(updateHistoryButtons(bool,bool,bool)));
      searchWordLineEdit->setFocus();
  
++    historyPrevToolButton->setEnabled(false);
++    historyNextToolButton->setEnabled(false);
++    historyShowToolButton->setEnabled(false);
      setEnabled(true);
  }
  
@@@ -251,12 -206,12 +209,9 @@@ void SearchBarWidget::clearSearchWordTo
  }
  
  
--bool SearchBarWidget::isSearching() const {
--    return _isSearching;
--}
  
  void SearchBarWidget::updateHistoryButtons(bool prev, bool next, bool list) {
--    if(!isSearching()) {
++    if(!_isSearching) {
          historyPrevToolButton->setEnabled(prev);
          historyNextToolButton->setEnabled(next);
          historyShowToolButton->setEnabled(list);