]> git.lyx.org Git - lyx.git/blob - src/frontends/kde/paraextradlg.C
try this for distinguishing inner and outer tabs
[lyx.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 #ifdef CXX_WORKING_NAMESPACES
19 using kde_helpers::setSizeHint;
20 #endif
21
22 ParaExtraDialog::ParaExtraDialog (QWidget * parent, char const * name) 
23         : ParaExtraDialogData(parent, name)
24 {
25         type->insertItem(_("Normal"));
26         type->insertItem(_("Indented paragraph"));
27         type->insertItem(_("Minipage"));
28         type->insertItem(_("Wrap text around floats (floatflt)"));
29         setSizeHint(type);
30         
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);
44         
45         QToolTip::add(hfillbetween, _("FIXME please !"));
46         QToolTip::add(startnewminipage, _("FIXME please !"));
47 }
48
49
50 ParaExtraDialog::~ParaExtraDialog()
51 {
52 }
53
54
55 void ParaExtraDialog::typeHighlighted(int val)
56 {
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); 
65 }