1 /* This file is part of
2 * ======================================================
4 * LyX, The Document Processor
6 * Copyright 2001 The LyX Team.
8 * ======================================================
10 * \file ControlVCLog.C
11 * \author John Levon, moz@compsoc.man.ac.uk
12 * \author Angus Leeming <a.leeming@ic.ac.uk>
16 #pragma implementation
20 #include "ControlVCLog.h"
28 ControlVCLog::ControlVCLog(LyXView & lv, Dialogs & d)
29 : ControlConnectBD(lv, d)
31 d_.showVCLogFile.connect(slot(this, &ControlVCLog::show));
35 void ControlVCLog::show()
37 if (!lv_.view()->available())
40 logfile_ = lv_.view()->buffer()->lyxvc.getLogFile();
42 bc().readOnly(isReadonly());
47 void ControlVCLog::update()
49 if (!lv_.view()->available())
52 logfile_ = lv_.view()->buffer()->lyxvc.getLogFile();
54 bc().readOnly(isReadonly());
57 lyx::unlink(logfile_);
61 void ControlVCLog::hide()