]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlVCLog.C
Controller-view split of Graphics and Index popups.
[lyx.git] / src / frontends / controllers / ControlVCLog.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 ControlVCLog.C
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 "ControlVCLog.h"
21 #include "buffer.h"
22 #include "LyXView.h"
23 #include "Dialogs.h"
24 #include "lyxrc.h"
25
26 using SigC::slot;
27
28 ControlVCLog::ControlVCLog(LyXView & lv, Dialogs & d)
29         : ControlDialog<ControlConnectBD>(lv, d)
30 {
31         d_.showVCLogFile.connect(slot(this, &ControlVCLog::show));
32 }
33
34
35 void ControlVCLog::setParams()
36 {
37         logfile_ = lv_.view()->buffer()->lyxvc.getLogFile();
38 }
39
40
41 void ControlVCLog::clearParams()
42 {
43         logfile_.erase();
44 }