lyx_mirror/src/frontends/xforms/FormLog.C
Lars Gullik Bjønnes 5fd921e9e6 2002-07-02 Lars Gullik Bj�nnes <larsbj@birdstep.com>
Dialogs.h: remove static from redrawGUI and
toggleTooltips.

And changes because of this.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4517 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-02 19:23:10 +00:00

46 lines
1.0 KiB
C

/**
* \file FormLog.C
* Copyright 2001 The LyX Team.
* See the file COPYING.
*
* \author John Levon, moz@compsoc.man.ac.uk
*/
#include <config.h>
#ifdef __GNUG__
#pragma implementation
#endif
#include "xformsBC.h"
#include "ControlLog.h"
#include "FormLog.h"
#include "forms/form_browser.h"
#include "gettext.h"
#include FORMS_H_LOCATION
FormLog::FormLog(ControlLog & c, Dialogs & d)
: FormCB<ControlLog, FormBrowser>(c, d, _("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"));
}