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>
|
|
|
|
*/
|
|
|
|
|
2001-08-29 02:29:26 +00:00
|
|
|
#include <config.h>
|
|
|
|
|
2001-08-19 13:25:15 +00:00
|
|
|
#include "QIndexDialog.h"
|
|
|
|
#include "Dialogs.h"
|
|
|
|
#include "QIndex.h"
|
2001-08-29 02:29:26 +00:00
|
|
|
#include "gettext.h"
|
2001-08-19 13:25:15 +00:00
|
|
|
|
2001-08-25 03:00:19 +00:00
|
|
|
#include <qpushbutton.h>
|
2001-08-29 02:29:26 +00:00
|
|
|
#include <qlineedit.h>
|
|
|
|
#include <qwhatsthis.h>
|
2001-08-25 03:00:19 +00:00
|
|
|
|
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-29 02:29:26 +00:00
|
|
|
|
|
|
|
QWhatsThis::add(keywordED, _(
|
|
|
|
"The format of the entry in the index.\n"
|
|
|
|
"\n"
|
|
|
|
"An entry can be specified as a sub-entry of\n"
|
|
|
|
"another with \"!\" :\n"
|
|
|
|
"\n"
|
|
|
|
"cars!mileage\n"
|
|
|
|
"\n"
|
|
|
|
"You can cross-refer to another entry like so :\n"
|
|
|
|
"\n"
|
|
|
|
"cars!mileage|see{economy}\n"
|
|
|
|
"\n"
|
|
|
|
"For further details refer to the local LaTeX\n"
|
|
|
|
"documentation.\n"));
|
2001-08-19 13:25:15 +00:00
|
|
|
}
|
|
|
|
|
2002-03-21 21:21:28 +00:00
|
|
|
|
2001-08-23 21:21:50 +00:00
|
|
|
void QIndexDialog::change_adaptor()
|
|
|
|
{
|
|
|
|
form_->changed();
|
|
|
|
}
|
|
|
|
|
2002-03-21 21:21:28 +00:00
|
|
|
|
2001-08-26 18:49:33 +00:00
|
|
|
void QIndexDialog::closeEvent(QCloseEvent * e)
|
2001-08-19 13:25:15 +00:00
|
|
|
{
|
2001-08-21 01:14:54 +00:00
|
|
|
form_->slotWMHide();
|
2001-08-19 13:25:15 +00:00
|
|
|
e->accept();
|
|
|
|
}
|