]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QBibitemDialog.C
dont use pragma impementation and interface anymore
[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
14 #include "ControlBibitem.h"
15
16 #include <qpushbutton.h>
17 #include <qlineedit.h>
18
19 #include "QBibitemDialog.h"
20 #include "QBibitem.h"
21
22
23 QBibitemDialog::QBibitemDialog(QBibitem * form)
24         : QBibitemDialogBase(0, 0, false, 0),
25         form_(form)
26 {
27         connect(okPB, SIGNAL(clicked()),
28                 form, SLOT(slotOK()));
29         connect(closePB, SIGNAL(clicked()),
30                 form, SLOT(slotClose()));
31 }
32
33
34 void QBibitemDialog::change_adaptor()
35 {
36         form_->changed();
37 }
38
39
40 void QBibitemDialog::closeEvent(QCloseEvent *e)
41 {
42         form_->slotWMHide();
43         e->accept();
44 }