]> git.lyx.org Git - features.git/blob - src/frontends/kde/logdlg.C
renaming, fix citation (still no search though)
[features.git] / src / frontends / kde / logdlg.C
1 /**
2  * \file logdlg.C
3  * Copyright 2001 the LyX Team
4  * Read the file COPYING
5  *
6  * \author John Levon
7  */
8
9 #include <config.h>
10 #include <gettext.h>
11  
12 #include "ControlLog.h" 
13 #include "FormLog.h"
14 #include "logdlg.h"
15
16 LogDialog::LogDialog (FormLog * f, QWidget * parent, char const  * name)
17         : LogDialogData(parent, name), form_(f)
18 {
19         line_viewer->setMinimumWidth(50);
20         line_viewer->setMinimumHeight(50);
21 }
22
23
24 void LogDialog::setLogText(string const & text)
25 {
26         setUpdatesEnabled(false);
27         line_viewer->setText(text.c_str());
28         setUpdatesEnabled(true);
29         update();
30 }
31
32 void LogDialog::closePressed()
33 {
34         form_->CancelButton();
35 }
36
37
38 void LogDialog::updatePressed()
39 {
40         // FIXME: hmm 
41         //form_->controller().setParams();
42 }
43
44
45 void LogDialog::closeEvent(QCloseEvent * e)
46 {
47         form_->CancelButton();
48         e->accept();
49 }