]> git.lyx.org Git - features.git/blob - src/frontends/xforms/FormLog.C
Strip out another 180 #includes.
[features.git] / src / frontends / xforms / FormLog.C
1 /**
2  * \file FormLog.C
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author John Levon
7  *
8  * Full author contact details are available in file CREDITS.
9  */
10
11 #include <config.h>
12
13 #include "FormLog.h"
14 #include "ControlLog.h"
15 #include "forms/form_browser.h"
16
17 #include "xformsBC.h"
18
19 #include "lyx_forms.h"
20
21
22 FormLog::FormLog(Dialog & parent)
23         : FormController<ControlLog, FormBrowser>(parent, _("LaTeX Log"))
24 {}
25
26
27 void FormLog::update()
28 {
29         bool const buildlog = controller().logfile().first == Buffer::buildlog;
30
31         string const title = buildlog ?
32                 _("LyX: LaTeX Log") :
33                 _("LyX: Literate Programming Build Log");
34         setTitle(title);
35
36         fl_clear_browser(dialog_->browser);
37         int const valid = fl_load_browser(dialog_->browser,
38                                           controller().logfile().second.c_str());
39         if (!valid) {
40                 string const error = buildlog ?
41                         _("No LaTeX log file found.") :
42                         _("No Literate Programming build log file found.");
43                 fl_add_browser_line(dialog_->browser, error.c_str());
44         }
45 }