lyx_mirror/src/frontends/qt2/QVCLog.C
Angus Leeming f239801ae3 Changes due to the removal of using directives from support/std_sstream.h.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7686 a592a061-630c-0410-9148-cb99ea01b6c8
2003-09-05 18:02:24 +00:00

59 lines
1.0 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 "support/std_sstream.h"
#include "qt_helpers.h"
#include "support/lstrings.h"
#include "ControlVCLog.h"
#include "QVCLog.h"
#include "QVCLogDialog.h"
#include "Qt2BC.h"
#include <qtextview.h>
#include <qpushbutton.h>
using namespace lyx::support;
using std::ostringstream;
typedef QController<ControlVCLog, QView<QVCLogDialog> > base_class;
QVCLog::QVCLog(Dialog & parent)
: base_class(parent, _("LyX: Version Control Log"))
{
}
void QVCLog::build_dialog()
{
dialog_.reset(new QVCLogDialog(this));
bcview().setCancel(dialog_->closePB);
}
void QVCLog::update_contents()
{
setTitle(bformat(_("Version control log for %1$s"),
controller().getBufferFileName()));
dialog_->vclogTV->setText("");
ostringstream ss;
controller().getVCLogFile(ss);
dialog_->vclogTV->setText(toqstr(ss.str()));
}