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
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(_("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(boost::io::str(boost::format(_("Version control log for %1$s")) % controller().getBufferFileName()).c_str());
53 dialog_->setCaption(string(_("Version control log for ") + controller().getBufferFileName()).c_str());
55 dialog_->vclogTV->setText("");
58 controller().getVCLogFile(ss);
60 dialog_->vclogTV->setText(ss.str().c_str());