]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QIndexDialog.C
The initial merge of the Qt frontend, and the necessary compile fixes.
[lyx.git] / src / frontends / qt2 / QIndexDialog.C
1 /**
2  * \file QIndexDialog.C
3  * Copyright 2001 the LyX Team
4  * Read the file COPYING
5  *
6  * \author John Levon <moz@compsoc.man.ac.uk>
7  */
8
9 #include <config.h>
10
11 #include "gettext.h"
12
13 #include "QIndex.h"
14 #include "QIndexDialog.h"
15  
16 #include <qpushbutton.h>
17 #include <qlineedit.h>
18 #include <qwhatsthis.h>
19
20 QIndexDialog::QIndexDialog(QIndex * form)
21         : QIndexDialogBase(0, 0, false, 0),
22         form_(form)
23 {
24         connect(okPB, SIGNAL(clicked()),
25                 form, SLOT(slotOK()));
26         connect(closePB, SIGNAL(clicked()),
27                 form, SLOT(slotClose()));
28
29         QWhatsThis::add(keywordED, _(
30 "The format of the entry in the index.\n"
31 "\n"
32 "An entry can be specified as a sub-entry of\n"
33 "another with \"!\" :\n"
34 "\n"
35 "cars!mileage\n"
36 "\n"
37 "You can cross-refer to another entry like so :\n"
38 "\n"
39 "cars!mileage|see{economy}\n"
40 "\n"
41 "For further details refer to the local LaTeX\n"
42 "documentation.\n"));
43 }
44
45
46 void QIndexDialog::change_adaptor()
47 {
48         form_->changed();
49 }
50
51
52 void QIndexDialog::closeEvent(QCloseEvent * e)
53 {
54         form_->slotWMHide();
55         e->accept();
56 }