2001-08-26 15:34:36 +00:00
|
|
|
/**
|
|
|
|
* \file QBibitemDialog.C
|
|
|
|
* Copyright 2001 the LyX Team
|
|
|
|
* Read the file COPYING
|
|
|
|
*
|
|
|
|
* \author John Levon <moz@compsoc.man.ac.uk>
|
|
|
|
*/
|
|
|
|
|
2002-06-19 03:38:44 +00:00
|
|
|
#include <config.h>
|
|
|
|
|
|
|
|
#include "ControlBibitem.h"
|
|
|
|
|
2001-08-26 15:34:36 +00:00
|
|
|
#include <qpushbutton.h>
|
|
|
|
#include <qlineedit.h>
|
2002-03-21 21:21:28 +00:00
|
|
|
|
2001-08-26 15:34:36 +00:00
|
|
|
#include "QBibitemDialog.h"
|
|
|
|
#include "QBibitem.h"
|
2002-06-19 03:38:44 +00:00
|
|
|
|
2001-08-26 15:34:36 +00:00
|
|
|
QBibitemDialog::QBibitemDialog(QBibitem * form)
|
|
|
|
: QBibitemDialogBase(0, 0, false, 0),
|
|
|
|
form_(form)
|
|
|
|
{
|
|
|
|
connect(okPB, SIGNAL(clicked()),
|
|
|
|
form, SLOT(slotOK()));
|
|
|
|
connect(closePB, SIGNAL(clicked()),
|
|
|
|
form, SLOT(slotClose()));
|
|
|
|
}
|
|
|
|
|
2002-03-21 21:21:28 +00:00
|
|
|
|
2001-08-26 15:34:36 +00:00
|
|
|
void QBibitemDialog::change_adaptor()
|
|
|
|
{
|
|
|
|
form_->changed();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void QBibitemDialog::closeEvent(QCloseEvent *e)
|
|
|
|
{
|
|
|
|
form_->slotWMHide();
|
|
|
|
e->accept();
|
|
|
|
}
|