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