]> git.lyx.org Git - lyx.git/blob - src/frontends/kde/paraextradlg.C
Move LaTeX and VC logs to GUI-I on xforms
[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 <config.h>
11 #include "paraextradlg.h"
12
13 #include "dlg/helpers.h"
14
15 #include <qtooltip.h>
16
17 #include <gettext.h>
18
19 #ifdef CXX_WORKING_NAMESPACES
20 using kde_helpers::setSizeHint;
21 #endif
22
23 #define Inherited ParaExtraDialogData
24
25 ParaExtraDialog::ParaExtraDialog
26 (
27         QWidget* parent,
28         const char* name
29 )
30         :
31         Inherited( parent, name )
32 {
33         type->insertItem(_("Normal"));
34         type->insertItem(_("Indented paragraph"));
35         type->insertItem(_("Minipage"));
36         type->insertItem(_("Wrap text around floats (floatflt)"));
37         setSizeHint(type);
38         
39         widthvalueunits->insertItem(_("Centimetres"));
40         widthvalueunits->insertItem(_("Inches"));
41         widthvalueunits->insertItem(_("Points (1/72.27 inch)"));
42         widthvalueunits->insertItem(_("Millimetres"));
43         widthvalueunits->insertItem(_("Picas"));
44         widthvalueunits->insertItem(_("ex units"));
45         widthvalueunits->insertItem(_("em units"));
46         widthvalueunits->insertItem(_("Scaled points (1/65536 pt)"));
47         widthvalueunits->insertItem(_("Big/PS points (1/72 inch)"));
48         widthvalueunits->insertItem(_("Didot points"));
49         widthvalueunits->insertItem(_("Cicero points"));
50         widthvalueunits->insertItem(_("Percent of column"));
51         setSizeHint(widthvalueunits);
52         
53         QToolTip::add(hfillbetween, _("FIXME please !"));
54         QToolTip::add(startnewminipage, _("FIXME please !"));
55 }
56
57 ParaExtraDialog::~ParaExtraDialog()
58 {
59 }
60
61 void ParaExtraDialog::typeHighlighted(int val)
62 {
63         specialalignment->setEnabled(val==2);
64         top->setEnabled(val==2);
65         middle->setEnabled(val==2);
66         bottom->setEnabled(val==2);
67         widthvalue->setEnabled(val!=0);
68         widthvalueunits->setEnabled(val!=0);
69         hfillbetween->setEnabled(val==2); 
70         startnewminipage->setEnabled(val==2); 
71 }