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"
16 #include "support/lstrings.h"
18 #include "ControlVCLog.h"
21 #include "QVCLogDialog.h"
24 #include <qtextview.h>
25 #include <qpushbutton.h>
27 #include "support/BoostFormat.h"
29 typedef QController<ControlVCLog, QView<QVCLogDialog> > base_class;
32 QVCLog::QVCLog(Dialog & parent)
33 : base_class(parent, _("LyX: Version Control Log"))
38 void QVCLog::build_dialog()
40 dialog_.reset(new QVCLogDialog(this));
42 bcview().setCancel(dialog_->closePB);
46 void QVCLog::update_contents()
48 setTitle(bformat(_("Version control log for %1$s"),
49 controller().getBufferFileName()));
51 dialog_->vclogTV->setText("");
54 controller().getVCLogFile(ss);
56 dialog_->vclogTV->setText(toqstr(ss.str()));