]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlLog.C
The reference dialog now disconnects from the inset on Apply. Its behaviour
[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 #include "BufferView.h"
28
29 using SigC::slot;
30
31 ControlLog::ControlLog(LyXView & lv, Dialogs & d)
32         : ControlDialog<ControlConnectBD>(lv, d)
33 {
34         d_.showLogFile.connect(slot(this, &ControlLog::show));
35 }
36
37
38 void ControlLog::setParams()
39 {
40         logfile_ = lv_.view()->buffer()->getLogName();
41 }
42
43
44 void ControlLog::clearParams()
45 {
46         logfile_.second.erase();
47 }