]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlLog.C
Reorganised, cleaned-up and improved documentation of controllers.
[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 #ifdef __GNUG__
16 #pragma implementation
17 #endif
18
19 #include <config.h>
20 #include "ControlLog.h"
21 #include "LyXView.h"
22 #include "Dialogs.h"
23 #include "lyxrc.h"
24
25 using SigC::slot;
26
27 ControlLog::ControlLog(LyXView & lv, Dialogs & d)
28         : ControlDialog<ControlConnectBD>(lv, d)
29 {
30         d_.showLogFile.connect(slot(this, &ControlLog::show));
31 }
32
33
34 void ControlLog::setParams()
35 {
36         logfile_ = lv_.view()->buffer()->getLogName();
37 }
38
39
40 void ControlLog::clearParams()
41 {
42         logfile_.second.erase();
43 }