]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/QLogDialog.C
This new citation dialog follows a new design similar to lyx-1.3:
[lyx.git] / src / frontends / qt4 / QLogDialog.C
1 /**
2  * \file QLogDialog.C
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author John Levon
7  *
8  * Full author contact details are available in file CREDITS.
9  */
10
11 #include <config.h>
12
13 #include "QLogDialog.h"
14 #include "QLog.h"
15
16 #include <qpushbutton.h>
17 //Added by qt3to4:
18 #include <QCloseEvent>
19
20
21 namespace lyx {
22 namespace frontend {
23
24 QLogDialog::QLogDialog(QLog * form)
25         : form_(form)
26 {
27         setupUi(this);
28
29         connect(closePB, SIGNAL(clicked()),
30                 form, SLOT(slotClose()));
31
32     connect( updatePB, SIGNAL( clicked() ), this, SLOT( updateClicked() ) );
33 }
34
35
36 void QLogDialog::closeEvent(QCloseEvent * e)
37 {
38         form_->slotWMHide();
39         e->accept();
40 }
41
42
43 void QLogDialog::updateClicked()
44 {
45         form_->update_contents();
46 }
47
48 } // namespace frontend
49 } // namespace lyx