]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QErrorListDialog.C
Martin's changes to the Note inset.
[lyx.git] / src / frontends / qt2 / QErrorListDialog.C
1 /**
2  * \file QErrorListDialog.C
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author Alfredo Braunstein
7  *
8  * Full author contact details are available in file CREDITS
9  */
10
11 #include <config.h>
12
13
14 #include "QErrorList.h"
15 #include "QErrorListDialog.h"
16 #include "qt_helpers.h"
17
18 #include <qlistbox.h>
19 #include <qtextbrowser.h>
20 #include <qpushbutton.h>
21
22
23 QErrorListDialog::QErrorListDialog(QErrorList * form)
24         : QErrorListDialogBase(0, 0, false, 0),
25         form_(form)
26 {
27         connect(closePB, SIGNAL(clicked()),
28                 form, SLOT(slotClose()));
29         connect(errorsLB, SIGNAL(returnPressed(QListBoxItem *)),
30                 form, SLOT(slotClose()));
31 }
32
33
34 QErrorListDialog::~QErrorListDialog()
35 {}
36
37
38 void QErrorListDialog::select_adaptor(int item)
39 {
40         form_->select(item);
41 }
42
43
44 void QErrorListDialog::closeEvent(QCloseEvent * e)
45 {
46         form_->slotWMHide();
47         e->accept();
48 }