mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-11 16:31:09 +00:00
17c8764e0a
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6651 a592a061-630c-0410-9148-cb99ea01b6c8
59 lines
1.2 KiB
C
59 lines
1.2 KiB
C
/**
|
|
* \file QVCLog.C
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author John Levon
|
|
*
|
|
* Full author contact details are available in file CREDITS
|
|
*/
|
|
|
|
#include <config.h>
|
|
|
|
|
|
#include "Lsstream.h"
|
|
#include "qt_helpers.h"
|
|
#include "LyXView.h"
|
|
#include "ControlVCLog.h"
|
|
|
|
#include "QVCLog.h"
|
|
#include "QVCLogDialog.h"
|
|
#include "Qt2BC.h"
|
|
|
|
#include <qtextview.h>
|
|
#include <qpushbutton.h>
|
|
|
|
#include "support/BoostFormat.h"
|
|
|
|
typedef QController<ControlVCLog, QView<QVCLogDialog> > base_class;
|
|
|
|
|
|
QVCLog::QVCLog(Dialog & parent)
|
|
: base_class(parent, qt_("LyX: Version Control Log"))
|
|
{
|
|
}
|
|
|
|
|
|
void QVCLog::build_dialog()
|
|
{
|
|
dialog_.reset(new QVCLogDialog(this));
|
|
|
|
bcview().setCancel(dialog_->closePB);
|
|
}
|
|
|
|
|
|
void QVCLog::update_contents()
|
|
{
|
|
#if USE_BOOST_FORMAT
|
|
dialog_->setCaption(toqstr(boost::io::str(boost::format(_("Version control log for %1$s")) % controller().getBufferFileName())));
|
|
#else
|
|
dialog_->setCaption(toqstr(string(_("Version control log for ")) + controller().getBufferFileName()));
|
|
#endif
|
|
dialog_->vclogTV->setText("");
|
|
|
|
ostringstream ss;
|
|
controller().getVCLogFile(ss);
|
|
|
|
dialog_->vclogTV->setText(toqstr(ss.str()));
|
|
}
|