2001-08-19 13:25:15 +00:00
|
|
|
/**
|
|
|
|
* \file QIndexDialog.C
|
|
|
|
* Copyright 2001 the LyX Team
|
|
|
|
* Read the file COPYING
|
|
|
|
*
|
|
|
|
* \author John Levon <moz@compsoc.man.ac.uk>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "QIndexDialog.h"
|
|
|
|
#include "Dialogs.h"
|
|
|
|
#include "QIndex.h"
|
|
|
|
|
2001-08-25 03:00:19 +00:00
|
|
|
#include <qwidget.h>
|
|
|
|
#include <qpushbutton.h>
|
|
|
|
|
2001-08-21 01:14:54 +00:00
|
|
|
QIndexDialog::QIndexDialog(QIndex * form)
|
|
|
|
: QIndexDialogBase(0, 0, false, 0),
|
2001-08-19 13:25:15 +00:00
|
|
|
form_(form)
|
|
|
|
{
|
2001-08-25 03:00:19 +00:00
|
|
|
connect(okPB, SIGNAL(clicked()),
|
|
|
|
form, SLOT(slotOK()));
|
|
|
|
connect(closePB, SIGNAL(clicked()),
|
|
|
|
form, SLOT(slotClose()));
|
2001-08-19 13:25:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
QIndexDialog::~QIndexDialog()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2001-08-23 21:21:50 +00:00
|
|
|
void QIndexDialog::change_adaptor()
|
|
|
|
{
|
|
|
|
form_->changed();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2001-08-19 13:25:15 +00:00
|
|
|
void QIndexDialog::closeEvent(QCloseEvent *e)
|
|
|
|
{
|
2001-08-21 01:14:54 +00:00
|
|
|
form_->slotWMHide();
|
2001-08-19 13:25:15 +00:00
|
|
|
e->accept();
|
|
|
|
}
|