]> git.lyx.org Git - features.git/blob - src/frontends/kde/paraextradlg.C
813d4b364dc679e3ae19a002c7e69c76ecb95883
[features.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 <config.h>
11 #include "paraextradlg.h"
12
13 #include <gettext.h>
14
15 #define Inherited ParaExtraDialogData
16
17 ParaExtraDialog::ParaExtraDialog
18 (
19         QWidget* parent,
20         const char* name
21 )
22         :
23         Inherited( 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         
30         widthvalueunits->insertItem(_("Centimetres"));
31         widthvalueunits->insertItem(_("Inches"));
32         widthvalueunits->insertItem(_("Points (1/72.27 inch)"));
33         widthvalueunits->insertItem(_("Millimetres"));
34         widthvalueunits->insertItem(_("Picas"));
35         widthvalueunits->insertItem(_("ex units"));
36         widthvalueunits->insertItem(_("em units"));
37         widthvalueunits->insertItem(_("Scaled points (1/65536 pt)"));
38         widthvalueunits->insertItem(_("Big/PS points (1/72 inch)"));
39         widthvalueunits->insertItem(_("Didot points"));
40         widthvalueunits->insertItem(_("Cicero points"));
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 }