]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/QERTDialog.C
enable Font cache only for MacOSX and inline width() for other platform.
[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.h>
17 //Added by qt3to4:
18 #include <QCloseEvent>
19
20 namespace lyx {
21 namespace frontend {
22
23 QERTDialog::QERTDialog(QERT * form)
24         : form_(form)
25 {
26         setupUi(this);
27         connect(okPB, SIGNAL(clicked()),
28                 form, SLOT(slotOK()));
29         connect(closePB, SIGNAL(clicked()),
30                 form, SLOT(slotClose()));
31
32     connect( inlineRB, SIGNAL( toggled(bool) ), this, SLOT( change_adaptor() ) );
33     connect( collapsedRB, SIGNAL( toggled(bool) ), this, SLOT( change_adaptor() ) );
34     connect( openRB, SIGNAL( toggled(bool) ), this, SLOT( change_adaptor() ) );
35 }
36
37
38 void QERTDialog::closeEvent(QCloseEvent * e)
39 {
40         form_->slotWMHide();
41         e->accept();
42 }
43
44
45 void QERTDialog::change_adaptor()
46 {
47         form_->changed();
48 }
49
50 } // namespace frontend
51 } // namespace lyx
52
53 #include "QERTDialog_moc.cpp"