3 * Copyright 2001 the LyX Team
4 * Read the file COPYING
10 #include "paraextradlg.h"
12 #include "dlg/helpers.h"
18 using kde_helpers::setSizeHint;
20 ParaExtraDialog::ParaExtraDialog (QWidget * parent, char const * name)
21 : ParaExtraDialogData(parent, name)
23 type->insertItem(_("Normal"));
24 type->insertItem(_("Indented paragraph"));
25 type->insertItem(_("Minipage"));
26 type->insertItem(_("Wrap text around floats (floatflt)"));
29 widthvalueunits->insertItem(_("Centimetres"));
30 widthvalueunits->insertItem(_("Inches"));
31 widthvalueunits->insertItem(_("Points (1/72.27 inch)"));
32 widthvalueunits->insertItem(_("Millimetres"));
33 widthvalueunits->insertItem(_("Picas"));
34 widthvalueunits->insertItem(_("ex units"));
35 widthvalueunits->insertItem(_("em units"));
36 widthvalueunits->insertItem(_("Scaled points (1/65536 pt)"));
37 widthvalueunits->insertItem(_("Big/PS points (1/72 inch)"));
38 widthvalueunits->insertItem(_("Didot points"));
39 widthvalueunits->insertItem(_("Cicero points"));
40 widthvalueunits->insertItem(_("Percent of column"));
41 setSizeHint(widthvalueunits);
43 QToolTip::add(hfillbetween, _("FIXME please !"));
44 QToolTip::add(startnewminipage, _("FIXME please !"));
48 ParaExtraDialog::~ParaExtraDialog()
53 void ParaExtraDialog::typeHighlighted(int val)
55 specialalignment->setEnabled(val == 2);
56 top->setEnabled(val == 2);
57 middle->setEnabled(val == 2);
58 bottom->setEnabled(val == 2);
59 widthvalue->setEnabled(val != 0);
60 widthvalueunits->setEnabled(val != 0);
61 hfillbetween->setEnabled(val == 2);
62 startnewminipage->setEnabled(val == 2);