mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-28 12:26:59 +00:00
467323b2b8
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2121 a592a061-630c-0410-9148-cb99ea01b6c8
41 lines
927 B
C
41 lines
927 B
C
/* FormLog.C
|
|
* (C) 2001 LyX Team
|
|
* John Levon, moz@compsoc.man.ac.uk
|
|
*/
|
|
|
|
#ifdef __GNUG__
|
|
#pragma implementation
|
|
#endif
|
|
|
|
#include <config.h>
|
|
#include "xformsBC.h"
|
|
#include "ControlLog.h"
|
|
#include "FormLog.h"
|
|
#include "form_browser.h"
|
|
#include "gettext.h"
|
|
|
|
FormLog::FormLog(ControlLog & c)
|
|
: FormCB<ControlLog, FormBrowser>(c, _("LaTeX Log"))
|
|
{}
|
|
|
|
|
|
void FormLog::update()
|
|
{
|
|
fl_clear_browser(dialog_->browser);
|
|
|
|
if (controller().logfile().first == Buffer::buildlog) {
|
|
fl_set_form_title(dialog_->form, _("Build log"));
|
|
if (!fl_load_browser(dialog_->browser,
|
|
controller().logfile().second.c_str()))
|
|
fl_add_browser_line(dialog_->browser,
|
|
_("No build log file found"));
|
|
return;
|
|
}
|
|
|
|
fl_set_form_title(dialog_->form, _("LaTeX Log"));
|
|
if (!fl_load_browser(dialog_->browser,
|
|
controller().logfile().second.c_str()))
|
|
fl_add_browser_line(dialog_->browser,
|
|
_("No LaTeX log file found"));
|
|
}
|