Big doc dialog reorganisation

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6609 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2003-03-28 17:19:49 +00:00
parent be4fc62a1f
commit 92b7cb5473
22 changed files with 1685 additions and 1298 deletions

View File

@ -1,3 +1,33 @@
2003-03-28 John Levon <levon@movementarian.org>
* QFloat.C:
* QFloatDialog.h:
* QFloatDialog.C:
* ui/QFloatDialog.ui:
* Makefile.dialogs:
* moc/Makefile.am:
* floatplacement.h:
* floatplacement.C: move the float code into its
own widget
* QDocument.C:
* QDocumentDialog.h:
* QDocumentDialog.C: use that widget
* Makefile.dialogs:
* QDocument.C:
* QDocumentDialog.h:
* QDocumentDialog.C:
* ui/QDocumentDialogBase.ui:
* ui/ClassModuleBase.ui:
* ui/PaperModuleBase.ui:
* ui/PackagesModuleBase.ui:
* ui/MathsModuleBase.ui:
* ui/LatexModuleBase.ui:
* ui/PageLayoutModuleBase.ui:
* ui/TextLayoutModuleBase.ui: big re-organisation
of the doc dialog panes
2003-03-28 John Levon <levon@movementarian.org>
* panelstack.C: make sure the first panel is visible

View File

@ -3,12 +3,13 @@
UIFILES = \
BiblioModuleBase.ui \
BulletsModuleBase.ui \
ClassModuleBase.ui \
TextLayoutModuleBase.ui \
LanguageModuleBase.ui \
LaTeXModuleBase.ui \
MarginsModuleBase.ui \
NumberingModuleBase.ui \
PackagesModuleBase.ui \
PaperModuleBase.ui \
MathsModuleBase.ui \
PageLayoutModuleBase.ui \
PreambleModuleBase.ui \
QAboutDialogBase.ui \
QAskForTextDialog.ui \
@ -66,6 +67,7 @@ MOCFILES = \
BulletsModule.C BulletsModule.h \
emptytable.C emptytable.h \
FileDialog_private.C FileDialog_private.h \
floatplacement.C floatplacement.h \
iconpalette.C iconpalette.h \
io_callback.C io_callback.h \
lengthcombo.C lengthcombo.h \

View File

