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 combo_type->insertItem(_("Normal"));
24 combo_type->insertItem(_("Indented paragraph"));
25 combo_type->insertItem(_("Minipage"));
26 combo_type->insertItem(_("Wrap text around floats (floatflt)"));
27 setSizeHint(combo_type);
29 combo_widthvalueunits->insertItem(_("Centimetres"));
30 combo_widthvalueunits->insertItem(_("Inches"));
31 combo_widthvalueunits->insertItem(_("Points (1/72.27 inch)"));
32 combo_widthvalueunits->insertItem(_("Millimetres"));
33 combo_widthvalueunits->insertItem(_("Picas"));
34 combo_widthvalueunits->insertItem(_("ex units"));
35 combo_widthvalueunits->insertItem(_("em units"));
36 combo_widthvalueunits->insertItem(_("Scaled points (1/65536 pt)"));
37 combo_widthvalueunits->insertItem(_("Big/PS points (1/72 inch)"));
38 combo_widthvalueunits->insertItem(_("Didot points"));
39 combo_widthvalueunits->insertItem(_("Cicero points"));
40 combo_widthvalueunits->insertItem(_("Percent of column"));
41 setSizeHint(combo_widthvalueunits);
43 QToolTip::add(check_hfillbetween, _("FIXME please !"));
44 QToolTip::add(check_startnewminipage, _("FIXME please !"));
48 ParaExtraDialog::~ParaExtraDialog()
53 void ParaExtraDialog::typeHighlighted(int val)
55 specialalignment->setEnabled(val == 2);
56 radio_top->setEnabled(val == 2);
57 radio_middle->setEnabled(val == 2);
58 radio_bottom->setEnabled(val == 2);
59 line_widthvalue->setEnabled(val != 0);
60 combo_widthvalueunits->setEnabled(val != 0);
61 check_hfillbetween->setEnabled(val == 2);
62 check_startnewminipage->setEnabled(val == 2);