]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlLog.C
b285d2f38716413e728ae749ba605f410ff36c3f
[lyx.git] / src / frontends / controllers / ControlLog.C
1 // -*- C++ -*-
2 /* This file is part of
3  * ====================================================== 
4  *
5  *           LyX, The Document Processor
6  *
7  *           Copyright 2001 The LyX Team.
8  *
9  * ======================================================
10  *
11  * \file ControlLog.h
12  * \author John Levon, moz@compsoc.man.ac.uk
13  * \author Angus Leeming <a.leeming@ic.ac.uk>
14  */
15
16 #include <config.h>
17
18 #ifdef __GNUG__
19 #pragma implementation
20 #endif
21
22 #include "ViewBase.h"
23 #include "ButtonControllerBase.h"
24 #include "ControlLog.h"
25 #include "LyXView.h"
26 #include "Dialogs.h"
27 #include "lyxrc.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 }