-/* 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
*/
#include <config.h>
-#ifdef __GNUG__
-#pragma implementation
-#endif
-
-#include "ViewBase.h"
-#include "ButtonControllerBase.h"
#include "ControlLog.h"
-#include "LyXView.h"
-#include "Dialogs.h"
-#include "lyxrc.h"
-#include "BufferView.h"
-using SigC::slot;
-ControlLog::ControlLog(LyXView & lv, Dialogs & d)
- : ControlDialogBD(lv, d)
-{
- d_.showLogFile.connect(slot(this, &ControlLog::show));
-}
+ControlLog::ControlLog(Dialog & parent)
+ : Dialog::Controller(parent)
+{}
-void ControlLog::setParams()
+bool ControlLog::initialiseParams(string const &)
{
- logfile_ = lv_.view()->buffer()->getLogName();
+ logfile_ = kernel().buffer()->getLogName();
+ return true;
}