3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
8 * Full author contact details are available in file CREDITS.
13 #include "qt_helpers.h"
16 #include "QIndexDialog.h"
18 #include <qpushbutton.h>
19 #include <qlineedit.h>
20 #include <q3whatsthis.h>
22 #include <QCloseEvent>
27 QIndexDialog::QIndexDialog(QIndex * form)
32 connect(okPB, SIGNAL(clicked()),
33 form, SLOT(slotOK()));
34 connect(closePB, SIGNAL(clicked()),
35 form, SLOT(slotClose()));
37 connect( keywordED, SIGNAL( textChanged(const QString&) ), this, SLOT( change_adaptor() ) );
39 Q3WhatsThis::add(keywordED, qt_(
40 "The format of the entry in the index.\n"
42 "An entry can be specified as a sub-entry of\n"
43 "another with \"!\":\n"
47 "You can cross-refer to another entry like so:\n"
49 "cars!mileage|see{economy}\n"
51 "For further details refer to the local LaTeX\n"
56 void QIndexDialog::show()
59 keywordED->setFocus();
63 void QIndexDialog::change_adaptor()
69 void QIndexDialog::reject()
75 void QIndexDialog::closeEvent(QCloseEvent * e)
81 } // namespace frontend