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
14 #pragma implementation
18 #include "qt_helpers.h"
20 #include "ControlVCLog.h"
23 #include "QVCLogDialog.h"
26 #include <qtextview.h>
27 #include <qpushbutton.h>
29 #include "BoostFormat.h"
31 typedef Qt2CB<ControlVCLog, Qt2DB<QVCLogDialog> > base_class;
35 : base_class(qt_("VCLog"))
40 void QVCLog::build_dialog()
42 dialog_.reset(new QVCLogDialog(this));
44 bc().setCancel(dialog_->closePB);
48 void QVCLog::update_contents()
51 dialog_->setCaption(toqstr(boost::io::str(boost::format(_("Version control log for %1$s")) % controller().getBufferFileName())));
53 dialog_->setCaption(toqstr(string(_("Version control log for ")) + controller().getBufferFileName()));
55 dialog_->vclogTV->setText("");
58 controller().getVCLogFile(ss);
60 dialog_->vclogTV->setText(toqstr(ss.str()));