bool HelpDialogBase::qt_invoke( int _id, QUObject* _o ) { switch ( _id - staticMetaObject()->slotOffset() ) { case 0: languageChange(); break; case 1: init(); break; case 2: destroy(); break; case 3: addBookmark(); break; case 4: currentBookmarkChanged((QListViewItem*)static_QUType_ptr.get(_o+1)); break; case 5: currentIndexChanged((QListBoxItem*)static_QUType_ptr.get(_o+1)); break; case 6: currentTabChanged((const QString&)static_QUType_QString.get(_o+1)); break; case 7: loadIndexFile(); break; case 8: currentContentsChanged((QListViewItem*)static_QUType_ptr.get(_o+1)); break; case 9: removeBookmark(); break; case 10: searchInIndex((const QString&)static_QUType_QString.get(_o+1)); break; case 11: showTopic(); break; case 12: showTopic((int)static_QUType_int.get(_o+1),(QListBoxItem*)static_QUType_ptr.get(_o+2),(const QPoint&)*((const QPoint*)static_QUType_ptr.get(_o+3))); break; case 13: showSearchHelp(); break; case 14: startSearch(); break; case 15: showResultPage((QListBoxItem*)static_QUType_ptr.get(_o+1)); break; case 16: showResultPage((int)static_QUType_int.get(_o+1),(QListBoxItem*)static_QUType_ptr.get(_o+2),(const QPoint&)*((const QPoint*)static_QUType_ptr.get(_o+3))); break; case 17: showResultPage((int)static_QUType_int.get(_o+1),(QListViewItem*)static_QUType_ptr.get(_o+2),(const QPoint&)*((const QPoint*)static_QUType_ptr.get(_o+3))); break; default: return QWidget::qt_invoke( _id, _o ); } return TRUE; }
bool HelpDialog::qt_invoke( int _id, QUObject* _o ) { switch ( _id - staticMetaObject()->slotOffset() ) { case 0: showTopic((int)static_QUType_int.get(_o+1),(QListBoxItem*)static_QUType_ptr.get(_o+2),(const QPoint&)*((const QPoint*)static_QUType_ptr.get(_o+3))); break; case 1: showTopic((int)static_QUType_int.get(_o+1),(QListViewItem*)static_QUType_ptr.get(_o+2),(const QPoint&)*((const QPoint*)static_QUType_ptr.get(_o+3))); break; case 2: showTopic((QListViewItem*)static_QUType_ptr.get(_o+1)); break; case 3: loadIndexFile(); break; case 4: insertContents(); break; case 5: setupFullTextIndex(); break; case 6: currentTabChanged((const QString&)static_QUType_QString.get(_o+1)); break; case 7: currentIndexChanged((QListBoxItem*)static_QUType_ptr.get(_o+1)); break; case 8: showTopic(); break; case 9: searchInIndex((const QString&)static_QUType_QString.get(_o+1)); break; case 10: addBookmark(); break; case 11: removeBookmark(); break; case 12: currentBookmarkChanged((QListViewItem*)static_QUType_ptr.get(_o+1)); break; case 13: currentContentsChanged((QListViewItem*)static_QUType_ptr.get(_o+1)); break; case 14: startSearch(); break; case 15: showSearchHelp(); break; case 16: initialize(); break; case 17: toggleContents(); break; case 18: toggleIndex(); break; case 19: toggleBookmarks(); break; case 20: toggleSearch(); break; case 21: lastWinClosed(); break; case 22: showResultPage((int)static_QUType_int.get(_o+1),(QListBoxItem*)static_QUType_ptr.get(_o+2),(const QPoint&)*((const QPoint*)static_QUType_ptr.get(_o+3))); break; case 23: showResultPage((QListBoxItem*)static_QUType_ptr.get(_o+1)); break; case 24: setIndexingProgress((int)static_QUType_int.get(_o+1)); break; case 25: showItemMenu((QListBoxItem*)static_QUType_ptr.get(_o+1),(const QPoint&)*((const QPoint*)static_QUType_ptr.get(_o+2))); break; case 26: showItemMenu((QListViewItem*)static_QUType_ptr.get(_o+1),(const QPoint&)*((const QPoint*)static_QUType_ptr.get(_o+2))); break; case 27: insertBookmarks(); break; case 28: processEvents(); break; default: return HelpDialogBase::qt_invoke( _id, _o ); } return TRUE; }
/* Search strings in the database */ void Searcher::search(std::string &search, unsigned int resultStart, unsigned int resultEnd, const bool verbose) { this->reset(); if (verbose == true) { cout << "Performing query `" << search << "'" << endl; } /* If resultEnd & resultStart inverted */ if (resultStart > resultEnd) { resultEnd += resultStart; resultStart = resultEnd - resultStart; resultEnd -= resultStart; } /* Try to find results */ if (resultStart != resultEnd) { /* Avoid big researches */ this->resultCountPerPage = resultEnd - resultStart; if (this->resultCountPerPage > 70) { resultEnd = resultStart + 70; this->resultCountPerPage = 70; } /* Perform the search */ this->searchPattern = search; this->resultStart = resultStart; this->resultEnd = resultEnd; string unaccentedSearch = removeAccents(search); searchInIndex(unaccentedSearch, resultStart, resultEnd, verbose); this->resultOffset = this->results.begin(); } return; }