//! \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();
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);
}
}
--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);