]> git.lyx.org Git - features.git/blob - src/frontends/kde/paraextradlg.C
0b518474737e8694a03f5ed752bbfb797e89b1b5
[features.git] / src / frontends / kde / paraextradlg.C
1 /**
2  * \file paraextradlg.C
3  * Copyright 2001 the LyX Team
4  * Read the file COPYING
5  *
6  * \author John Levon
7  */
8
9 #include <config.h>
10 #include "paraextradlg.h"
11
12 #include "dlg/helpers.h"
13
14 #include <qtooltip.h>
15
16 #include <gettext.h>
17
18 using kde_helpers::setSizeHint;
19
20 ParaExtraDialog::ParaExtraDialog (QWidget * parent, char const * name) 
21         : ParaExtraDialogData(parent, name)
22 {
23         type->insertItem(_("Normal"));
24         type->insertItem(_("Indented paragraph"));
25         type->insertItem(_("Minipage"));
26         type->insertItem(_("Wrap text around floats (floatflt)"));
27         setSizeHint(type);
28         
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);
42         
43         QToolTip::add(hfillbetween, _("FIXME please !"));
44         QToolTip::add(startnewminipage, _("FIXME please !"));
45 }
46
47
48 ParaExtraDialog::~ParaExtraDialog()
49 {
50 }
51
52
53 void ParaExtraDialog::typeHighlighted(int val)
54 {
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); 
63 }