]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlLog.C
Switch from SigC signals to boost::signals
[lyx.git] / src / frontends / controllers / ControlLog.C
1 /* This file is part of
2  * ======================================================
3  *
4  *           LyX, The Document Processor
5  *
6  *           Copyright 2001 The LyX Team.
7  *
8  * ======================================================
9  *
10  * \file ControlLog.h
11  * \author John Levon, moz@compsoc.man.ac.uk
12  * \author Angus Leeming <a.leeming@ic.ac.uk>
13  */
14
15 #include <config.h>
16
17 #ifdef __GNUG__
18 #pragma implementation
19 #endif
20
21 #include "ControlLog.h"
22 #include "ViewBase.h"
23 #include "ButtonControllerBase.h"
24 #include "Dialogs.h"
25 #include "lyxrc.h"
26 #include "BufferView.h"
27
28 #include "frontends/LyXView.h"
29
30 #include <boost/bind.hpp>
31
32 ControlLog::ControlLog(LyXView & lv, Dialogs & d)
33         : ControlDialogBD(lv, d)
34 {
35         d_.showLogFile = boost::bind(&ControlLog::show, this);
36 }
37
38
39 void ControlLog::setParams()
40 {
41         logfile_ = lv_.view()->buffer()->getLogName();
42 }
43
44
45 void ControlLog::clearParams()
46 {
47         logfile_.second.erase();
48 }