highlight search string on opening the dialog (bug 77)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH-1_2_X@4414 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2002-06-18 15:16:00 +00:00
parent a6d6ffad31
commit 2d876379bd
3 changed files with 15 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2002-06-18 John Levon <moz@compsoc.man.ac.uk>
* FormSearch.h:
* FormSearch.C: highlight the search on opening
the dialog (bug 77)
2002-06-17 Angus Leeming <leeming@lyx.org>
* Toolbar_pimpl.[Ch] (setTooltips): new method. A quick and dirty hack

View File

@ -36,6 +36,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 ||

View File

@ -31,8 +31,8 @@ private:
virtual void apply() {}
/// Build the dialog
virtual void build();
/// not needed.
virtual void update() {}
/// update the dialog
virtual void update();
/// Filter the inputs
virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);