2 * \file QParagraphDialog.C
3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
14 #include "QParagraphDialog.h"
15 #include "QParagraph.h"
17 #include <qcombobox.h>
18 #include <qlineedit.h>
19 #include <qpushbutton.h>
20 #include <qvalidator.h>
21 #include <qwhatsthis.h>
23 #include "qt_helpers.h"
28 QParagraphDialog::QParagraphDialog(QParagraph * form)
29 : QParagraphDialogBase(0, 0, false, 0),
32 connect(okPB, SIGNAL(clicked()),
33 form_, SLOT(slotOK()));
34 connect(applyPB, SIGNAL(clicked()),
35 form_, SLOT(slotApply()));
36 connect(closePB, SIGNAL(clicked()),
37 form_, SLOT(slotClose()));
40 linespacingValue->setValidator(new QDoubleValidator(linespacingValue));
42 QWhatsThis::add(labelWidth, qt_(
43 "As described in the User Guide, the length of"
44 " this text will determine how wide the label part"
45 " of each item is in environments like List and"
48 " Normally you won't need to set this,"
49 " since the largest label width of all the"
50 " items is used. But if you need to, you can"
56 void QParagraphDialog::closeEvent(QCloseEvent * e)
63 void QParagraphDialog::change_adaptor()
69 void QParagraphDialog::enableLinespacingValue(int)
71 bool const enable = linespacing->currentItem() == 4;
72 linespacingValue->setEnabled(enable);
75 } // namespace frontend
78 #include "QParagraphDialog_moc.cpp"