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 #pragma implementation
18 #include "ControlLog.h"
20 #include "forms/form_browser.h"
22 #include FORMS_H_LOCATION
25 : FormCB<ControlLog, FormBrowser>( _("LaTeX Log"))
29 void FormLog::update()
31 bool const buildlog = controller().logfile().first == Buffer::buildlog;
33 string const title = buildlog ?
35 _("LyX: Literate Programming Build Log");
36 fl_set_form_title(dialog_->form, title.c_str());
38 fl_clear_browser(dialog_->browser);
39 int const valid = fl_load_browser(dialog_->browser,
40 controller().logfile().second.c_str());
42 string const error = buildlog ?
43 _("No LaTeX log file found.") :
44 _("No Literate Programming build log file found.");
45 fl_add_browser_line(dialog_->browser, error.c_str());