3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
8 * Full author contact details are available in file CREDITS
15 #include "qt_helpers.h"
17 #include "ControlVCLog.h"
20 #include "QVCLogDialog.h"
23 #include <qtextview.h>
24 #include <qpushbutton.h>
26 #include "BoostFormat.h"
28 typedef Qt2CB<ControlVCLog, Qt2DB<QVCLogDialog> > base_class;
32 : base_class(qt_("LyX: Version Control Log"))
37 void QVCLog::build_dialog()
39 dialog_.reset(new QVCLogDialog(this));
41 bcview().setCancel(dialog_->closePB);
45 void QVCLog::update_contents()
48 dialog_->setCaption(toqstr(boost::io::str(boost::format(_("Version control log for %1$s")) % controller().getBufferFileName())));
50 dialog_->setCaption(toqstr(string(_("Version control log for ")) + controller().getBufferFileName()));
52 dialog_->vclogTV->setText("");
55 controller().getVCLogFile(ss);
57 dialog_->vclogTV->setText(toqstr(ss.str()));