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