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 typedef Qt2CB<ControlVCLog, Qt2DB<QVCLogDialog> > base_class;
33 : base_class(_("VCLog"))
38 void QVCLog::build_dialog()
40 dialog_.reset(new QVCLogDialog(this));
42 bc().setCancel(dialog_->closePB);
46 void QVCLog::update_contents()
48 dialog_->setCaption(string(_("Version control log for ") + controller().getBufferFileName()).c_str());
50 dialog_->vclogTV->setText("");
53 controller().getVCLogFile(ss);
55 dialog_->vclogTV->setText(ss.str().c_str());