@ -30,6 +30,7 @@
#include "vspace.h"
#include "bufferparams.h"
#include "qt_helpers.h"
#include "floatplacement.h"
#include <qpushbutton.h>
#include <qmultilineedit.h>
@ -101,11 +102,11 @@ void QDocument::build_dialog()
// packages
for (int n = 0; tex_graphics[n][0]; ++n) {
QString enc = tex_graphics[n];
dialog_->packagesModule->psdriverCO->insertItem(enc);
dialog_->latexModule->psdriverCO->insertItem(enc);
}
// paper
QComboBox * cb = dialog_->paperModule->papersizeCO;
QComboBox * cb = dialog_->pageLayoutModule->papersizeCO;
cb->insertItem(qt_("Default"));
cb->insertItem(qt_("Custom"));
cb->insertItem(qt_("US letter"));
@ -121,37 +122,37 @@ void QDocument::build_dialog()
// layout
for (LyXTextClassList::const_iterator cit = textclasslist.begin();
cit != textclasslist.end(); ++cit) {
dialog_->layoutModule->classCO->insertItem(toqstr(cit->description()));
dialog_->latexModule->classCO->insertItem(toqstr(cit->description()));
}
for (int n = 0; tex_fonts[n][0]; ++n) {
QString font = tex_fonts[n];
dialog_->layoutModule->fontsCO->insertItem(font);
dialog_->textLayoutModule->fontsCO->insertItem(font);
}
dialog_->layoutModule->fontsizeCO->insertItem(qt_("default"));
dialog_->layoutModule->fontsizeCO->insertItem(qt_("10"));
dialog_->layoutModule->fontsizeCO->insertItem(qt_("11"));
dialog_->layoutModule->fontsizeCO->insertItem(qt_("12"));
dialog_->textLayoutModule->fontsizeCO->insertItem(qt_("default"));
dialog_->textLayoutModule->fontsizeCO->insertItem(qt_("10"));
dialog_->textLayoutModule->fontsizeCO->insertItem(qt_("11"));
dialog_->textLayoutModule->fontsizeCO->insertItem(qt_("12"));
dialog_->layoutModule->skipCO->insertItem(qt_("SmallSkip"));
dialog_->layoutModule->skipCO->insertItem(qt_("MedSkip"));
dialog_->layoutModule->skipCO->insertItem(qt_("BigSkip"));
dialog_->layoutModule->skipCO->insertItem(qt_("Length"));
dialog_->textLayoutModule->skipCO->insertItem(qt_("SmallSkip"));
dialog_->textLayoutModule->skipCO->insertItem(qt_("MedSkip"));
dialog_->textLayoutModule->skipCO->insertItem(qt_("BigSkip"));
dialog_->textLayoutModule->skipCO->insertItem(qt_("Length"));
dialog_->layoutModule->pagestyleCO->insertItem(qt_("default"));
dialog_->layoutModule->pagestyleCO->insertItem(qt_("empty"));
dialog_->layoutModule->pagestyleCO->insertItem(qt_("plain"));
dialog_->layoutModule->pagestyleCO->insertItem(qt_("headings"));
dialog_->layoutModule->pagestyleCO->insertItem(qt_("fancy"));
dialog_->pageLayoutModule->pagestyleCO->insertItem(qt_("default"));
dialog_->pageLayoutModule->pagestyleCO->insertItem(qt_("empty"));
dialog_->pageLayoutModule->pagestyleCO->insertItem(qt_("plain"));
dialog_->pageLayoutModule->pagestyleCO->insertItem(qt_("headings"));
dialog_->pageLayoutModule->pagestyleCO->insertItem(qt_("fancy"));
dialog_->layoutModule->lspacingCO->insertItem(
dialog_->textLayoutModule->lspacingCO->insertItem(
qt_("Single"), Spacing::Single);
dialog_->layoutModule->lspacingCO->insertItem(
dialog_->textLayoutModule->lspacingCO->insertItem(
qt_("OneHalf"), Spacing::Onehalf);
dialog_->layoutModule->lspacingCO->insertItem(
dialog_->textLayoutModule->lspacingCO->insertItem(
qt_("Double"), Spacing::Double);
dialog_->layoutModule->lspacingCO->insertItem(
dialog_->textLayoutModule->lspacingCO->insertItem(
qt_("Custom"), Spacing::Other);
// margins
@ -242,12 +243,12 @@ void QDocument::apply()
// packages
params.graphicsDriver =
fromqstr(dialog_->packagesModule->psdriverCO->currentText());
fromqstr(dialog_->latexModule->psdriverCO->currentText());
if (dialog_->packagesModule->amsautoCB->isChecked()) {
if (dialog_->mathsModule->amsautoCB->isChecked()) {
params.use_amsmath = BufferParams::AMS_AUTO;
} else {
if (dialog_->packagesModule->amsCB->isChecked())
if (dialog_->mathsModule->amsCB->isChecked())
params.use_amsmath = BufferParams::AMS_ON;
else
params.use_amsmath = BufferParams::AMS_OFF;
@ -255,18 +256,18 @@ void QDocument::apply()
// layout
params.textclass =
dialog_->layoutModule->classCO->currentItem();
dialog_->latexModule->classCO->currentItem();
params.fonts =
fromqstr(dialog_->layoutModule->fontsCO->currentText());
fromqstr(dialog_->textLayoutModule->fontsCO->currentText());
params.fontsize =
fromqstr(dialog_->layoutModule->fontsizeCO->currentText());
fromqstr(dialog_->textLayoutModule->fontsizeCO->currentText());
params.pagestyle =
fromqstr(dialog_->layoutModule->pagestyleCO->currentText());
fromqstr(dialog_->pageLayoutModule->pagestyleCO->currentText());
switch (dialog_->layoutModule->lspacingCO->currentItem()) {
switch (dialog_->textLayoutModule->lspacingCO->currentItem()) {
case 0:
params.spacing.set(Spacing::Single);
break;
@ -278,18 +279,23 @@ void QDocument::apply()
break;
case 3:
params.spacing.set(Spacing::Other,
dialog_->layoutModule->
dialog_->textLayoutModule->
lspacingLE->text().toFloat()
);
break;
}
if (dialog_->layoutModule->indentRB->isChecked())
if (dialog_->textLayoutModule->twoColumnCB->isChecked())
params.columns = 2;
else
params.columns = 1;
if (dialog_->textLayoutModule->indentRB->isChecked())
params.paragraph_separation = BufferParams::PARSEP_INDENT;
else
params.paragraph_separation = BufferParams::PARSEP_SKIP;
switch (dialog_->layoutModule->skipCO->currentItem()) {
switch (dialog_->textLayoutModule->skipCO->currentItem()) {
case 0:
params.setDefSkip(VSpace(VSpace::SMALLSKIP));
break;
@ -302,10 +308,10 @@ void QDocument::apply()
case 3:
{
LyXLength::UNIT unit =
dialog_->layoutModule->skipLengthCO->
dialog_->textLayoutModule->skipLengthCO->
currentLengthItem();
double length =
dialog_->layoutModule->skipLE->text().toDouble();
dialog_->textLayoutModule->skipLE->text().toDouble();
VSpace vs = VSpace(LyXGlueLength(LyXLength(length,unit)));
params.setDefSkip(vs);
break;
@ -318,32 +324,26 @@ void QDocument::apply()
}
params.options =
fromqstr(dialog_->layoutModule->optionsLE->text());
fromqstr(dialog_->latexModule->optionsLE->text());
params.float_placement =
fromqstr(dialog_->layoutModule->floatPlacementLE->text());
params.float_placement = dialog_->floatModule->get();
// paper
params.papersize2 =
dialog_->paperModule->papersizeCO->currentItem();
dialog_->pageLayoutModule->papersizeCO->currentItem();
params.paperwidth = widgetsToLength(dialog_->paperModule->paperwidthLE,
dialog_->paperModule->paperwidthUnitCO);
params.paperwidth = widgetsToLength(dialog_->pageLayoutModule->paperwidthLE,
dialog_->pageLayoutModule->paperwidthUnitCO);
params.paperheight = widgetsToLength(dialog_->paperModule->paperheightLE,
dialog_->paperModule->paperheightUnitCO);
params.paperheight = widgetsToLength(dialog_->pageLayoutModule->paperheightLE,
dialog_->pageLayoutModule->paperheightUnitCO);
if (dialog_->paperModule->twoColumnCB->isChecked())
params.columns = 2;
else
params.columns = 1;
if (dialog_->paperModule->facingPagesCB->isChecked())
if (dialog_->pageLayoutModule->facingPagesCB->isChecked())
params.sides = LyXTextClass::TwoSides;
else
params.sides = LyXTextClass::OneSide;
if (dialog_->paperModule->landscapeRB->isChecked())
if (dialog_->pageLayoutModule->landscapeRB->isChecked())
params.orientation = BufferParams::ORIENTATION_LANDSCAPE;
else
params.orientation = BufferParams::ORIENTATION_PORTRAIT;
@ -479,18 +479,18 @@ void QDocument::update_contents()
// packages
QString text = toqstr(params.graphicsDriver);
int nitem = dialog_->packagesModule->psdriverCO->count();
int nitem = dialog_->latexModule->psdriverCO->count();
for (int n = 0; n < nitem ; ++n) {
QString enc = tex_graphics[n];
if (enc == text) {
dialog_->packagesModule->psdriverCO->setCurrentItem(n);
dialog_->latexModule->psdriverCO->setCurrentItem(n);
}
}
dialog_->packagesModule->amsCB->setChecked(
dialog_->mathsModule->amsCB->setChecked(
params.use_amsmath == BufferParams::AMS_ON);
dialog_->packagesModule->amsautoCB->setChecked(
dialog_->mathsModule->amsautoCB->setChecked(
params.use_amsmath == BufferParams::AMS_AUTO);
switch (params.spacing.getSpace()) {
@ -502,10 +502,10 @@ void QDocument::update_contents()
// layout
for (int n = 0; n<dialog_->layoutModule->classCO->count(); ++n) {
if (dialog_->layoutModule->classCO->text(n) ==
for (int n = 0; n<dialog_->latexModule->classCO->count(); ++n) {
if (dialog_->latexModule->classCO->text(n) ==
toqstr(controller().textClass().description())) {
dialog_->layoutModule->classCO->setCurrentItem(n);
dialog_->latexModule->classCO->setCurrentItem(n);
break;
}
}
@ -518,23 +518,23 @@ void QDocument::update_contents()
for (int n = 0; tex_fonts[n][0]; ++n) {
if (tex_fonts[n] == params.fonts) {
dialog_->layoutModule->fontsCO->setCurrentItem(n);
dialog_->textLayoutModule->fontsCO->setCurrentItem(n);
break;
}
}
dialog_->layoutModule->lspacingCO->setCurrentItem(nitem);
dialog_->textLayoutModule->lspacingCO->setCurrentItem(nitem);
if (params.spacing.getSpace() == Spacing::Other) {
dialog_->layoutModule->lspacingLE->setText(
dialog_->textLayoutModule->lspacingLE->setText(
toqstr(tostr(params.spacing.getValue())));
dialog_->setLSpacing(3);
}
if (params.paragraph_separation
== BufferParams::PARSEP_INDENT) {
dialog_->layoutModule->indentRB->setChecked(true);
dialog_->textLayoutModule->indentRB->setChecked(true);
} else {
dialog_->layoutModule->skipRB->setChecked(true);
dialog_->textLayoutModule->skipRB->setChecked(true);
}
int skip = 0;
@ -552,47 +552,50 @@ void QDocument::update_contents()
{
skip = 3;
string const length = params.getDefSkip().asLyXCommand();
dialog_->layoutModule->skipLengthCO->setCurrentItem(LyXLength(length).unit());
dialog_->layoutModule->skipLE->setText(toqstr(tostr(LyXLength(length).value())));
dialog_->textLayoutModule->skipLengthCO->setCurrentItem(LyXLength(length).unit());
dialog_->textLayoutModule->skipLE->setText(toqstr(tostr(LyXLength(length).value())));
break;
}
default:
skip = 0;
break;
}
dialog_->layoutModule->skipCO->setCurrentItem(skip);
dialog_->textLayoutModule->skipCO->setCurrentItem(skip);
dialog_->setSkip(skip);
dialog_->textLayoutModule->twoColumnCB->setChecked(
params.columns == 2);
if (!params.options.empty()) {
dialog_->layoutModule->optionsLE->setText(
dialog_->latexModule->optionsLE->setText(
toqstr(params.options));
} else {
dialog_->layoutModule->optionsLE->setText("");
dialog_->latexModule->optionsLE->setText("");
}
dialog_->floatModule->set(params.float_placement);
// paper
int const psize = params.papersize2;
dialog_->paperModule->papersizeCO->setCurrentItem(psize);
dialog_->pageLayoutModule->papersizeCO->setCurrentItem(psize);
dialog_->setMargins(psize);
dialog_->setCustomPapersize(psize);
bool const landscape =
params.orientation == BufferParams::ORIENTATION_LANDSCAPE;
dialog_->paperModule->landscapeRB->setChecked(landscape);
dialog_->paperModule->portraitRB->setChecked(!landscape);
dialog_->pageLayoutModule->landscapeRB->setChecked(landscape);
dialog_->pageLayoutModule->portraitRB->setChecked(!landscape);
dialog_->paperModule->facingPagesCB->setChecked(
dialog_->pageLayoutModule->facingPagesCB->setChecked(
params.sides == LyXTextClass::TwoSides);
dialog_->paperModule->twoColumnCB->setChecked(
params.columns == 2);
lengthToWidgets(dialog_->paperModule->paperwidthLE,
dialog_->paperModule->paperwidthUnitCO, params.paperwidth, defaultUnit);
lengthToWidgets(dialog_->pageLayoutModule->paperwidthLE,
dialog_->pageLayoutModule->paperwidthUnitCO, params.paperwidth, defaultUnit);
lengthToWidgets(dialog_->paperModule->paperheightLE,
dialog_->paperModule->paperheightUnitCO, params.paperheight, defaultUnit);
lengthToWidgets(dialog_->pageLayoutModule->paperheightLE,
dialog_->pageLayoutModule->paperheightUnitCO, params.paperheight, defaultUnit);
// margins
@ -642,7 +645,7 @@ void QDocument::useClassDefaults()
{
BufferParams & params = controller().params();
params.textclass = dialog_->layoutModule->classCO->currentItem();
params.textclass = dialog_->latexModule->classCO->currentItem();
params.useClassDefaults();
update_contents();
}

View File

@ -17,9 +17,10 @@
#include "QDocumentDialog.h"
#include "ui/ClassModuleBase.h"
#include "ui/PackagesModuleBase.h"
#include "ui/PaperModuleBase.h"
#include "ui/TextLayoutModuleBase.h"
#include "ui/MathsModuleBase.h"
#include "ui/LaTeXModuleBase.h"
#include "ui/PageLayoutModuleBase.h"
#include "ui/LanguageModuleBase.h"
#include "ui/BulletsModuleBase.h"
#include "BulletsModule.h"
@ -28,6 +29,7 @@
#include "ui/MarginsModuleBase.h"
#include "ui/PreambleModuleBase.h"
#include "panelstack.h"
#include "floatplacement.h"
#include "Spacing.h"
#include "support/lstrings.h"
@ -60,26 +62,30 @@ QDocumentDialog::QDocumentDialog(QDocument * form)
connect(restorePB, SIGNAL(clicked()),
form, SLOT(slotRestore()));
layoutModule = new ClassModuleBase(this);
paperModule = new PaperModuleBase(this);
textLayoutModule = new TextLayoutModuleBase(this);
pageLayoutModule = new PageLayoutModuleBase(this);
marginsModule = new MarginsModuleBase(this);
langModule = new LanguageModuleBase(this);
bulletsModule = new BulletsModule(this);
numberingModule = new NumberingModuleBase(this);
biblioModule = new BiblioModuleBase(this);
packagesModule = new PackagesModuleBase(this);
mathsModule = new MathsModuleBase(this);
floatModule = new FloatPlacement(this, "floatplacement");
latexModule = new LaTeXModuleBase(this);
preambleModule = new PreambleModuleBase(this);
docPS->addPanel(layoutModule, _("Layout"));
docPS->addPanel(paperModule, _("Paper"));
docPS->addPanel(marginsModule, _("Margins"));
docPS->addPanel(latexModule, _("Document Class"));
docPS->addPanel(textLayoutModule, _("Text Layout"));
docPS->addPanel(pageLayoutModule, _("Page Layout"));
docPS->addPanel(marginsModule, _("Page Margins"));
docPS->addPanel(langModule, _("Language"));
docPS->addPanel(numberingModule, _("Table of Contents"));
docPS->addPanel(biblioModule, _("Bibliography"));
docPS->addPanel(packagesModule, _("LaTeX packages"));
docPS->addPanel(mathsModule, _("Math options"));
docPS->addPanel(floatModule, _("Float Placement"));
docPS->addPanel(bulletsModule, _("Bullets"));
docPS->addPanel(preambleModule, _("LaTeX Preamble"));
docPS->setCurrentPanel(_("Layout"));
docPS->setCurrentPanel(_("Document Class"));
// preamble
connect(preambleModule->preambleMLE, SIGNAL(textChanged()), this, SLOT(change_adaptor()));
@ -96,28 +102,30 @@ QDocumentDialog::QDocumentDialog(QDocument * form)
// numbering
connect(numberingModule->sectionnrDepthSB, SIGNAL(valueChanged(int)), this, SLOT(change_adaptor()));
connect(numberingModule->tocDepthSB, SIGNAL(valueChanged(int)), this, SLOT(change_adaptor()));
// packages
connect(packagesModule->amsCB, SIGNAL(toggled(bool)), this, SLOT(change_adaptor()));
connect(packagesModule->psdriverCO, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
// layout
connect(layoutModule->classCO, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
connect(layoutModule->optionsLE, SIGNAL(textChanged(const QString&)), this, SLOT(change_adaptor()));
connect(layoutModule->pagestyleCO, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
connect(layoutModule->fontsCO, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
connect(layoutModule->fontsizeCO, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
connect(layoutModule->lspacingCO, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
connect(layoutModule->lspacingCO, SIGNAL(activated(int)), this, SLOT(setLSpacing(int)));
connect(layoutModule->lspacingLE, SIGNAL(textChanged(const QString&)), this, SLOT(change_adaptor()));
connect(layoutModule->floatPlacementLE, SIGNAL(textChanged(const QString&)), this, SLOT(change_adaptor()));
connect(layoutModule->skipRB, SIGNAL(toggled(bool)), this, SLOT(change_adaptor()));
connect(layoutModule->indentRB, SIGNAL(toggled(bool)), this, SLOT(change_adaptor()));
connect(layoutModule->skipCO, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
connect(layoutModule->skipLE, SIGNAL(textChanged(const QString&)), this, SLOT(change_adaptor()));
connect(layoutModule->skipLengthCO, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
connect(layoutModule->classCO, SIGNAL(activated(int)), this, SLOT(classChanged()));
connect(layoutModule->skipCO, SIGNAL(activated(int)), this, SLOT(setSkip(int)));
connect(layoutModule->skipRB, SIGNAL(toggled(bool)), this, SLOT(enableSkip(bool)));
// maths
connect(mathsModule->amsCB, SIGNAL(toggled(bool)), this, SLOT(change_adaptor()));
connect(mathsModule->amsautoCB, SIGNAL(toggled(bool)), this, SLOT(change_adaptor()));
// float
connect(floatModule, SIGNAL(changed()), this, SLOT(change_adaptor()));
// latex class
connect(latexModule->classCO, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
connect(latexModule->optionsLE, SIGNAL(textChanged(const QString&)), this, SLOT(change_adaptor()));
connect(latexModule->psdriverCO, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
connect(latexModule->classCO, SIGNAL(activated(int)), this, SLOT(classChanged()));
// text layout
connect(textLayoutModule->fontsCO, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
connect(textLayoutModule->fontsizeCO, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
connect(textLayoutModule->lspacingCO, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
connect(textLayoutModule->lspacingCO, SIGNAL(activated(int)), this, SLOT(setLSpacing(int)));
connect(textLayoutModule->lspacingLE, SIGNAL(textChanged(const QString&)), this, SLOT(change_adaptor()));
connect(textLayoutModule->skipRB, SIGNAL(toggled(bool)), this, SLOT(change_adaptor()));
connect(textLayoutModule->indentRB, SIGNAL(toggled(bool)), this, SLOT(change_adaptor()));
connect(textLayoutModule->skipCO, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
connect(textLayoutModule->skipLE, SIGNAL(textChanged(const QString&)), this, SLOT(change_adaptor()));
connect(textLayoutModule->skipLengthCO, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
connect(textLayoutModule->skipCO, SIGNAL(activated(int)), this, SLOT(setSkip(int)));
connect(textLayoutModule->skipRB, SIGNAL(toggled(bool)), this, SLOT(enableSkip(bool)));
connect(textLayoutModule->twoColumnCB, SIGNAL(toggled(bool)), this, SLOT(change_adaptor()));
// margins
connect(marginsModule->marginCO, SIGNAL(activated(int)), this, SLOT(setCustomMargins(int)));
@ -137,21 +145,20 @@ QDocumentDialog::QDocumentDialog(QDocument * form)
connect(marginsModule->footskipLE, SIGNAL(textChanged(const QString&)), this, SLOT(change_adaptor()));
connect(marginsModule->footskipUnit, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
// paper
connect(paperModule->papersizeCO, SIGNAL(activated(int)), this, SLOT(setMargins(int)));
connect(paperModule->papersizeCO, SIGNAL(activated(int)), this, SLOT(setCustomPapersize(int)));
connect(paperModule->papersizeCO, SIGNAL(activated(int)), this, SLOT(setCustomPapersize(int)));
connect(paperModule->portraitRB, SIGNAL(toggled(bool)), this, SLOT(portraitChanged()));
connect(paperModule->papersizeCO, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
connect(paperModule->paperheightLE, SIGNAL(textChanged(const QString&)), this, SLOT(change_adaptor()));
connect(paperModule->paperwidthLE, SIGNAL(textChanged(const QString&)), this, SLOT(change_adaptor()));
connect(paperModule->paperwidthUnitCO, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
connect(paperModule->paperheightUnitCO, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
connect(paperModule->portraitRB, SIGNAL(toggled(bool)), this, SLOT(change_adaptor()));
connect(paperModule->landscapeRB, SIGNAL(toggled(bool)), this, SLOT(change_adaptor()));
connect(paperModule->twoColumnCB, SIGNAL(toggled(bool)), this, SLOT(change_adaptor()));
connect(paperModule->facingPagesCB, SIGNAL(toggled(bool)), this, SLOT(change_adaptor()));
// page layout
connect(pageLayoutModule->papersizeCO, SIGNAL(activated(int)), this, SLOT(setMargins(int)));
connect(pageLayoutModule->papersizeCO, SIGNAL(activated(int)), this, SLOT(setCustomPapersize(int)));
connect(pageLayoutModule->papersizeCO, SIGNAL(activated(int)), this, SLOT(setCustomPapersize(int)));
connect(pageLayoutModule->portraitRB, SIGNAL(toggled(bool)), this, SLOT(portraitChanged()));
connect(pageLayoutModule->papersizeCO, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
connect(pageLayoutModule->paperheightLE, SIGNAL(textChanged(const QString&)), this, SLOT(change_adaptor()));
connect(pageLayoutModule->paperwidthLE, SIGNAL(textChanged(const QString&)), this, SLOT(change_adaptor()));
connect(pageLayoutModule->paperwidthUnitCO, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
connect(pageLayoutModule->paperheightUnitCO, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
connect(pageLayoutModule->portraitRB, SIGNAL(toggled(bool)), this, SLOT(change_adaptor()));
connect(pageLayoutModule->landscapeRB, SIGNAL(toggled(bool)), this, SLOT(change_adaptor()));
connect(pageLayoutModule->facingPagesCB, SIGNAL(toggled(bool)), this, SLOT(change_adaptor()));
connect(pageLayoutModule->pagestyleCO, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
// bullets
connect(bulletsModule->bulletsizeCO, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
@ -197,30 +204,30 @@ void QDocumentDialog::closeEvent(QCloseEvent * e)
void QDocumentDialog::setLSpacing(int item)
{
layoutModule->lspacingLE->setEnabled(item == 3);
textLayoutModule->lspacingLE->setEnabled(item == 3);
}
void QDocumentDialog::setSkip(int item)
{
bool const enable = (item == 3);
layoutModule->skipLE->setEnabled(enable);
layoutModule->skipLengthCO->setEnabled(enable);
textLayoutModule->skipLE->setEnabled(enable);
textLayoutModule->skipLengthCO->setEnabled(enable);
}
void QDocumentDialog::enableSkip(bool skip)
{
layoutModule->skipCO->setEnabled(skip);
layoutModule->skipLE->setEnabled(skip);
layoutModule->skipLengthCO->setEnabled(skip);
textLayoutModule->skipCO->setEnabled(skip);
textLayoutModule->skipLE->setEnabled(skip);
textLayoutModule->skipLengthCO->setEnabled(skip);
if (skip)
setSkip(layoutModule->skipCO->currentItem());
setSkip(textLayoutModule->skipCO->currentItem());
}
void QDocumentDialog::portraitChanged()
{
setMargins(paperModule->papersizeCO->currentItem());
setMargins(pageLayoutModule->papersizeCO->currentItem());
}
void QDocumentDialog::setMargins(int papersize)
@ -231,7 +238,7 @@ void QDocumentDialog::setMargins(int papersize)
marginsModule->marginCO->insertItem(qt_("Custom"));
bool a4size = (papersize == 6 || papersize == 0
&& lyxrc.default_papersize == BufferParams::PAPER_A4PAPER);
if (a4size && paperModule->portraitRB->isChecked()) {
if (a4size && pageLayoutModule->portraitRB->isChecked()) {
marginsModule->marginCO->insertItem(qt_("Small margins"));
marginsModule->marginCO->insertItem(qt_("Very small margins"));
marginsModule->marginCO->insertItem(qt_("Very wide margins"));
@ -247,13 +254,13 @@ void QDocumentDialog::setCustomPapersize(int papersize)
{
bool const custom = (papersize == 1);
paperModule->paperwidthL->setEnabled(custom);
paperModule->paperwidthLE->setEnabled(custom);
paperModule->paperwidthUnitCO->setEnabled(custom);
paperModule->paperheightL->setEnabled(custom);
paperModule->paperheightLE->setEnabled(custom);
paperModule->paperheightLE->setFocus();
paperModule->paperheightUnitCO->setEnabled(custom);
pageLayoutModule->paperwidthL->setEnabled(custom);
pageLayoutModule->paperwidthLE->setEnabled(custom);
pageLayoutModule->paperwidthUnitCO->setEnabled(custom);
pageLayoutModule->paperheightL->setEnabled(custom);
pageLayoutModule->paperheightLE->setEnabled(custom);
pageLayoutModule->paperheightLE->setFocus();
pageLayoutModule->paperheightUnitCO->setEnabled(custom);
}
@ -294,16 +301,16 @@ void QDocumentDialog::setCustomMargins(int margin)
void QDocumentDialog::updateFontsize(string const & items, string const & sel)
{
layoutModule->fontsizeCO->clear();
layoutModule->fontsizeCO->insertItem("default");
textLayoutModule->fontsizeCO->clear();
textLayoutModule->fontsizeCO->insertItem("default");
for (int n=0; !token(items,'|',n).empty(); ++n)
layoutModule->fontsizeCO->
textLayoutModule->fontsizeCO->
insertItem(toqstr(token(items,'|',n)));
for (int n = 0; n<layoutModule->fontsizeCO->count(); ++n) {
if (fromqstr(layoutModule->fontsizeCO->text(n)) == sel) {
layoutModule->fontsizeCO->setCurrentItem(n);
for (int n = 0; n<textLayoutModule->fontsizeCO->count(); ++n) {
if (fromqstr(textLayoutModule->fontsizeCO->text(n)) == sel) {
textLayoutModule->fontsizeCO->setCurrentItem(n);
break;
}
}
@ -312,16 +319,16 @@ void QDocumentDialog::updateFontsize(string const & items, string const & sel)
void QDocumentDialog::updatePagestyle(string const & items, string const & sel)
{
layoutModule->pagestyleCO->clear();
layoutModule->pagestyleCO->insertItem("default");
pageLayoutModule->pagestyleCO->clear();
pageLayoutModule->pagestyleCO->insertItem("default");
for (int n=0; !token(items,'|',n).empty(); ++n)
layoutModule->pagestyleCO->
pageLayoutModule->pagestyleCO->
insertItem(toqstr(token(items,'|',n)));
for (int n = 0; n<layoutModule->pagestyleCO->count(); ++n) {
if (fromqstr(layoutModule->pagestyleCO->text(n))==sel) {
layoutModule->pagestyleCO->setCurrentItem(n);
for (int n = 0; n<pageLayoutModule->pagestyleCO->count(); ++n) {
if (fromqstr(pageLayoutModule->pagestyleCO->text(n))==sel) {
pageLayoutModule->pagestyleCO->setCurrentItem(n);
break;
}
}
@ -333,7 +340,7 @@ void QDocumentDialog::classChanged()
ControlDocument & cntrl = form_->controller();
BufferParams & params = cntrl.params();
lyx::textclass_type const tc = layoutModule->classCO->currentItem();
lyx::textclass_type const tc = latexModule->classCO->currentItem();
if (form_->controller().loadTextclass(tc)) {
params.textclass = tc;
@ -349,10 +356,10 @@ void QDocumentDialog::classChanged()
params.pagestyle);
}
} else {
for (int n = 0; n<layoutModule->classCO->count(); ++n) {
if (layoutModule->classCO->text(n) ==
for (int n = 0; n<latexModule->classCO->count(); ++n) {
if (latexModule->classCO->text(n) ==
toqstr(cntrl.textClass().description())) {
layoutModule->classCO->setCurrentItem(n);
latexModule->classCO->setCurrentItem(n);
break;
}
}

View File

@ -19,9 +19,10 @@
#include "ui/BulletsModuleBase.h"
#include "BulletsModule.h"
#include "ui/ClassModuleBase.h"
#include "ui/PackagesModuleBase.h"
#include "ui/PaperModuleBase.h"
#include "ui/TextLayoutModuleBase.h"
#include "ui/MathsModuleBase.h"
#include "ui/LaTeXModuleBase.h"
#include "ui/PageLayoutModuleBase.h"
#include "ui/LanguageModuleBase.h"
#include "ui/BiblioModuleBase.h"
#include "ui/NumberingModuleBase.h"
@ -29,6 +30,7 @@
#include "ui/PreambleModuleBase.h"
class QDocument;
class FloatPlacement;
class QDocumentDialog : public QDocumentDialogBase {
Q_OBJECT
@ -62,15 +64,17 @@ protected:
void closeEvent(QCloseEvent * e);
private:
ClassModuleBase * layoutModule;
PaperModuleBase * paperModule;
TextLayoutModuleBase * textLayoutModule;
PageLayoutModuleBase * pageLayoutModule;
MarginsModuleBase * marginsModule;
LanguageModuleBase * langModule;
BulletsModule * bulletsModule;
NumberingModuleBase * numberingModule;
BiblioModuleBase * biblioModule;
PackagesModuleBase * packagesModule;
MathsModuleBase * mathsModule;
LaTeXModuleBase * latexModule;
PreambleModuleBase * preambleModule;
FloatPlacement * floatModule;
QDocument * form_;
};

View File

@ -15,6 +15,7 @@
#include "QFloat.h"
#include "Qt2BC.h"
#include "qt_helpers.h"
#include "floatplacement.h"
#include "insets/insetfloat.h"
#include "support/lstrings.h"
@ -40,68 +41,13 @@ void QFloat::build_dialog()
bcview().setOK(dialog_->okPB);
bcview().setRestore(dialog_->restorePB);
bcview().addReadOnly(dialog_->topCB);
bcview().addReadOnly(dialog_->bottomCB);
bcview().addReadOnly(dialog_->herepossiblyCB);
bcview().addReadOnly(dialog_->heredefinitelyCB);
bcview().addReadOnly(dialog_->pageCB);
bcview().addReadOnly(dialog_->ignoreCB);
bcview().addReadOnly(dialog_->defaultsCB);
bcview().addReadOnly(dialog_->spanCB);
bcview().addReadOnly(dialog_->floatFP);
}
void QFloat::update_contents()
{
bool def_placement = false;
bool top = false;
bool bottom = false;
bool page = false;
bool here = false;
bool force = false;
bool here_definitely = false;
InsetFloatParams const & params = controller().params();
string const & placement = params.placement;
if (placement.empty()) {
def_placement = true;
} else if (contains(placement, "H")) {
here_definitely = true;
} else {
if (contains(placement, "!")) {
force = true;
}
if (contains(placement, "t")) {
top = true;
}
if (contains(placement, "b")) {
bottom = true;
}
if (contains(placement, "p")) {
page = true;
}
if (contains(placement, "h")) {
here = true;
}
}
dialog_->defaultsCB->setChecked(def_placement);
dialog_->topCB->setChecked(top);
dialog_->bottomCB->setChecked(bottom);
dialog_->pageCB->setChecked(page);
dialog_->herepossiblyCB->setChecked(here);
dialog_->ignoreCB->setChecked(force);
dialog_->ignoreCB->setEnabled(top || bottom || page || here);
dialog_->heredefinitelyCB->setChecked(here_definitely);
if (params.wide) {
dialog_->herepossiblyCB->setChecked(false);
dialog_->bottomCB->setChecked(false);
}
dialog_->spanCB->setChecked(params.wide);
dialog_->floatFP->set(controller().params());
}
@ -109,33 +55,5 @@ void QFloat::apply()
{
InsetFloatParams & params = controller().params();
params.wide = dialog_->spanCB->isChecked();
if (dialog_->defaultsCB->isChecked()) {
params.placement.erase();
return;
}
string placement;
if (dialog_->heredefinitelyCB->isChecked()) {
placement += 'H';
} else {
if (dialog_->ignoreCB->isChecked()) {
placement += '!';
}
if (dialog_->topCB->isChecked()) {
placement += 't';
}
if (dialog_->bottomCB->isChecked()) {
placement += 'b';
}
if (dialog_->pageCB->isChecked()) {
placement += 'p';
}
if (dialog_->herepossiblyCB->isChecked()) {
placement += 'h';
}
}
params.placement = placement;
params.placement = dialog_->floatFP->get(params.wide);
}

View File

@ -15,6 +15,8 @@
#include "ControlFloat.h"
#include "floatplacement.h"
#include <qpushbutton.h>
#include <qcheckbox.h>
@ -34,6 +36,12 @@ QFloatDialog::QFloatDialog(QFloat * form)
form, SLOT(slotApply()));
connect(closePB, SIGNAL(clicked()),
form, SLOT(slotClose()));
// enable span columns checkbox
floatFP->useWide();
connect(floatFP, SIGNAL(changed()),
this, SLOT(change_adaptor()));
}
@ -48,43 +56,3 @@ void QFloatDialog::closeEvent(QCloseEvent * e)
form_->slotWMHide();
e->accept();
}
void QFloatDialog::tbhpClicked()
{
heredefinitelyCB->setChecked(false);
bool allow(topCB->isChecked());
allow |= bottomCB->isChecked();
allow |= pageCB->isChecked();
allow |= herepossiblyCB->isChecked();
ignoreCB->setEnabled(allow);
}
void QFloatDialog::heredefinitelyClicked()
{
if (heredefinitelyCB->isChecked());
ignoreCB->setEnabled(false);
topCB->setChecked(false);
bottomCB->setChecked(false);
pageCB->setChecked(false);
herepossiblyCB->setChecked(false);
ignoreCB->setChecked(false);
}
void QFloatDialog::spanClicked()
{
bool const span(spanCB->isChecked());
if (!defaultsCB->isChecked()) {
herepossiblyCB->setEnabled(!span);
heredefinitelyCB->setEnabled(!span);
}
if (!span)
return;
herepossiblyCB->setChecked(false);
heredefinitelyCB->setChecked(false);
}

View File

@ -21,13 +21,13 @@ class QFloatDialog : public QFloatDialogBase {
Q_OBJECT
public:
QFloatDialog(QFloat * form);
protected slots:
virtual void change_adaptor();
virtual void tbhpClicked();
virtual void heredefinitelyClicked();
virtual void spanClicked();
protected:
virtual void closeEvent(QCloseEvent * e);
private:
QFloat * form_;
};

View File

@ -0,0 +1,229 @@
/**
* \file floatplacement.C
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
* \author Edwin Leuven
* \author John Levon
*
* Full author contact details are available in file CREDITS
*/
#include <config.h>
#include "floatplacement.h"
#include "qt_helpers.h"
#include "insets/insetfloat.h"
#include "support/lstrings.h"
#include <qcheckbox.h>
#include <qlayout.h>
#include <qgroupbox.h>
// FIXME: set disabled doesn't work properly
FloatPlacement::FloatPlacement(QWidget * parent, char * name)
: QWidget(parent, name)
{
QHBoxLayout * toplayout = new QHBoxLayout(this, 11, 6);
layout = new QVBoxLayout(0, 0, 6);
QGroupBox * options = new QGroupBox(qt_("Advanced Placement Options"), this);
defaultsCB = new QCheckBox(qt_("Use &default placement"), this);
ignoreCB = new QCheckBox(qt_("&Ignore LaTeX rules"), options);
pageCB = new QCheckBox(qt_("&Page of floats"), options);
heredefinitelyCB = new QCheckBox(qt_("Here definitely"), options);
herepossiblyCB = new QCheckBox(qt_("&Here if possible"), options);
bottomCB = new QCheckBox(qt_("&Bottom of page"), options);
topCB = new QCheckBox(qt_("&Top of page"), options);
spanCB = 0;
layout->addWidget(defaultsCB);
QVBoxLayout * optlay = new QVBoxLayout(options, 10, 6);
optlay->addSpacing(6);
optlay->addWidget(topCB);
optlay->addWidget(bottomCB);
optlay->addWidget(pageCB);
optlay->addWidget(herepossiblyCB);
optlay->addWidget(heredefinitelyCB);
optlay->addWidget(ignoreCB);
layout->addWidget(options);
toplayout->addLayout(layout);
connect(defaultsCB, SIGNAL(toggled(bool)), options, SLOT(setDisabled(bool)));
connect(defaultsCB, SIGNAL(toggled(bool)), ignoreCB, SLOT(setDisabled(bool)));
connect(defaultsCB, SIGNAL(toggled(bool)), pageCB, SLOT(setDisabled(bool)));
connect(defaultsCB, SIGNAL(toggled(bool)), heredefinitelyCB, SLOT(setDisabled(bool)));
connect(defaultsCB, SIGNAL(toggled(bool)), herepossiblyCB, SLOT(setDisabled(bool)));
connect(defaultsCB, SIGNAL(toggled(bool)), bottomCB, SLOT(setDisabled(bool)));
connect(defaultsCB, SIGNAL(toggled(bool)), topCB, SLOT(setDisabled(bool)));
connect(heredefinitelyCB, SIGNAL(clicked()), this, SLOT(heredefinitelyClicked()));
connect(topCB, SIGNAL(clicked()), this, SLOT(tbhpClicked()));
connect(bottomCB, SIGNAL(clicked()), this, SLOT(tbhpClicked()));
connect(pageCB, SIGNAL(clicked()), this, SLOT(tbhpClicked()));
connect(herepossiblyCB, SIGNAL(clicked()), this, SLOT(tbhpClicked()));
connect(defaultsCB, SIGNAL(clicked()), this, SLOT(tbhpClicked()));
connect(defaultsCB, SIGNAL(toggled(bool)), this, SLOT(changedSlot()));
connect(ignoreCB, SIGNAL(toggled(bool)), this, SLOT(changedSlot()));
connect(pageCB, SIGNAL(toggled(bool)), this, SLOT(changedSlot()));
connect(heredefinitelyCB, SIGNAL(toggled(bool)), this, SLOT(changedSlot()));
connect(herepossiblyCB, SIGNAL(toggled(bool)), this, SLOT(changedSlot()));
connect(bottomCB, SIGNAL(toggled(bool)), this, SLOT(changedSlot()));
connect(topCB, SIGNAL(toggled(bool)), this, SLOT(changedSlot()));
}
void FloatPlacement::useWide()
{
spanCB = new QCheckBox(qt_("&Span columns"), this);
layout->addWidget(spanCB);
connect(spanCB, SIGNAL(clicked()), this, SLOT(spanClicked()));
connect(spanCB, SIGNAL(toggled(bool)), this, SLOT(changedSlot()));
}
void FloatPlacement::changedSlot()
{
emit changed();
}
void FloatPlacement::set(string const & placement)
{
bool def_placement = false;
bool top = false;
bool bottom = false;
bool page = false;
bool here = false;
bool force = false;
bool here_definitely = false;
if (placement.empty()) {
def_placement = true;
} else if (contains(placement, "H")) {
here_definitely = true;
} else {
if (contains(placement, "!")) {
force = true;
}
if (contains(placement, "t")) {
top = true;
}
if (contains(placement, "b")) {
bottom = true;
}
if (contains(placement, "p")) {
page = true;
}
if (contains(placement, "h")) {
here = true;
}
}
defaultsCB->setChecked(def_placement);
topCB->setChecked(top);
bottomCB->setChecked(bottom);
pageCB->setChecked(page);
herepossiblyCB->setChecked(here);
ignoreCB->setChecked(force);
ignoreCB->setEnabled(top || bottom || page || here);
heredefinitelyCB->setChecked(here_definitely);
}
void FloatPlacement::set(InsetFloatParams const & params)
{
set(params.placement);
if (params.wide) {
herepossiblyCB->setChecked(false);
bottomCB->setChecked(false);
}
spanCB->setChecked(params.wide);
}
string const FloatPlacement::get(bool & wide) const
{
wide = spanCB->isChecked();
return get();
}
string const FloatPlacement::get() const
{
string placement;
if (defaultsCB->isChecked())
return placement;
if (heredefinitelyCB->isChecked()) {
placement += 'H';
} else {
if (ignoreCB->isChecked()) {
placement += '!';
}
if (topCB->isChecked()) {
placement += 't';
}
if (bottomCB->isChecked()) {
placement += 'b';
}
if (pageCB->isChecked()) {
placement += 'p';
}
if (herepossiblyCB->isChecked()) {
placement += 'h';
}
}
return placement;
}
void FloatPlacement::tbhpClicked()
{
heredefinitelyCB->setChecked(false);
bool allow(topCB->isChecked());
allow |= bottomCB->isChecked();
allow |= pageCB->isChecked();
allow |= herepossiblyCB->isChecked();
ignoreCB->setEnabled(allow);
}
void FloatPlacement::heredefinitelyClicked()
{
if (heredefinitelyCB->isChecked());
ignoreCB->setEnabled(false);
topCB->setChecked(false);
bottomCB->setChecked(false);
pageCB->setChecked(false);
herepossiblyCB->setChecked(false);
ignoreCB->setChecked(false);
}
void FloatPlacement::spanClicked()
{
bool const span(spanCB->isChecked());
if (!defaultsCB->isChecked()) {
herepossiblyCB->setEnabled(!span);
heredefinitelyCB->setEnabled(!span);
}
if (!span)
return;
herepossiblyCB->setChecked(false);
heredefinitelyCB->setChecked(false);
}

View File

@ -0,0 +1,56 @@
/**
* \file floatplacement.h
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
* \author Edwin Leuven
* \author John Levon
*
* Full author contact details are available in file CREDITS
*/
#include <config.h>
#include "LString.h"
#include <qwidget.h>
class QCheckBox;
class QVBoxLayout;
class InsetFloatParams;
class FloatPlacement : public QWidget {
Q_OBJECT
public:
FloatPlacement(QWidget * parent, char * name);
void useWide();
void set(InsetFloatParams const & params);
void set(string const & placement);
string const get(bool & wide) const;
string const get() const;
public slots:
void tbhpClicked();
void heredefinitelyClicked();
void spanClicked();
void changedSlot();
signals:
void changed();
private:
QVBoxLayout * layout;
QCheckBox * defaultsCB;
QCheckBox * spanCB;
QCheckBox * ignoreCB;
QCheckBox * pageCB;
QCheckBox * heredefinitelyCB;
QCheckBox * herepossiblyCB;
QCheckBox * bottomCB;
QCheckBox * topCB;
};

View File

@ -13,15 +13,15 @@
<rect>
<x>0</x>
<y>0</y>
<width>180</width>
<height>130</height>
<width>450</width>
<height>376</height>
</rect>
</property>
<property stdset="1">
<name>caption</name>
<string>Form1</string>
</property>
<grid>
<vbox>
<property stdset="1">
<name>margin</name>
<number>11</number>
@ -30,83 +30,152 @@
<name>spacing</name>
<number>6</number>
</property>
<widget row="0" column="0" >
<class>QGroupBox</class>
<widget>
<class>QLayoutWidget</class>
<property stdset="1">
<name>name</name>
<cstring>GroupBox3</cstring>
<cstring>Layout4</cstring>
</property>
<property stdset="1">
<name>sizePolicy</name>
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>5</vsizetype>
</sizepolicy>
</property>
<property stdset="1">
<name>title</name>
<string>Style</string>
</property>
<grid>
<hbox>
<property stdset="1">
<name>margin</name>
<number>11</number>
<number>0</number>
</property>
<property stdset="1">
<name>spacing</name>
<number>6</number>
</property>
<widget row="0" column="0" rowspan="1" colspan="2" >
<class>QCheckBox</class>
<widget>
<class>QLayoutWidget</class>
<property stdset="1">
<name>name</name>
<cstring>natbibCB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>Use &amp;NatBib</string>
<cstring>Layout3</cstring>
</property>
<vbox>
<property stdset="1">
<name>margin</name>
<number>0</number>
</property>
<property stdset="1">
<name>spacing</name>
<number>6</number>
</property>
<widget>
<class>QCheckBox</class>
<property stdset="1">
<name>name</name>
<cstring>natbibCB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>Use &amp;NatBib</string>
</property>
<property>
<name>toolTip</name>
<string>Use the LaTeX natbib package</string>
</property>
</widget>
<widget>
<class>QLayoutWidget</class>
<property stdset="1">
<name>name</name>
<cstring>Layout2</cstring>
</property>
<hbox>
<property stdset="1">
<name>margin</name>
<number>0</number>
</property>
<property stdset="1">
<name>spacing</name>
<number>6</number>
</property>
<widget>
<class>QLabel</class>
<property stdset="1">
<name>name</name>
<cstring>citationStyleL</cstring>
</property>
<property stdset="1">
<name>enabled</name>
<bool>false</bool>
</property>
<property stdset="1">
<name>text</name>
<string>Cite &amp;style:</string>
</property>
<property>
<name>buddy</name>
<cstring>citeStyleCO</cstring>
</property>
</widget>
<widget>
<class>QComboBox</class>
<property stdset="1">
<name>name</name>
<cstring>citeStyleCO</cstring>
</property>
<property stdset="1">
<name>enabled</name>
<bool>false</bool>
</property>
<property stdset="1">
<name>sizePolicy</name>
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>0</vsizetype>
</sizepolicy>
</property>
</widget>
</hbox>
</widget>
</vbox>
</widget>
<widget row="1" column="0" >
<class>QLabel</class>
<property stdset="1">
<spacer>
<property>
<name>name</name>
<cstring>citationStyleL</cstring>
<cstring>Spacer1</cstring>
</property>
<property stdset="1">
<name>enabled</name>
<bool>false</bool>
<name>orientation</name>
<enum>Horizontal</enum>
</property>
<property stdset="1">
<name>text</name>
<string>Cite &amp;Style:</string>
<name>sizeType</name>
<enum>Minimum</enum>
</property>
<property>
<name>buddy</name>
<cstring>citeStyleCO</cstring>
<name>sizeHint</name>
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</widget>
<widget row="1" column="1" >
<class>QComboBox</class>
<property stdset="1">
<name>name</name>
<cstring>citeStyleCO</cstring>
</property>
<property stdset="1">
<name>enabled</name>
<bool>false</bool>
</property>
<property stdset="1">
<name>sizePolicy</name>
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>0</vsizetype>
</sizepolicy>
</property>
</widget>
</grid>
</spacer>
</hbox>
</widget>
</grid>
<spacer>
<property>
<name>name</name>
<cstring>Spacer2</cstring>
</property>
<property stdset="1">
<name>orientation</name>
<enum>Vertical</enum>
</property>
<property stdset="1">
<name>sizeType</name>
<enum>Expanding</enum>
</property>
<property>
<name>sizeHint</name>
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</vbox>
</widget>
<connections>
<connection>

View File

@ -13,7 +13,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>300</width>
<width>296</width>
<height>329</height>
</rect>
</property>

View File

@ -1,348 +0,0 @@
<!DOCTYPE UI><UI>
<class>ClassModuleBase</class>
<include location="global">config.h</include>
<include location="local">qt_helpers.h</include>
<widget>
<class>QWidget</class>
<property stdset="1">
<name>name</name>
<cstring>ClassModuleBase</cstring>
</property>
<property stdset="1">
<name>geometry</name>
<rect>
<x>0</x>
<y>0</y>
<width>411</width>
<height>396</height>
</rect>
</property>
<property stdset="1">
<name>caption</name>
<string>Form2</string>
</property>
<grid>
<property stdset="1">
<name>margin</name>
<number>11</number>
</property>
<property stdset="1">
<name>spacing</name>
<number>6</number>
</property>
<widget row="0" column="0" >
<class>QLabel</class>
<property stdset="1">
<name>name</name>
<cstring>classL</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>Document &amp;class:</string>
</property>
<property>
<name>buddy</name>
<cstring>classCO</cstring>
</property>
</widget>
<widget row="0" column="1" rowspan="1" colspan="2" >
<class>QComboBox</class>
<property stdset="1">
<name>name</name>
<cstring>classCO</cstring>
</property>
<property stdset="1">
<name>sizePolicy</name>
<sizepolicy>
<hsizetype>3</hsizetype>
<vsizetype>0</vsizetype>
</sizepolicy>
</property>
</widget>
<widget row="1" column="1" rowspan="1" colspan="2" >
<class>QLineEdit</class>
<property stdset="1">
<name>name</name>
<cstring>optionsLE</cstring>
</property>
</widget>
<widget row="1" column="0" >
<class>QLabel</class>
<property stdset="1">
<name>name</name>
<cstring>optionsL</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>Op&amp;tions:</string>
</property>
<property>
<name>buddy</name>
<cstring>optionsLE</cstring>
</property>
</widget>
<widget row="2" column="1" rowspan="1" colspan="2" >
<class>QComboBox</class>
<property stdset="1">
<name>name</name>
<cstring>pagestyleCO</cstring>
</property>
<property stdset="1">
<name>sizePolicy</name>
<sizepolicy>
<hsizetype>3</hsizetype>
<vsizetype>0</vsizetype>
</sizepolicy>
</property>
</widget>
<widget row="2" column="0" >
<class>QLabel</class>
<property stdset="1">
<name>name</name>
<cstring>pagestyleL</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>Page &amp;style:</string>
</property>
<property>
<name>buddy</name>
<cstring>pagestyleCO</cstring>
</property>
</widget>
<widget row="3" column="2" >
<class>QComboBox</class>
<property stdset="1">
<name>name</name>
<cstring>fontsizeCO</cstring>
</property>
</widget>
<widget row="6" column="0" rowspan="1" colspan="3" >
<class>QButtonGroup</class>
<property stdset="1">
<name>name</name>
<cstring>separationG</cstring>
</property>
<property stdset="1">
<name>title</name>
<string>Separation</string>
</property>
<grid>
<property stdset="1">
<name>margin</name>
<number>11</number>
</property>
<property stdset="1">
<name>spacing</name>
<number>6</number>
</property>
<widget row="2" column="0" >
<class>QComboBox</class>
<property stdset="1">
<name>name</name>
<cstring>skipCO</cstring>
</property>
<property stdset="1">
<name>enabled</name>
<bool>false</bool>
</property>
</widget>
<widget row="2" column="1" >
<class>QLineEdit</class>
<property stdset="1">
<name>name</name>
<cstring>skipLE</cstring>
</property>
<property stdset="1">
<name>enabled</name>
<bool>false</bool>
</property>
<property stdset="1">
<name>sizePolicy</name>
<sizepolicy>
<hsizetype>1</hsizetype>
<vsizetype>0</vsizetype>
</sizepolicy>
</property>
</widget>
<widget row="0" column="0" >
<class>QRadioButton</class>
<property stdset="1">
<name>name</name>
<cstring>indentRB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Indent</string>
</property>
</widget>
<widget row="1" column="0" >
<class>QRadioButton</class>
<property stdset="1">
<name>name</name>
<cstring>skipRB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>S&amp;kip</string>
</property>
</widget>
<widget row="2" column="2" >
<class>LengthCombo</class>
<property stdset="1">
<name>name</name>
<cstring>skipLengthCO</cstring>
</property>
<property stdset="1">
<name>enabled</name>
<bool>false</bool>
</property>
</widget>
</grid>
</widget>
<widget row="5" column="0" >
<class>QLabel</class>
<property stdset="1">
<name>name</name>
<cstring>floatPlacementL</cstring>
</property>
<property stdset="1">
<name>enabled</name>
<bool>true</bool>
</property>
<property stdset="1">
<name>text</name>
<string>Float &amp;placement:</string>
</property>
<property>
<name>buddy</name>
<cstring>floatPlacementLE</cstring>
</property>
</widget>
<widget row="5" column="1" >
<class>QLineEdit</class>
<property stdset="1">
<name>name</name>
<cstring>floatPlacementLE</cstring>
</property>
</widget>
<widget row="4" column="2" >
<class>QLineEdit</class>
<property stdset="1">
<name>name</name>
<cstring>lspacingLE</cstring>
</property>
<property stdset="1">
<name>enabled</name>
<bool>false</bool>
</property>
<property stdset="1">
<name>sizePolicy</name>
<sizepolicy>
<hsizetype>1</hsizetype>
<vsizetype>0</vsizetype>
</sizepolicy>
</property>
</widget>
<widget row="3" column="0" >
<class>QLabel</class>
<property stdset="1">
<name>name</name>
<cstring>fontsL</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Font &amp;&amp; size:</string>
</property>
<property>
<name>buddy</name>
<cstring>fontsCO</cstring>
</property>
</widget>
<widget row="4" column="0" >
<class>QLabel</class>
<property stdset="1">
<name>name</name>
<cstring>lspacingL</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Line spacing:</string>
</property>
<property>
<name>buddy</name>
<cstring>lspacingCO</cstring>
</property>
</widget>
<widget row="3" column="1" >
<class>QComboBox</class>
<property stdset="1">
<name>name</name>
<cstring>fontsCO</cstring>
</property>
<property stdset="1">
<name>sizePolicy</name>
<sizepolicy>
<hsizetype>3</hsizetype>
<vsizetype>0</vsizetype>
</sizepolicy>
</property>
</widget>
<widget row="4" column="1" >
<class>QComboBox</class>
<property stdset="1">
<name>name</name>
<cstring>lspacingCO</cstring>
</property>
<property stdset="1">
<name>sizePolicy</name>
<sizepolicy>
<hsizetype>3</hsizetype>
<vsizetype>0</vsizetype>
</sizepolicy>
</property>
<property stdset="1">
<name>duplicatesEnabled</name>
<bool>false</bool>
</property>
</widget>
</grid>
</widget>
<customwidgets>
<customwidget>
<class>LengthCombo</class>
<header location="local">lengthcombo.h</header>
<sizehint>
<width>-1</width>
<height>-1</height>
</sizehint>
<container>0</container>
<sizepolicy>
<hordata>5</hordata>
<verdata>5</verdata>
</sizepolicy>
<pixmap>image0</pixmap>
<signal>selectionChanged(LyXLength::UNIT)</signal>
</customwidget>
</customwidgets>
<images>
<image>
<name>image0</name>
<data format="XPM.GZ" length="646">789c6dd2c10ac2300c00d07bbf2234b7229d1be245fc04c5a3201e4615f430059d0711ff5ddb2e6bb236ec90eed134cb5a19d8ef36602af5ecdbfeeac05dda0798d3abebde87e3faa374d3807fa0d633a52d38d8de6f679fe33fc776e196f53cd010188256a3600a292882096246517815ca99884606e18044a3a40d91824820924265a7923a2e8bcd05f33db1173e002913175f2a6be6d3294871a2d95fa00e8a94ee017b69d339d90df1e77c57ea072ede6758</data>
</image>
</images>
<tabstops>
<tabstop>classCO</tabstop>
<tabstop>optionsLE</tabstop>
<tabstop>pagestyleCO</tabstop>
<tabstop>fontsCO</tabstop>
<tabstop>fontsizeCO</tabstop>
<tabstop>lspacingCO</tabstop>
<tabstop>lspacingLE</tabstop>
<tabstop>floatPlacementLE</tabstop>
<tabstop>indentRB</tabstop>
<tabstop>skipRB</tabstop>
<tabstop>skipCO</tabstop>
<tabstop>skipLE</tabstop>
</tabstops>
</UI>

View File

@ -0,0 +1,245 @@
<!DOCTYPE UI><UI>
<class>LaTeXModuleBase</class>
<include location="global">config.h</include>
<include location="local">qt_helpers.h</include>
<widget>
<class>QWidget</class>
<property stdset="1">
<name>name</name>
<cstring>LaTeXModuleBase</cstring>
</property>
<property stdset="1">
<name>geometry</name>
<rect>
<x>0</x>
<y>0</y>
<width>456</width>
<height>273</height>
</rect>
</property>
<property stdset="1">
<name>caption</name>
<string>Form1</string>
</property>
<hbox>
<property stdset="1">
<name>margin</name>
<number>11</number>
</property>
<property stdset="1">
<name>spacing</name>
<number>6</number>
</property>
<widget>
<class>QLayoutWidget</class>
<property stdset="1">
<name>name</name>
<cstring>Layout3</cstring>
</property>
<vbox>
<property stdset="1">
<name>margin</name>
<number>0</number>
</property>
<property stdset="1">
<name>spacing</name>
<number>6</number>
</property>
<widget>
<class>QLayoutWidget</class>
<property stdset="1">
<name>name</name>
<cstring>Layout20</cstring>
</property>
<hbox>
<property stdset="1">
<name>margin</name>
<number>0</number>
</property>
<property stdset="1">
<name>spacing</name>
<number>6</number>
</property>
<widget>
<class>QLabel</class>
<property stdset="1">
<name>name</name>
<cstring>classL</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>Document &amp;class:</string>
</property>
<property>
<name>buddy</name>
<cstring>classCO</cstring>
</property>
</widget>
<widget>
<class>QComboBox</class>
<property stdset="1">
<name>name</name>
<cstring>classCO</cstring>
</property>
<property stdset="1">
<name>sizePolicy</name>
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>0</vsizetype>
</sizepolicy>
</property>
</widget>
</hbox>
</widget>
<spacer>
<property>
<name>name</name>
<cstring>Spacer19</cstring>
</property>
<property stdset="1">
<name>orientation</name>
<enum>Vertical</enum>
</property>
<property stdset="1">
<name>sizeType</name>
<enum>Fixed</enum>
</property>
<property>
<name>sizeHint</name>
<size>
<width>20</width>
<height>21</height>
</size>
</property>
</spacer>
<widget>
<class>QLayoutWidget</class>
<property stdset="1">
<name>name</name>
<cstring>Layout19</cstring>
</property>
<hbox>
<property stdset="1">
<name>margin</name>
<number>0</number>
</property>
<property stdset="1">
<name>spacing</name>
<number>6</number>
</property>
<widget>
<class>QGroupBox</class>
<property stdset="1">
<name>name</name>
<cstring>GroupBox4</cstring>
</property>
<property stdset="1">
<name>title</name>
<string>Class Settings</string>
</property>
<grid>
<property stdset="1">
<name>margin</name>
<number>11</number>
</property>
<property stdset="1">
<name>spacing</name>
<number>6</number>
</property>
<widget row="0" column="0" >
<class>QLabel</class>
<property stdset="1">
<name>name</name>
<cstring>optionsL</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Options:</string>
</property>
<property>
<name>buddy</name>
<cstring>optionsLE</cstring>
</property>
</widget>
<widget row="0" column="1" >
<class>QLineEdit</class>
<property stdset="1">
<name>name</name>
<cstring>optionsLE</cstring>
</property>
<property stdset="1">
<name>sizePolicy</name>
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>0</vsizetype>
</sizepolicy>
</property>
</widget>
<widget row="1" column="1" >
<class>QComboBox</class>
<property stdset="1">
<name>name</name>
<cstring>psdriverCO</cstring>
</property>
<property stdset="1">
<name>sizePolicy</name>
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>0</vsizetype>
</sizepolicy>
</property>
<property stdset="1">
<name>duplicatesEnabled</name>
<bool>false</bool>
</property>
</widget>
<widget row="1" column="0" >
<class>QLabel</class>
<property stdset="1">
<name>name</name>
<cstring>psdriverL</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>Postscript &amp;driver:</string>
</property>
<property>
<name>buddy</name>
<cstring>psdriverCO</cstring>
</property>
</widget>
</grid>
</widget>
</hbox>
</widget>
<spacer>
<property>
<name>name</name>
<cstring>Spacer9</cstring>
</property>
<property stdset="1">
<name>orientation</name>
<enum>Vertical</enum>
</property>
<property stdset="1">
<name>sizeType</name>
<enum>Expanding</enum>
</property>
<property>
<name>sizeHint</name>
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</vbox>
</widget>
</hbox>
</widget>
<tabstops>
<tabstop>classCO</tabstop>
<tabstop>optionsLE</tabstop>
<tabstop>psdriverCO</tabstop>
</tabstops>
</UI>

View File

@ -13,7 +13,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>448</width>
<width>444</width>
<height>451</height>
</rect>
</property>
@ -34,7 +34,7 @@
<class>QLayoutWidget</class>
<property stdset="1">
<name>name</name>
<cstring>Layout1</cstring>
<cstring>Layout18</cstring>
</property>
<hbox>
<property stdset="1">
@ -69,11 +69,32 @@
<property stdset="1">
<name>sizePolicy</name>
<sizepolicy>
<hsizetype>7</hsizetype>
<hsizetype>5</hsizetype>
<vsizetype>0</vsizetype>
</sizepolicy>
</property>
</widget>
<spacer>
<property>
<name>name</name>
<cstring>Spacer32</cstring>
</property>
<property stdset="1">
<name>orientation</name>
<enum>Horizontal</enum>
</property>
<property stdset="1">
<name>sizeType</name>
<enum>MinimumExpanding</enum>
</property>
<property>
<name>sizeHint</name>
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</hbox>
</widget>
<widget>
@ -91,7 +112,7 @@
<class>QLayoutWidget</class>
<property stdset="1">
<name>name</name>
<cstring>Layout2</cstring>
<cstring>Layout17</cstring>
</property>
<hbox>
<property stdset="1">
@ -126,7 +147,7 @@
<property stdset="1">
<name>sizePolicy</name>
<sizepolicy>
<hsizetype>7</hsizetype>
<hsizetype>5</hsizetype>
<vsizetype>0</vsizetype>
</sizepolicy>
</property>
@ -135,6 +156,27 @@
<bool>false</bool>
</property>
</widget>
<spacer>
<property>
<name>name</name>
<cstring>Spacer31</cstring>
</property>
<property stdset="1">
<name>orientation</name>
<enum>Horizontal</enum>
</property>
<property stdset="1">
<name>sizeType</name>
<enum>MinimumExpanding</enum>
</property>
<property>
<name>sizeHint</name>
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</hbox>
</widget>
<widget>
@ -151,93 +193,105 @@
<name>exclusive</name>
<bool>true</bool>
</property>
<widget>
<class>QRadioButton</class>
<vbox>
<property stdset="1">
<name>name</name>
<cstring>singleQuoteRB</cstring>
<name>margin</name>
<number>11</number>
</property>
<property stdset="1">
<name>geometry</name>
<rect>
<x>11</x>
<y>26</y>
<width>65</width>
<height>26</height>
</rect>
<name>spacing</name>
<number>6</number>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Single</string>
</property>
</widget>
<widget>
<class>QRadioButton</class>
<property stdset="1">
<name>name</name>
<cstring>doubleQuoteRB</cstring>
</property>
<property stdset="1">
<name>geometry</name>
<rect>
<x>11</x>
<y>58</y>
<width>65</width>
<height>26</height>
</rect>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Double</string>
</property>
</widget>
<widget>
<class>QComboBox</class>
<property stdset="1">
<name>name</name>
<cstring>quoteStyleCO</cstring>
</property>
<property stdset="1">
<name>geometry</name>
<rect>
<x>82</x>
<y>90</y>
<width>337</width>
<height>34</height>
</rect>
</property>
<property stdset="1">
<name>sizePolicy</name>
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>0</vsizetype>
</sizepolicy>
</property>
</widget>
<widget>
<class>QLabel</class>
<property stdset="1">
<name>name</name>
<cstring>typeL</cstring>
</property>
<property stdset="1">
<name>geometry</name>
<rect>
<x>11</x>
<y>90</y>
<width>65</width>
<height>34</height>
</rect>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Type:</string>
</property>
<property>
<name>buddy</name>
<cstring>quoteStyleCO</cstring>
</property>
</widget>
<widget>
<class>QRadioButton</class>
<property stdset="1">
<name>name</name>
<cstring>singleQuoteRB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Single</string>
</property>
</widget>
<widget>
<class>QRadioButton</class>
<property stdset="1">
<name>name</name>
<cstring>doubleQuoteRB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Double</string>
</property>
</widget>
<widget>
<class>QLayoutWidget</class>
<property stdset="1">
<name>name</name>
<cstring>Layout19</cstring>
</property>
<hbox>
<property stdset="1">
<name>margin</name>
<number>0</number>
</property>
<property stdset="1">
<name>spacing</name>
<number>6</number>
</property>
<widget>
<class>QLabel</class>
<property stdset="1">
<name>name</name>
<cstring>typeL</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Type:</string>
</property>
<property>
<name>buddy</name>
<cstring>quoteStyleCO</cstring>
</property>
</widget>
<widget>
<class>QComboBox</class>
<property stdset="1">
<name>name</name>
<cstring>quoteStyleCO</cstring>
</property>
<property stdset="1">
<name>sizePolicy</name>
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>0</vsizetype>
</sizepolicy>
</property>
</widget>
<spacer>
<property>
<name>name</name>
<cstring>Spacer33</cstring>
</property>
<property stdset="1">
<name>orientation</name>
<enum>Horizontal</enum>
</property>
<property stdset="1">
<name>sizeType</name>
<enum>MinimumExpanding</enum>
</property>
<property>
<name>sizeHint</name>
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</hbox>
</widget>
</vbox>
</widget>
<spacer>
<property>

View File

@ -13,7 +13,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>341</width>
<width>337</width>
<height>370</height>
</rect>
</property>
@ -384,6 +384,13 @@
<name>name</name>
<cstring>marginCO</cstring>
</property>
<property stdset="1">
<name>sizePolicy</name>
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>0</vsizetype>
</sizepolicy>
</property>
</widget>
</grid>
</widget>

View File

@ -0,0 +1,93 @@
<!DOCTYPE UI><UI>
<class>MathsModuleBase</class>
<include location="global">config.h</include>
<include location="local">qt_helpers.h</include>
<widget>
<class>QWidget</class>
<property stdset="1">
<name>name</name>
<cstring>MathsModuleBase</cstring>
</property>
<property stdset="1">
<name>geometry</name>
<rect>
<x>0</x>
<y>0</y>
<width>351</width>
<height>233</height>
</rect>
</property>
<property stdset="1">
<name>caption</name>
<string>Form1</string>
</property>
<vbox>
<property stdset="1">
<name>margin</name>
<number>11</number>
</property>
<property stdset="1">
<name>spacing</name>
<number>6</number>
</property>
<widget>
<class>QCheckBox</class>
<property stdset="1">
<name>name</name>
<cstring>amsautoCB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Use AMS math package automatically</string>
</property>
<property stdset="1">
<name>checked</name>
<bool>false</bool>
</property>
</widget>
<widget>
<class>QCheckBox</class>
<property stdset="1">
<name>name</name>
<cstring>amsCB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>Use AMS &amp;math package</string>
</property>
</widget>
<spacer>
<property>
<name>name</name>
<cstring>Spacer1</cstring>
</property>
<property stdset="1">
<name>orientation</name>
<enum>Vertical</enum>
</property>
<property stdset="1">
<name>sizeType</name>
<enum>Expanding</enum>
</property>
<property>
<name>sizeHint</name>
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</vbox>
</widget>
<connections>
<connection>
<sender>amsautoCB</sender>
<signal>toggled(bool)</signal>
<receiver>amsCB</receiver>
<slot>setDisabled(bool)</slot>
</connection>
</connections>
<tabstops>
<tabstop>amsautoCB</tabstop>
</tabstops>
</UI>

View File

@ -13,7 +13,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>236</width>
<width>234</width>
<height>217</height>
</rect>
</property>

View File

@ -1,148 +0,0 @@
<!DOCTYPE UI><UI>
<class>PackagesModuleBase</class>
<include location="global">config.h</include>
<include location="local">qt_helpers.h</include>
<widget>
<class>QWidget</class>
<property stdset="1">
<name>name</name>
<cstring>PackagesModuleBase</cstring>
</property>
<property stdset="1">
<name>geometry</name>
<rect>
<x>0</x>
<y>0</y>
<width>353</width>
<height>231</height>
</rect>
</property>
<property stdset="1">
<name>caption</name>
<string>Form1</string>
</property>
<vbox>
<property stdset="1">
<name>margin</name>
<number>11</number>
</property>
<property stdset="1">
<name>spacing</name>
<number>6</number>
</property>
<widget>
<class>QGroupBox</class>
<property stdset="1">
<name>name</name>
<cstring>packagesG</cstring>
</property>
<property stdset="1">
<name>title</name>
<string>AMS</string>
</property>
<vbox>
<property stdset="1">
<name>margin</name>
<number>11</number>
</property>
<property stdset="1">
<name>spacing</name>
<number>6</number>
</property>
<widget>
<class>QCheckBox</class>
<property stdset="1">
<name>name</name>
<cstring>amsautoCB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Use AMS math package automatically</string>
</property>
<property stdset="1">
<name>checked</name>
<bool>false</bool>
</property>
</widget>
<widget>
<class>QCheckBox</class>
<property stdset="1">
<name>name</name>
<cstring>amsCB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>Use AMS &amp;math package</string>
</property>
</widget>
</vbox>
</widget>
<widget>
<class>QGroupBox</class>
<property stdset="1">
<name>name</name>
<cstring>packagesoptionsG</cstring>
</property>
<property stdset="1">
<name>title</name>
<string>Options</string>
</property>
<grid>
<property stdset="1">
<name>margin</name>
<number>11</number>
</property>
<property stdset="1">
<name>spacing</name>
<number>6</number>
</property>
<widget row="0" column="0" >
<class>QLabel</class>
<property stdset="1">
<name>name</name>
<cstring>psdriverL</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>Postscript &amp;driver:</string>
</property>
<property>
<name>buddy</name>
<cstring>psdriverCO</cstring>
</property>
</widget>
<widget row="0" column="1" >
<class>QComboBox</class>
<property stdset="1">
<name>name</name>
<cstring>psdriverCO</cstring>
</property>
<property stdset="1">
<name>sizePolicy</name>
<sizepolicy>
<hsizetype>3</hsizetype>
<vsizetype>0</vsizetype>
</sizepolicy>
</property>
<property stdset="1">
<name>duplicatesEnabled</name>
<bool>false</bool>
</property>
</widget>
</grid>
</widget>
</vbox>
</widget>
<connections>
<connection>
<sender>amsautoCB</sender>
<signal>toggled(bool)</signal>
<receiver>amsCB</receiver>
<slot>setDisabled(bool)</slot>
</connection>
</connections>
<tabstops>
<tabstop>amsautoCB</tabstop>
<tabstop>psdriverCO</tabstop>
</tabstops>
</UI>

View File

@ -1,27 +1,27 @@
<!DOCTYPE UI><UI>
<class>PaperModuleBase</class>
<class>PageLayoutModuleBase</class>
<include location="global">config.h</include>
<include location="local">qt_helpers.h</include>
<widget>
<class>QWidget</class>
<property stdset="1">
<name>name</name>
<cstring>PaperModuleBase</cstring>
<cstring>PageLayoutModuleBase</cstring>
</property>
<property stdset="1">
<name>geometry</name>
<rect>
<x>0</x>
<y>0</y>
<width>231</width>
<height>269</height>
<width>392</width>
<height>448</height>
</rect>
</property>
<property stdset="1">
<name>caption</name>
<string>Form1</string>
</property>
<grid>
<vbox>
<property stdset="1">
<name>margin</name>
<number>11</number>
@ -30,50 +30,7 @@
<name>spacing</name>
<number>6</number>
</property>
<spacer row="4" column="1" >
<property>
<name>name</name>
<cstring>Spacer24</cstring>
</property>
<property stdset="1">
<name>orientation</name>
<enum>Vertical</enum>
</property>
<property stdset="1">
<name>sizeType</name>
<enum>Expanding</enum>
</property>
<property>
<name>sizeHint</name>
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
<widget row="2" column="0" >
<class>QCheckBox</class>
<property stdset="1">
<name>name</name>
<cstring>twoColumnCB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>Two-&amp;column document</string>
</property>
</widget>
<widget row="3" column="0" >
<class>QCheckBox</class>
<property stdset="1">
<name>name</name>
<cstring>facingPagesCB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Two-sided document</string>
</property>
</widget>
<widget row="0" column="0" rowspan="1" colspan="2" >
<widget>
<class>QGroupBox</class>
<property stdset="1">
<name>name</name>
@ -134,21 +91,6 @@
<cstring>paperwidthLE</cstring>
</property>
</widget>
<widget row="0" column="0" >
<class>QLabel</class>
<property stdset="1">
<name>name</name>
<cstring>psizeL</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>Paper &amp;size:</string>
</property>
<property>
<name>buddy</name>
<cstring>papersizeCO</cstring>
</property>
</widget>
<widget row="0" column="1" rowspan="1" colspan="2" >
<class>QComboBox</class>
<property stdset="1">
@ -162,6 +104,10 @@
<vsizetype>0</vsizetype>
</sizepolicy>
</property>
<property>
<name>toolTip</name>
<string>Choose a particular paper size, or set your own with "Custom"</string>
</property>
</widget>
<widget row="1" column="1" >
<class>QLineEdit</class>
@ -223,7 +169,7 @@
</widget>
</grid>
</widget>
<widget row="1" column="0" rowspan="1" colspan="2" >
<widget>
<class>QButtonGroup</class>
<property stdset="1">
<name>name</name>
@ -270,7 +216,93 @@
</widget>
</hbox>
</widget>
</grid>
<widget>
<class>QLayoutWidget</class>
<property stdset="1">
<name>name</name>
<cstring>Layout23</cstring>
</property>
<hbox>
<property stdset="1">
<name>margin</name>
<number>0</number>
</property>
<property stdset="1">
<name>spacing</name>
<number>6</number>
</property>
<widget>
<class>QLabel</class>
<property stdset="1">
<name>name</name>
<cstring>pagestyleL</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>Page &amp;style:</string>
</property>
<property>
<name>buddy</name>
<cstring>pagestyleCO</cstring>
</property>
</widget>
<widget>
<class>QComboBox</class>
<property stdset="1">
<name>name</name>
<cstring>pagestyleCO</cstring>
</property>
<property stdset="1">
<name>sizePolicy</name>
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>0</vsizetype>
</sizepolicy>
</property>
<property>
<name>toolTip</name>
<string>Set the style used for the page header and footer</string>
</property>
</widget>
</hbox>
</widget>
<widget>
<class>QCheckBox</class>
<property stdset="1">
<name>name</name>
<cstring>facingPagesCB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Two-sided document</string>
</property>
<property>
<name>toolTip</name>
<string>Layout the page for double-sided printing</string>
</property>
</widget>
<spacer>
<property>
<name>name</name>
<cstring>Spacer24</cstring>
</property>
<property stdset="1">
<name>orientation</name>
<enum>Vertical</enum>
</property>
<property stdset="1">
<name>sizeType</name>
<enum>Expanding</enum>
</property>
<property>
<name>sizeHint</name>
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</vbox>
</widget>
<customwidgets>
<customwidget>
@ -301,7 +333,7 @@
<tabstop>paperwidthLE</tabstop>
<tabstop>portraitRB</tabstop>
<tabstop>landscapeRB</tabstop>
<tabstop>twoColumnCB</tabstop>
<tabstop>pagestyleCO</tabstop>
<tabstop>facingPagesCB</tabstop>
</tabstops>
</UI>

View File

@ -13,8 +13,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>376</width>
<height>259</height>
<width>410</width>
<height>336</height>
</rect>
</property>
<property stdset="1">
@ -35,199 +35,10 @@
<number>6</number>
</property>
<widget>
<class>QCheckBox</class>
<class>FloatPlacement</class>
<property stdset="1">
<name>name</name>
<cstring>defaultsCB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>Use &amp;default placement</string>
</property>
<property>
<name>toolTip</name>
<string>Use LaTeX default settings</string>
</property>
</widget>
<widget>
<class>QGroupBox</class>
<property stdset="1">
<name>name</name>
<cstring>placement</cstring>
</property>
<property stdset="1">
<name>title</name>
<string>Advanced Placement Options</string>
</property>
<hbox>
<property stdset="1">
<name>margin</name>
<number>11</number>
</property>
<property stdset="1">
<name>spacing</name>
<number>6</number>
</property>
<widget>
<class>QLayoutWidget</class>
<property stdset="1">
<name>name</name>
<cstring>Layout6</cstring>
</property>
<vbox>
<property stdset="1">
<name>margin</name>
<number>0</number>
</property>
<property stdset="1">
<name>spacing</name>
<number>6</number>
</property>
<widget>
<class>QCheckBox</class>
<property stdset="1">
<name>name</name>
<cstring>topCB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Top of page</string>
</property>
<property>
<name>toolTip</name>
<string>Prefer top of page</string>
</property>
</widget>
<widget>
<class>QCheckBox</class>
<property stdset="1">
<name>name</name>
<cstring>bottomCB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Bottom of page</string>
</property>
<property>
<name>toolTip</name>
<string>Prefer bottom of page</string>
</property>
</widget>
<widget>
<class>QCheckBox</class>
<property stdset="1">
<name>name</name>
<cstring>pageCB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Page of floats</string>
</property>
<property>
<name>toolTip</name>
<string>Separate page for multiple floats</string>
</property>
</widget>
<widget>
<class>QCheckBox</class>
<property stdset="1">
<name>name</name>
<cstring>herepossiblyCB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Here if possible</string>
</property>
<property>
<name>toolTip</name>
<string>Place float at current position if possible</string>
</property>
</widget>
<widget>
<class>QCheckBox</class>
<property stdset="1">
<name>name</name>
<cstring>ignoreCB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Ignore LaTeX rules</string>
</property>
<property>
<name>toolTip</name>
<string>Ignore the internal LaTeX placement rules</string>
</property>
</widget>
</vbox>
</widget>
<widget>
<class>QLayoutWidget</class>
<property stdset="1">
<name>name</name>
<cstring>Layout7</cstring>
</property>
<vbox>
<property stdset="1">
<name>margin</name>
<number>0</number>
</property>
<property stdset="1">
<name>spacing</name>
<number>6</number>
</property>
<widget>
<class>QCheckBox</class>
<property stdset="1">
<name>name</name>
<cstring>heredefinitelyCB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>Here definitely</string>
</property>
<property>
<name>toolTip</name>
<string>Place float at current position</string>
</property>
</widget>
<spacer>
<property>
<name>name</name>
<cstring>Spacer7</cstring>
</property>
<property stdset="1">
<name>orientation</name>
<enum>Vertical</enum>
</property>
<property stdset="1">
<name>sizeType</name>
<enum>Expanding</enum>
</property>
<property>
<name>sizeHint</name>
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</vbox>
</widget>
</hbox>
</widget>
<widget>
<class>QCheckBox</class>
<property stdset="1">
<name>name</name>
<cstring>spanCB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Span columns</string>
</property>
<property>
<name>toolTip</name>
<string>Span columns in multi-column documents</string>
<cstring>floatFP</cstring>
</property>
</widget>
<widget>
@ -322,107 +133,30 @@
</widget>
</vbox>
</widget>
<customwidgets>
<customwidget>
<class>FloatPlacement</class>
<header location="local">floatplacement.h</header>
<sizehint>
<width>-1</width>
<height>-1</height>
</sizehint>
<container>1</container>
<sizepolicy>
<hordata>5</hordata>
<verdata>5</verdata>
</sizepolicy>
<pixmap>image0</pixmap>
</customwidget>
</customwidgets>
<images>
<image>
<name>image0</name>
<data format="XPM.GZ" length="646">789c6dd2c10ac2300c00d07bbf2234b7229d1be245fc04c5a3201e4615f430059d0711ff5ddb2e6bb236ec90eed134cb5a19d8ef36602af5ecdbfeeac05dda0798d3abebde87e3faa374d3807fa0d633a52d38d8de6f679fe33fc776e196f53cd010188256a3600a292882096246517815ca99884606e18044a3a40d91824820924265a7923a2e8bcd05f33db1173e002913175f2a6be6d3294871a2d95fa00e8a94ee017b69d339d90df1e77c57ea072ede6758</data>
</image>
</images>
<connections>
<connection>
<sender>defaultsCB</sender>
<signal>toggled(bool)</signal>
<receiver>placement</receiver>
<slot>setDisabled(bool)</slot>
</connection>
<connection>
<sender>defaultsCB</sender>
<signal>toggled(bool)</signal>
<receiver>QFloatDialogBase</receiver>
<slot>change_adaptor()</slot>
</connection>
<connection>
<sender>defaultsCB</sender>
<signal>toggled(bool)</signal>
<receiver>QFloatDialogBase</receiver>
<slot>tbhpClicked()</slot>
</connection>
<connection>
<sender>topCB</sender>
<signal>toggled(bool)</signal>
<receiver>QFloatDialogBase</receiver>
<slot>change_adaptor()</slot>
</connection>
<connection>
<sender>topCB</sender>
<signal>clicked()</signal>
<receiver>QFloatDialogBase</receiver>
<slot>tbhpClicked()</slot>
</connection>
<connection>
<sender>bottomCB</sender>
<signal>toggled(bool)</signal>
<receiver>QFloatDialogBase</receiver>
<slot>change_adaptor()</slot>
</connection>
<connection>
<sender>bottomCB</sender>
<signal>clicked()</signal>
<receiver>QFloatDialogBase</receiver>
<slot>tbhpClicked()</slot>
</connection>
<connection>
<sender>pageCB</sender>
<signal>toggled(bool)</signal>
<receiver>QFloatDialogBase</receiver>
<slot>change_adaptor()</slot>
</connection>
<connection>
<sender>pageCB</sender>
<signal>clicked()</signal>
<receiver>QFloatDialogBase</receiver>
<slot>tbhpClicked()</slot>
</connection>
<connection>
<sender>herepossiblyCB</sender>
<signal>toggled(bool)</signal>
<receiver>QFloatDialogBase</receiver>
<slot>change_adaptor()</slot>
</connection>
<connection>
<sender>herepossiblyCB</sender>
<signal>clicked()</signal>
<receiver>QFloatDialogBase</receiver>
<slot>tbhpClicked()</slot>
</connection>
<connection>
<sender>ignoreCB</sender>
<signal>toggled(bool)</signal>
<receiver>QFloatDialogBase</receiver>
<slot>change_adaptor()</slot>
</connection>
<connection>
<sender>spanCB</sender>
<signal>toggled(bool)</signal>
<receiver>QFloatDialogBase</receiver>
<slot>change_adaptor()</slot>
</connection>
<connection>
<sender>spanCB</sender>
<signal>clicked()</signal>
<receiver>QFloatDialogBase</receiver>
<slot>spanClicked()</slot>
</connection>
<connection>
<sender>heredefinitelyCB</sender>
<signal>toggled(bool)</signal>
<receiver>QFloatDialogBase</receiver>
<slot>change_adaptor()</slot>
</connection>
<connection>
<sender>heredefinitelyCB</sender>
<signal>clicked()</signal>
<receiver>QFloatDialogBase</receiver>
<slot>heredefinitelyClicked()</slot>
</connection>
<slot access="protected">change_adaptor()</slot>
<slot access="public">heredefinitelyClicked()</slot>
<slot access="public">spanClicked()</slot>
<slot access="public">tbhpClicked()</slot>
</connections>
<tabstops>
<tabstop>restorePB</tabstop>

View File

@ -0,0 +1,432 @@
<!DOCTYPE UI><UI>
<class>TextLayoutModuleBase</class>
<include location="global">config.h</include>
<include location="local">qt_helpers.h</include>
<widget>
<class>QWidget</class>
<property stdset="1">
<name>name</name>
<cstring>TextLayoutModuleBase</cstring>
</property>
<property stdset="1">
<name>geometry</name>
<rect>
<x>0</x>
<y>0</y>
<width>441</width>
<height>440</height>
</rect>
</property>
<property stdset="1">
<name>caption</name>
<string>Form2</string>
</property>
<vbox>
<property stdset="1">
<name>margin</name>
<number>11</number>
</property>
<property stdset="1">
<name>spacing</name>
<number>6</number>
</property>
<widget>
<class>QLayoutWidget</class>
<property stdset="1">
<name>name</name>
<cstring>Layout22</cstring>
</property>
<hbox>
<property stdset="1">
<name>margin</name>
<number>0</number>
</property>
<property stdset="1">
<name>spacing</name>
<number>6</number>
</property>
<widget>
<class>QGroupBox</class>
<property stdset="1">
<name>name</name>
<cstring>GroupBox3</cstring>
</property>
<property stdset="1">
<name>title</name>
<string>Document Font</string>
</property>
<grid>
<property stdset="1">
<name>margin</name>
<number>11</number>
</property>
<property stdset="1">
<name>spacing</name>
<number>6</number>
</property>
<widget row="0" column="0" >
<class>QLabel</class>
<property stdset="1">
<name>name</name>
<cstring>TextLabel2</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Font:</string>
</property>
<property>
<name>buddy</name>
<cstring>fontsCO</cstring>
</property>
</widget>
<widget row="1" column="1" >
<class>QComboBox</class>
<property stdset="1">
<name>name</name>
<cstring>fontsizeCO</cstring>
</property>
<property stdset="1">
<name>sizePolicy</name>
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>0</vsizetype>
</sizepolicy>
</property>
</widget>
<widget row="0" column="1" >
<class>QComboBox</class>
<property stdset="1">
<name>name</name>
<cstring>fontsCO</cstring>
</property>
<property stdset="1">
<name>sizePolicy</name>
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>0</vsizetype>
</sizepolicy>
</property>
</widget>
<widget row="1" column="0" >
<class>QLabel</class>
<property stdset="1">
<name>name</name>
<cstring>TextLabel2_2</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Size:</string>
</property>
<property>
<name>buddy</name>
<cstring>fontsizeCO</cstring>
</property>
</widget>
</grid>
</widget>
</hbox>
</widget>
<widget>
<class>QButtonGroup</class>
<property stdset="1">
<name>name</name>
<cstring>ButtonGroup6</cstring>
</property>
<property stdset="1">
<name>title</name>
<string>Separate Paragraphs With</string>
</property>
<vbox>
<property stdset="1">
<name>margin</name>
<number>11</number>
</property>
<property stdset="1">
<name>spacing</name>
<number>6</number>
</property>
<widget>
<class>QRadioButton</class>
<property stdset="1">
<name>name</name>
<cstring>indentRB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Indentation</string>
</property>
<property>
<name>toolTip</name>
<string>Indent consecutive paragraphs</string>
</property>
</widget>
<widget>
<class>QRadioButton</class>
<property stdset="1">
<name>name</name>
<cstring>skipRB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Vertical space</string>
</property>
<property>
<name>toolTip</name>
<string></string>
</property>
</widget>
<widget>
<class>QLayoutWidget</class>
<property stdset="1">
<name>name</name>
<cstring>Layout2</cstring>
</property>
<hbox>
<property stdset="1">
<name>margin</name>
<number>0</number>
</property>
<property stdset="1">
<name>spacing</name>
<number>6</number>
</property>
<spacer>
<property>
<name>name</name>
<cstring>Spacer1</cstring>
</property>
<property stdset="1">
<name>orientation</name>
<enum>Horizontal</enum>
</property>
<property stdset="1">
<name>sizeType</name>
<enum>Fixed</enum>
</property>
<property>
<name>sizeHint</name>
<size>
<width>31</width>
<height>20</height>
</size>
</property>
</spacer>
<widget>
<class>QLayoutWidget</class>
<property stdset="1">
<name>name</name>
<cstring>Layout1</cstring>
</property>
<hbox>
<property stdset="1">
<name>margin</name>
<number>0</number>
</property>
<property stdset="1">
<name>spacing</name>
<number>6</number>
</property>
<widget>
<class>QComboBox</class>
<property stdset="1">
<name>name</name>
<cstring>skipCO</cstring>
</property>
<property stdset="1">
<name>enabled</name>
<bool>false</bool>
</property>
</widget>
<widget>
<class>QLineEdit</class>
<property stdset="1">
<name>name</name>
<cstring>skipLE</cstring>
</property>
<property stdset="1">
<name>enabled</name>
<bool>false</bool>
</property>
<property stdset="1">
<name>sizePolicy</name>
<sizepolicy>
<hsizetype>1</hsizetype>
<vsizetype>0</vsizetype>
</sizepolicy>
</property>
</widget>
<widget>
<class>LengthCombo</class>
<property stdset="1">
<name>name</name>
<cstring>skipLengthCO</cstring>
</property>
<property stdset="1">
<name>enabled</name>
<bool>false</bool>
</property>
</widget>
</hbox>
</widget>
</hbox>
</widget>
</vbox>
</widget>
<widget>
<class>QLayoutWidget</class>
<property stdset="1">
<name>name</name>
<cstring>Layout21</cstring>
</property>
<hbox>
<property stdset="1">
<name>margin</name>
<number>0</number>
</property>
<property stdset="1">
<name>spacing</name>
<number>6</number>
</property>
<widget>
<class>QLabel</class>
<property stdset="1">
<name>name</name>
<cstring>lspacingL</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Line spacing:</string>
</property>
<property>
<name>buddy</name>
<cstring>lspacingCO</cstring>
</property>
</widget>
<widget>
<class>QLayoutWidget</class>
<property stdset="1">
<name>name</name>
<cstring>Layout4</cstring>
</property>
<hbox>
<property stdset="1">
<name>margin</name>
<number>0</number>
</property>
<property stdset="1">
<name>spacing</name>
<number>6</number>
</property>
<widget>
<class>QComboBox</class>
<property stdset="1">
<name>name</name>
<cstring>lspacingCO</cstring>
</property>
<property stdset="1">
<name>sizePolicy</name>
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>0</vsizetype>
</sizepolicy>
</property>
<property stdset="1">
<name>duplicatesEnabled</name>
<bool>false</bool>
</property>
</widget>
<widget>
<class>QLineEdit</class>
<property stdset="1">
<name>name</name>
<cstring>lspacingLE</cstring>
</property>
<property stdset="1">
<name>enabled</name>
<bool>false</bool>
</property>
<property stdset="1">
<name>sizePolicy</name>
<sizepolicy>
<hsizetype>1</hsizetype>
<vsizetype>0</vsizetype>
</sizepolicy>
</property>
</widget>
</hbox>
</widget>
</hbox>
</widget>
<widget>
<class>QCheckBox</class>
<property stdset="1">
<name>name</name>
<cstring>twoColumnCB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>Two-&amp;column document</string>
</property>
<property>
<name>toolTip</name>
<string>Format text into two columns</string>
</property>
</widget>
<spacer>
<property>
<name>name</name>
<cstring>Spacer3</cstring>
</property>
<property stdset="1">
<name>orientation</name>
<enum>Vertical</enum>
</property>
<property stdset="1">
<name>sizeType</name>
<enum>Expanding</enum>
</property>
<property>
<name>sizeHint</name>
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</vbox>
</widget>
<customwidgets>
<customwidget>
<class>LengthCombo</class>
<header location="local">lengthcombo.h</header>
<sizehint>
<width>-1</width>
<height>-1</height>
</sizehint>
<container>0</container>
<sizepolicy>
<hordata>5</hordata>
<verdata>5</verdata>
</sizepolicy>
<pixmap>image0</pixmap>
<signal>selectionChanged(LyXLength::UNIT)</signal>
</customwidget>
</customwidgets>
<images>
<image>
<name>image0</name>
<data format="XPM.GZ" length="646">789c6dd2c10ac2300c00d07bbf2234b7229d1be245fc04c5a3201e4615f430059d0711ff5ddb2e6bb236ec90eed134cb5a19d8ef36602af5ecdbfeeac05dda0798d3abebde87e3faa374d3807fa0d633a52d38d8de6f679fe33fc776e196f53cd010188256a3600a292882096246517815ca99884606e18044a3a40d91824820924265a7923a2e8bcd05f33db1173e002913175f2a6be6d3294871a2d95fa00e8a94ee017b69d339d90df1e77c57ea072ede6758</data>
</image>
</images>
<tabstops>
<tabstop>lspacingCO</tabstop>
<tabstop>lspacingLE</tabstop>
<tabstop>fontsCO</tabstop>
<tabstop>fontsizeCO</tabstop>
<tabstop>indentRB</tabstop>
<tabstop>skipRB</tabstop>
<tabstop>skipCO</tabstop>
<tabstop>skipLE</tabstop>
<tabstop>twoColumnCB</tabstop>
</tabstops>
</UI>