]> git.lyx.org Git - lyx.git/blob - src/frontends/qt3/QNoteDialog.C
Extracted from r14281
[lyx.git] / src / frontends / qt3 / QNoteDialog.C
1 /**
2  * \file QNoteDialog.C
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author Jürgen Spitzmüller
7  *
8  * Full author contact details are available in file CREDITS.
9  */
10
11 #include <config.h>
12
13 #include "QNoteDialog.h"
14 #include "QNote.h"
15
16 #include <qpushbutton.h>
17 #include <qradiobutton.h>
18
19 namespace lyx {
20 namespace frontend {
21
22 QNoteDialog::QNoteDialog(QNote * form)
23         : QNoteDialogBase(0, 0, false, 0),
24         form_(form)
25 {
26         connect(okPB, SIGNAL(clicked()),
27                 form, SLOT(slotOK()));
28         connect(closePB, SIGNAL(clicked()),
29                 form, SLOT(slotClose()));
30         connect(framedRB, SIGNAL(toggled(bool)), this, SLOT(change_adaptor()));
31         connect(shadedRB, SIGNAL(toggled(bool)), this, SLOT(change_adaptor()));
32 }
33
34 void QNoteDialog::closeEvent(QCloseEvent * e)
35 {
36         form_->slotWMHide();
37         e->accept();
38 }
39
40
41 void QNoteDialog::change_adaptor()
42 {
43         form_->changed();
44 }
45
46 } // namespace frontend
47 } // namespace lyx