]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QBibitemDialog.C
Martin's changes to the Note inset.
[lyx.git] / src / frontends / qt2 / QBibitemDialog.C
1 /**
2  * \file QBibitemDialog.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 <qpushbutton.h>
14 #include <qlineedit.h>
15
16 #include "QBibitemDialog.h"
17 #include "QBibitem.h"
18
19
20 QBibitemDialog::QBibitemDialog(QBibitem * form)
21         : QBibitemDialogBase(0, 0, false, 0),
22         form_(form)
23 {
24         connect(okPB, SIGNAL(clicked()),
25                 form, SLOT(slotOK()));
26         connect(closePB, SIGNAL(clicked()),
27                 form, SLOT(slotClose()));
28 }
29
30
31 void QBibitemDialog::change_adaptor()
32 {
33         form_->changed();
34 }
35
36
37 void QBibitemDialog::closeEvent(QCloseEvent *e)
38 {
39         form_->slotWMHide();
40         e->accept();
41 }