]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/QERTDialog.C
Fix unreported bug related to 3246 by Richard Heck:
[lyx.git] / src / frontends / qt4 / QERTDialog.C
1 /**
2  * \file QERTDialog.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 "QERTDialog.h"
14 #include "QERT.h"
15
16 #include <QPushButton>
17 #include <QCloseEvent>
18
19 namespace lyx {
20 namespace frontend {
21
22 QERTDialog::QERTDialog(QERT * form)
23         : form_(form)
24 {
25         setupUi(this);
26         connect(okPB, SIGNAL(clicked()),
27                 form, SLOT(slotOK()));
28         connect(closePB, SIGNAL(clicked()),
29                 form, SLOT(slotClose()));
30
31     connect( inlineRB, SIGNAL( clicked() ), this, SLOT( change_adaptor() ) );
32     connect( collapsedRB, SIGNAL( clicked() ), this, SLOT( change_adaptor() ) );
33     connect( openRB, SIGNAL( clicked() ), this, SLOT( change_adaptor() ) );
34 }
35
36
37 void QERTDialog::closeEvent(QCloseEvent * e)
38 {
39         form_->slotWMHide();
40         e->accept();
41 }
42
43
44 void QERTDialog::change_adaptor()
45 {
46         form_->changed();
47 }
48
49 } // namespace frontend
50 } // namespace lyx
51
52 #include "QERTDialog_moc.cpp"