On Tuesday 01 October 2002 9:48 am, Rob Lahaye wrote:
> Hi,
>
> In src/frontends/xforms/FormLog.C I find:
>
> * \author John Levon
> [...]
> 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;
> }
> [...]
> After that, it handles the update for the LaTeX Log file.
>
> But this particular code for Build Log: is it still in use?
> If not, this code can go.
What's your problem with it? It loads the results of a Literate
programming build.
In english:
If the logfile is from a Literate programming build
set the title of the dialog appropriately
load the data into the browser.
if this loading fails
inform the viewer
return
I guess that you could merge the logic of the two but this
smacks of tinkering for the sake of it.
Angus