mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 02:49:46 +00:00
e8eb0d773d
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5498 a592a061-630c-0410-9148-cb99ea01b6c8
48 lines
1.1 KiB
C
48 lines
1.1 KiB
C
/**
|
|
* \file FormLog.C
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author John Levon
|
|
*
|
|
* Full author contact details are available in file CREDITS
|
|
*/
|
|
|
|
#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()
|
|
: FormCB<ControlLog, FormBrowser>( _("LaTeX Log"))
|
|
{}
|
|
|
|
|
|
void FormLog::update()
|
|
{
|
|
bool const buildlog = controller().logfile().first == Buffer::buildlog;
|
|
|
|
string const title = buildlog ?
|
|
_("LyX: LaTeX Log") :
|
|
_("LyX: Literate Programming Build Log");
|
|
fl_set_form_title(dialog_->form, title.c_str());
|
|
|
|
fl_clear_browser(dialog_->browser);
|
|
int const valid = fl_load_browser(dialog_->browser,
|
|
controller().logfile().second.c_str());
|
|
if (!valid) {
|
|
string const error = buildlog ?
|
|
_("No LaTeX log file found.") :
|
|
_("No Literate Programming build log file found.");
|
|
fl_add_browser_line(dialog_->browser, error.c_str());
|
|
}
|
|
}
|