2001-02-12 14:09:09 +00:00
|
|
|
/**
|
|
|
|
* \file paraextradlg.C
|
|
|
|
* Copyright 2001 the LyX Team
|
|
|
|
* Read the file COPYING
|
|
|
|
*
|
|
|
|
* \author John Levon
|
|
|
|
*/
|
2000-10-17 08:27:35 +00:00
|
|
|
|
2000-12-06 09:49:54 +00:00
|
|
|
#include <config.h>
|
2000-10-17 08:27:35 +00:00
|
|
|
#include "paraextradlg.h"
|
|
|
|
|
2001-01-24 11:43:48 +00:00
|
|
|
#include "dlg/helpers.h"
|
|
|
|
|
|
|
|
#include <qtooltip.h>
|
|
|
|
|
2000-10-17 08:27:35 +00:00
|
|
|
#include <gettext.h>
|
|
|
|
|
2001-01-24 11:43:48 +00:00
|
|
|
using kde_helpers::setSizeHint;
|
|
|
|
|
2001-02-12 14:09:09 +00:00
|
|
|
ParaExtraDialog::ParaExtraDialog (QWidget * parent, char const * name)
|
|
|
|
: ParaExtraDialogData(parent, name)
|
2000-10-17 08:27:35 +00:00
|
|
|
{
|
2001-04-02 15:12:55 +00:00
|
|
|
combo_type->insertItem(_("Normal"));
|
|
|
|
combo_type->insertItem(_("Indented paragraph"));
|
|
|
|
combo_type->insertItem(_("Minipage"));
|
|
|
|
combo_type->insertItem(_("Wrap text around floats (floatflt)"));
|
|
|
|
setSizeHint(combo_type);
|
2000-10-17 08:27:35 +00:00
|
|
|
|
2001-04-02 15:12:55 +00:00
|
|
|
combo_widthvalueunits->insertItem(_("Centimetres"));
|
|
|
|
combo_widthvalueunits->insertItem(_("Inches"));
|
|
|
|
combo_widthvalueunits->insertItem(_("Points (1/72.27 inch)"));
|
|
|
|
combo_widthvalueunits->insertItem(_("Millimetres"));
|
|
|
|
combo_widthvalueunits->insertItem(_("Picas"));
|
|
|
|
combo_widthvalueunits->insertItem(_("ex units"));
|
|
|
|
combo_widthvalueunits->insertItem(_("em units"));
|
|
|
|
combo_widthvalueunits->insertItem(_("Scaled points (1/65536 pt)"));
|
|
|
|
combo_widthvalueunits->insertItem(_("Big/PS points (1/72 inch)"));
|
|
|
|
combo_widthvalueunits->insertItem(_("Didot points"));
|
|
|
|
combo_widthvalueunits->insertItem(_("Cicero points"));
|
|
|
|
combo_widthvalueunits->insertItem(_("Percent of column"));
|
|
|
|
setSizeHint(combo_widthvalueunits);
|
2001-01-24 11:43:48 +00:00
|
|
|
|
2001-04-02 15:12:55 +00:00
|
|
|
QToolTip::add(check_hfillbetween, _("FIXME please !"));
|
|
|
|
QToolTip::add(check_startnewminipage, _("FIXME please !"));
|
2000-10-17 08:27:35 +00:00
|
|
|
}
|
|
|
|
|
2001-02-12 14:09:09 +00:00
|
|
|
|
2000-10-17 08:27:35 +00:00
|
|
|
ParaExtraDialog::~ParaExtraDialog()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2001-02-12 14:09:09 +00:00
|
|
|
|
2000-10-17 08:27:35 +00:00
|
|
|
void ParaExtraDialog::typeHighlighted(int val)
|
|
|
|
{
|
2001-02-12 14:09:09 +00:00
|
|
|
specialalignment->setEnabled(val == 2);
|
2001-04-02 15:12:55 +00:00
|
|
|
radio_top->setEnabled(val == 2);
|
|
|
|
radio_middle->setEnabled(val == 2);
|
|
|
|
radio_bottom->setEnabled(val == 2);
|
|
|
|
line_widthvalue->setEnabled(val != 0);
|
|
|
|
combo_widthvalueunits->setEnabled(val != 0);
|
|
|
|
check_hfillbetween->setEnabled(val == 2);
|
|
|
|
check_startnewminipage->setEnabled(val == 2);
|
2000-10-17 08:27:35 +00:00
|
|
|
}
|