]> git.lyx.org Git - lyx.git/blob - src/frontends/kde/paraextradlg.C
More preference work from Angus
[lyx.git] / src / frontends / kde / paraextradlg.C
1 /**********************************************************************
2
3         --- Qt Architect generated file ---
4
5         File: paraextradlg.C
6         Last generated: Sat Oct 14 00:27:49 2000
7
8  *********************************************************************/
9
10 #include "paraextradlg.h"
11
12 #include <gettext.h>
13
14 #define Inherited ParaExtraDialogData
15
16 ParaExtraDialog::ParaExtraDialog
17 (
18         QWidget* parent,
19         const char* name
20 )
21         :
22         Inherited( parent, name )
23 {
24         type->insertItem(_("Normal"));
25         type->insertItem(_("Indented paragraph"));
26         type->insertItem(_("Minipage"));
27         type->insertItem(_("Wrap text around floats (floatflt)"));
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(_("Math units"));
41         widthvalueunits->insertItem(_("Percent of column"));
42 }
43
44
45 ParaExtraDialog::~ParaExtraDialog()
46 {
47 }
48
49 void ParaExtraDialog::typeHighlighted(int val)
50 {
51         specialalignment->setEnabled(val==2);
52         top->setEnabled(val==2);
53         middle->setEnabled(val==2);
54         bottom->setEnabled(val==2);
55         widthvalue->setEnabled(val!=0);
56         widthvalueunits->setEnabled(val!=0);
57         hfillbetween->setEnabled(val==2); 
58         startnewminipage->setEnabled(val==2); 
59 }