]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormSearch.C
Yet more dialog tweaking from Rob.
[lyx.git] / src / frontends / xforms / FormSearch.C
index 08c9391ff57734baf8e0973672b03e6037df3d18..cd578cb3b201a22f80f909e0b659505e0b77ba34 100644 (file)
@@ -1,9 +1,11 @@
 /**
  * \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>
@@ -20,8 +22,8 @@
 
 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"))
 {}
 
 
@@ -37,6 +39,13 @@ void FormSearch::build()
 }
 
 
+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 ||