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