3 * John Levon, moz@compsoc.man.ac.uk
8 #include FORMS_H_LOCATION
11 #pragma implementation
15 #include "FormVCLog.h"
16 #include "form_browser.h"
22 FormVCLog::FormVCLog(LyXView * lv, Dialogs * d)
23 : FormBrowser(lv, d, _("Version Control Log"))
25 // let the dialog be shown
26 // This is a permanent connection so we won't bother
27 // storing a copy because we won't be disconnecting.
28 d->showVCLogFile.connect(slot(this, &FormVCLog::show));
32 void FormVCLog::update()
34 if (!dialog_.get() || !lv_->view()->available())
37 const string logfile = lv_->view()->buffer()->lyxvc.getLogFile();
39 fl_clear_browser(dialog_->browser);
41 if (logfile=="" || !fl_load_browser(dialog_->browser, logfile.c_str()))
42 fl_add_browser_line(dialog_->browser, _("No version control log file available"));