]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QIndexDialog.C
Qt2 latex error dialog
[lyx.git] / src / frontends / qt2 / QIndexDialog.C
1 /**
2  * \file QIndexDialog.C
3  * Copyright 2001 the LyX Team
4  * Read the file COPYING
5  *
6  * \author John Levon <moz@compsoc.man.ac.uk>
7  */
8
9 #include "QIndexDialog.h"
10 #include "Dialogs.h"
11 #include "QIndex.h"
12
13 #include <qwidget.h>
14 #include <qpushbutton.h>
15
16 QIndexDialog::QIndexDialog(QIndex * form)
17         : QIndexDialogBase(0, 0, false, 0),
18         form_(form)
19 {
20         connect(okPB, SIGNAL(clicked()),
21                 form, SLOT(slotOK()));
22         connect(closePB, SIGNAL(clicked()),
23                 form, SLOT(slotClose()));
24 }
25
26  
27 void QIndexDialog::change_adaptor()
28 {
29         form_->changed();
30 }
31
32  
33 void QIndexDialog::closeEvent(QCloseEvent * e)
34 {
35         form_->slotWMHide();
36         e->accept();
37 }