2001-02-06 17:41:42 +00:00
|
|
|
/* FormLog.C
|
|
|
|
* (C) 2001 LyX Team
|
|
|
|
* John Levon, moz@compsoc.man.ac.uk
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma implementation
|
|
|
|
#endif
|
|
|
|
|
2001-03-20 10:14:03 +00:00
|
|
|
#include <config.h>
|
|
|
|
#include "xformsBC.h"
|
|
|
|
#include "ControlLog.h"
|
2001-02-06 17:41:42 +00:00
|
|
|
#include "FormLog.h"
|
|
|
|
#include "form_browser.h"
|
2001-03-20 10:14:03 +00:00
|
|
|
#include "gettext.h"
|
2001-02-06 17:41:42 +00:00
|
|
|
|
2001-03-20 10:14:03 +00:00
|
|
|
FormLog::FormLog(ControlLog & c)
|
|
|
|
: FormCB<ControlLog, FormBrowser>(c, _("LaTeX Log"))
|
|
|
|
{}
|
2001-02-06 17:41:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
void FormLog::update()
|
|
|
|
{
|
|
|
|
fl_clear_browser(dialog_->browser);
|
|
|
|
|
2001-03-20 10:14:03 +00:00
|
|
|
if (controller().logfile().first == Buffer::buildlog) {
|
2001-02-09 15:54:30 +00:00
|
|
|
fl_set_form_title(dialog_->form, _("Build log"));
|
2001-03-20 10:14:03 +00:00
|
|
|
if (!fl_load_browser(dialog_->browser,
|
|
|
|
controller().logfile().second.c_str()))
|
2001-02-09 15:54:30 +00:00
|
|
|
fl_add_browser_line(dialog_->browser,
|
|
|
|
_("No build log file found"));
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
fl_set_form_title(dialog_->form, _("LaTeX Log"));
|
2001-03-20 10:14:03 +00:00
|
|
|
if (!fl_load_browser(dialog_->browser,
|
|
|
|
controller().logfile().second.c_str()))
|
2001-02-09 15:54:30 +00:00
|
|
|
fl_add_browser_line(dialog_->browser,
|
|
|
|
_("No LaTeX log file found"));
|
2001-02-06 17:41:42 +00:00
|
|
|
}
|