3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
8 * Full author contact details are available in file CREDITS.
14 #include "ControlLog.h"
15 #include "forms/form_browser.h"
19 #include "lyx_forms.h"
22 FormLog::FormLog(Dialog & parent)
23 : FormController<ControlLog, FormBrowser>(parent, _("LaTeX Log"))
27 void FormLog::update()
29 bool const buildlog = controller().logfile().first == Buffer::buildlog;
31 string const title = buildlog ?
33 _("LyX: Literate Programming Build Log");
36 fl_clear_browser(dialog_->browser);
37 int const valid = fl_load_browser(dialog_->browser,
38 controller().logfile().second.c_str());
40 string const error = buildlog ?
41 _("No LaTeX log file found.") :
42 _("No Literate Programming build log file found.");
43 fl_add_browser_line(dialog_->browser, error.c_str());