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