]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlLog.C
Clean-up of the button controller.
[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 "ViewBase.h"
22 #include "ButtonControllerBase.h"
23 #include "ControlLog.h"
24 #include "LyXView.h"
25 #include "Dialogs.h"
26 #include "lyxrc.h"
27
28 using SigC::slot;
29
30 ControlLog::ControlLog(LyXView & lv, Dialogs & d)
31         : ControlDialog<ControlConnectBD>(lv, d)
32 {
33         d_.showLogFile.connect(slot(this, &ControlLog::show));
34 }
35
36
37 void ControlLog::setParams()
38 {
39         logfile_ = lv_.view()->buffer()->getLogName();
40 }
41
42
43 void ControlLog::clearParams()
44 {
45         logfile_.second.erase();
46 }