2001-03-20 10:14:03 +00:00
|
|
|
/* This file is part of
|
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
|
|
|
* Copyright 2001 The LyX Team.
|
|
|
|
*
|
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* \file ControlLog.h
|
|
|
|
* \author John Levon, moz@compsoc.man.ac.uk
|
|
|
|
* \author Angus Leeming <a.leeming@ic.ac.uk>
|
|
|
|
*/
|
|
|
|
|
2001-04-26 18:40:38 +00:00
|
|
|
#include <config.h>
|
|
|
|
|
2001-03-20 10:14:03 +00:00
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma implementation
|
|
|
|
#endif
|
|
|
|
|
2001-04-26 18:40:38 +00:00
|
|
|
#include "ViewBase.h"
|
|
|
|
#include "ButtonControllerBase.h"
|
2001-03-20 10:14:03 +00:00
|
|
|
#include "ControlLog.h"
|
|
|
|
#include "LyXView.h"
|
|
|
|
#include "Dialogs.h"
|
|
|
|
#include "lyxrc.h"
|
|
|
|
|
|
|
|
using SigC::slot;
|
|
|
|
|
|
|
|
ControlLog::ControlLog(LyXView & lv, Dialogs & d)
|
2001-03-22 11:24:36 +00:00
|
|
|
: ControlDialog<ControlConnectBD>(lv, d)
|
2001-03-20 10:14:03 +00:00
|
|
|
{
|
|
|
|
d_.showLogFile.connect(slot(this, &ControlLog::show));
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2001-03-22 11:24:36 +00:00
|
|
|
void ControlLog::setParams()
|
2001-03-20 10:14:03 +00:00
|
|
|
{
|
|
|
|
logfile_ = lv_.view()->buffer()->getLogName();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2001-03-22 11:24:36 +00:00
|
|
|
void ControlLog::clearParams()
|
2001-03-20 10:14:03 +00:00
|
|
|
{
|
|
|
|
logfile_.second.erase();
|
|
|
|
}
|