]> git.lyx.org Git - lyx.git/blob - src/frontends/kde/paraextradlg.C
The big KDE reorg + fi l10n update
[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(_("Percent of column"));
41 }
42
43
44 ParaExtraDialog::~ParaExtraDialog()
45 {
46 }
47
48 void ParaExtraDialog::typeHighlighted(int val)
49 {
50         specialalignment->setEnabled(val==2);
51         top->setEnabled(val==2);
52         middle->setEnabled(val==2);
53         bottom->setEnabled(val==2);
54         widthvalue->setEnabled(val!=0);
55         widthvalueunits->setEnabled(val!=0);
56         hfillbetween->setEnabled(val==2); 
57         startnewminipage->setEnabled(val==2); 
58 }