Beispiel #1
0
void SearchPopup::slotReplaceAll() {
//	LOGGER;
	params_.backwards = false;
	params_.replace = true;
	params_.replaceWith = ui.replaceCmb->lineEdit()->text();
	emit replaceAllRequested();
}
Beispiel #2
0
SearchEngine::SearchEngine(Juff::DocHandlerInt* handler, JuffMW* mw) : QObject() {
	mw_ = mw;
	handler_ = handler;
	searchPopup_ = mw_->searchPopup();
	curDoc_ = NULL;
	
	connect(searchPopup_, SIGNAL(searchParamsChanged(const Juff::SearchParams&)), SLOT(onSearchParamsChanged(const Juff::SearchParams&)));
	connect(searchPopup_, SIGNAL(findNextRequested()), SLOT(onFindNext()));
	connect(searchPopup_, SIGNAL(findPrevRequested()), SLOT(onFindPrev()));
	connect(searchPopup_, SIGNAL(replaceNextRequested()), SLOT(onReplaceNext()));
	connect(searchPopup_, SIGNAL(replacePrevRequested()), SLOT(onReplacePrev()));
	connect(searchPopup_, SIGNAL(replaceAllRequested()), SLOT(onReplaceAll()));
	connect(searchPopup_, SIGNAL(closed()), SLOT(onDlgClosed()));
}