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 fl_clear_browser(dialog_->browser);
33 bool buildlog = (controller().logfile().first == Buffer::buildlog);
35 fl_set_form_title(dialog_->form,
36 buildlog ? _("Build log") : _("LaTeX Log"));
37 if (!fl_load_browser(dialog_->browser,
38 controller().logfile().second.c_str()))
39 fl_add_browser_line(dialog_->browser,
40 buildlog ? _("No build log file found")
41 : _("No LaTeX log file found"));