+
+2003-05-25 Alfredo Braunstein <abraunst@libero.it>
+
+ * FormErrorList.C: make the error description read-only but
+ selectable. Fix a bug on the initial state.
+
2003-05-23 Angus Leeming <leeming@lyx.org>
* FormExternal.C (update): the default template is the first one
{}
+int dumb_validator(FL_OBJECT *, const char *, const char *, int)
+{
+ return FL_INVALID;
+}
+
+
void FormErrorList::build()
{
dialog_.reset(build_errorlist(this));
- setEnabled(dialog_->input_description, false);
+ fl_set_input_filter(dialog_->input_description, dumb_validator);
}
//xforms return values 1..n
int const choice = int(fl_get_browser(dialog_->browser_errors)) - 1;
goTo(choice);
- return ButtonPolicy::SMI_VALID;
}
return ButtonPolicy::SMI_VALID;
controller().goTo(where);
fl_set_input(dialog_->input_description,
errors[where].description.c_str());
- setEnabled(dialog_->input_description, false);
+ fl_set_input_topline(dialog_->input_description, 1);
}
}
}
fl_select_browser_line(dialog_->browser_errors, 1);
- goTo(1);
+ goTo(0);
}