*
* \author Alfredo Braunstein
*
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
*/
#include <config.h>
-
-#include "errorlist.h"
#include "FormErrorList.h"
-#include "xformsBC.h"
-#include "xforms_helpers.h"
#include "ControlErrorList.h"
#include "forms/form_errorlist.h"
-#include "support/lstrings.h" // frontStrip, strip
-#include "debug.h"
-#include "gettext.h"
+
+#include "xformsBC.h"
+#include "xforms_helpers.h"
#include "lyx_forms.h"
{}
+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);
}