]> git.lyx.org Git - lyx.git/blob - src/frontends/kde/paraextradlg.C
implement getLabelList
[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 using kde_helpers::setSizeHint;
19
20 ParaExtraDialog::ParaExtraDialog (QWidget * parent, char const * name) 
21         : ParaExtraDialogData(parent, name)
22 {
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);
28         
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);
42         
43         QToolTip::add(check_hfillbetween, _("FIXME please !"));
44         QToolTip::add(check_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         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); 
63 }