-/* This file is part of
- * ======================================================
+/**
+ * \file ControlLog.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
- * LyX, The Document Processor
+ * \author John Levon
+ * \author Angus Leeming
*
- * Copyright 2001 The LyX Team.
- *
- * ======================================================
- *
- * \file ControlLog.h
- * \author John Levon, moz@compsoc.man.ac.uk
- * \author Angus Leeming <a.leeming@ic.ac.uk>
+ * Full author contact details are available in file CREDITS
*/
-#ifdef __GNUG__
-#pragma implementation
-#endif
-
#include <config.h>
-#include "ButtonController.h"
-#include "ControlLog.h"
-#include "LyXView.h"
-#include "Dialogs.h"
-#include "lyxrc.h"
-#include "ViewBase.h"
-using std::make_pair;
-using SigC::slot;
-
-ControlLog::ControlLog(LyXView & lv, Dialogs & d)
- : ControlConnectBD(lv, d)
-{
- d_.showLogFile.connect(slot(this, &ControlLog::show));
-}
-
-
-void ControlLog::show()
-{
- if (!lv_.view()->available())
- return;
+#include "ControlLog.h"
- logfile_ = lv_.view()->buffer()->getLogName();
- bc().readOnly(isReadonly());
- view().show();
-}
+ControlLog::ControlLog(Dialog & parent)
+ : Dialog::Controller(parent)
+{}
-void ControlLog::update()
+bool ControlLog::initialiseParams(string const &)
{
- if (!lv_.view()->available())
- return;
-
- logfile_ = lv_.view()->buffer()->getLogName();
-
- bc().readOnly(isReadonly());
- view().update();
+ logfile_ = kernel().buffer()->getLogName();
+ return true;
}
-void ControlLog::hide()
+void ControlLog::clearParams()
{
logfile_.second.erase();
- disconnect();
- view().hide();
}