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>
21 #include <QCloseEvent>
26 QIndexDialog::QIndexDialog(QIndex * form)
31 connect(okPB, SIGNAL(clicked()),
32 form, SLOT(slotOK()));
33 connect(closePB, SIGNAL(clicked()),
34 form, SLOT(slotClose()));
35 connect( keywordED, SIGNAL( textChanged(const QString&) ),
36 this, SLOT( change_adaptor() ) );
38 keywordED->setWhatsThis( qt_(
39 "The format of the entry in the index.\n"
41 "An entry can be specified as a sub-entry of\n"
42 "another with \"!\":\n"
46 "You can cross-refer to another entry like so:\n"
48 "cars!mileage|see{economy}\n"
50 "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
84 #include "QIndexDialog_moc.cpp"