/**
* \file FormSearch.C
- * Copyright 2001 The LyX Team.
- * See the file COPYING.
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
- * \author Edwin Leuven, leuven@fee.uva.nl
+ * \author Edwin Leuven
+ *
+ * Full author contact details are available in file CREDITS
*/
#include <config.h>
typedef FormCB<ControlSearch, FormDB<FD_search> > base_class;
-FormSearch::FormSearch(ControlSearch & c)
- : base_class(c, _("LyX: Find and Replace"))
+FormSearch::FormSearch()
+ : base_class(_("Find and Replace"))
{}
}
+void FormSearch::update()
+{
+ fl_set_input_selected(dialog_->input_search, true);
+ fl_set_focus_object(dialog_->form, dialog_->input_search);
+}
+
+
ButtonPolicy::SMInput FormSearch::input(FL_OBJECT * obj, long)
{
if (obj == dialog_->button_findnext ||