3 * Copyright 2001 the LyX Team
4 * Read the file COPYING
6 * \author John Levon <moz@compsoc.man.ac.uk>
13 #pragma implementation
18 #include "ControlVCLog.h"
21 #include "QVCLogDialog.h"
24 #include <qtextview.h>
25 #include <qpushbutton.h>
27 typedef Qt2CB<ControlVCLog, Qt2DB<QVCLogDialog> > base_class;
30 : base_class(_("VCLog"))
35 void QVCLog::build_dialog()
37 dialog_.reset(new QVCLogDialog(this));
39 bc().setCancel(dialog_->closePB);
43 void QVCLog::update_contents()
45 dialog_->setCaption(string(_("Version control log for ") + controller().getBufferFileName()).c_str());
47 dialog_->vclogTV->setText("");
51 dialog_->vclogTV->setText(controller().getVCLogFile(ss).str().c_str());