#include "FuncRequest.h"
#include "lyxfind.h"
-#include <QCloseEvent>
#include <QLineEdit>
#include <QShowEvent>
if (box->itemText(i) == text)
return;
- box->addItem(text);
+ box->insertItem(0, text);
}
void GuiSearch::showEvent(QShowEvent * e)
{
+ findPB->setFocus();
findCO->lineEdit()->selectAll();
GuiDialog::showEvent(e);
}
-void GuiSearch::closeEvent(QCloseEvent * e)
-{
- slotClose();
- GuiDialog::closeEvent(e);
-}
-
-
void GuiSearch::findChanged()
{
if (findCO->currentText().isEmpty()) {
bool forward, bool all)
{
docstring const data =
- replace2string(search, replace, casesensitive,
+ replace2string(replace, search, casesensitive,
matchword, all, forward);
dispatch(FuncRequest(LFUN_WORD_REPLACE, data));
}
} // namespace lyx
-#include "GuiSearch_moc.cpp"
+#include "moc_GuiSearch.cpp"