#include "ui/NumberingModuleBase.h"
#include "ui/MarginsModuleBase.h"
#include "ui/PreambleModuleBase.h"
+#include "panelstack.h"
#include "Spacing.h"
#include "support/lstrings.h"
connect(restorePB, SIGNAL(clicked()),
form, SLOT(slotRestore()));
- moduleLB->clear();
- moduleLB->insertItem(qt_("Layout"), LAYOUT);
- moduleLB->insertItem(qt_("Paper"), PAPER);
- moduleLB->insertItem(qt_("Margins"), MARGINS);
- moduleLB->insertItem(qt_("Language"), LANGUAGE);
- moduleLB->insertItem(qt_("Bullets"), BULLETS);
- moduleLB->insertItem(qt_("Numbering"), NUMBERING);
- moduleLB->insertItem(qt_("Bibliography"), BIBLIOGRAPHY);
- moduleLB->insertItem(qt_("Packages"), PACKAGES);
- moduleLB->insertItem(qt_("Preamble"), PREAMBLE);
- moduleLB->setCurrentItem(LAYOUT);
- moduleLB->setMinimumSize(moduleLB->sizeHint());
-
layoutModule = new ClassModuleBase(this);
paperModule = new PaperModuleBase(this);
marginsModule = new MarginsModuleBase(this);
packagesModule = new PackagesModuleBase(this);
preambleModule = new PreambleModuleBase(this);
- moduleStack->addWidget(layoutModule, LAYOUT);
- moduleStack->addWidget(paperModule, PAPER);
- moduleStack->addWidget(marginsModule, MARGINS);
- moduleStack->addWidget(langModule, LANGUAGE);
- moduleStack->addWidget(bulletsModule, BULLETS);
- moduleStack->addWidget(numberingModule, NUMBERING);
- moduleStack->addWidget(biblioModule, BIBLIOGRAPHY);
- moduleStack->addWidget(packagesModule, PACKAGES);
- moduleStack->addWidget(preambleModule, PREAMBLE);
-
- moduleStack->raiseWidget(LAYOUT);
-
-
- // take care of title
- QFont f = titleL->font();
- f.setWeight(QFont::Bold);
- titleL->setFont(f);
- setTitle(LAYOUT);
+ docPS->addPanel(layoutModule, _("Layout"));
+ docPS->addPanel(paperModule, _("Paper"));
+ docPS->addPanel(marginsModule, _("Margins"));
+ docPS->addPanel(langModule, _("Language"));
+ docPS->addPanel(numberingModule, _("Table of Contents"));
+ docPS->addPanel(biblioModule, _("Bibliography"));
+ docPS->addPanel(packagesModule, _("LaTeX packages"));
+ docPS->addPanel(bulletsModule, _("Bullets"));
+ docPS->addPanel(preambleModule, _("LaTeX Preamble"));
+ docPS->setCurrentPanel(_("Layout"));
// preamble
- connect(preambleModule->preambleMLE, SIGNAL(textChanged()),
- this, SLOT(change_adaptor()));
+ connect(preambleModule->preambleMLE, SIGNAL(textChanged()), this, SLOT(change_adaptor()));
// biblio
- connect(biblioModule->natbibCB, SIGNAL(toggled(bool)),
- this, SLOT(change_adaptor()));
- connect(biblioModule->citeStyleCO, SIGNAL(activated(int)),
- this, SLOT(change_adaptor()));
+ connect(biblioModule->natbibCB, SIGNAL(toggled(bool)), this, SLOT(change_adaptor()));
+ connect(biblioModule->citeStyleCO, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
// language & quote
- connect(langModule->singleQuoteRB, SIGNAL(toggled(bool)),
- this, SLOT(change_adaptor()));
- connect(langModule->doubleQuoteRB, SIGNAL(toggled(bool)),
- this, SLOT(change_adaptor()));
- connect(langModule->languageCO, SIGNAL(activated(int)),
- this, SLOT(change_adaptor()));
- connect(langModule->defaultencodingCB, SIGNAL(toggled(bool)),
- this, SLOT(change_adaptor()));
- connect(langModule->encodingCO, SIGNAL(activated(int)),
- this, SLOT(change_adaptor()));
- connect(langModule->quoteStyleCO, SIGNAL(activated(int)),
- this, SLOT(change_adaptor()));
+ connect(langModule->singleQuoteRB, SIGNAL(toggled(bool)), this, SLOT(change_adaptor()));
+ connect(langModule->doubleQuoteRB, SIGNAL(toggled(bool)), this, SLOT(change_adaptor()));
+ connect(langModule->languageCO, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
+ connect(langModule->defaultencodingCB, SIGNAL(toggled(bool)), this, SLOT(change_adaptor()));
+ connect(langModule->encodingCO, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
+ connect(langModule->quoteStyleCO, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
// numbering
- connect(numberingModule->sectionnrDepthSB,
- SIGNAL(valueChanged(int)),
- this, SLOT(change_adaptor()));
- connect(numberingModule->tocDepthSB,
- SIGNAL(valueChanged(int)),
- this, SLOT(change_adaptor()));
+ 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()));
+ 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)));
+ 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)));
// margins
- connect(marginsModule->marginCO, SIGNAL(activated(int)),
- this, SLOT(setCustomMargins(int)));
-
- connect(marginsModule->marginCO, SIGNAL(activated(int)),
- this, SLOT(change_adaptor()));
- connect(marginsModule->topLE, SIGNAL(textChanged(const QString&)),
- this, SLOT(change_adaptor()));
- connect(marginsModule->topUnit, SIGNAL(activated(int)),
- this, SLOT(change_adaptor()));
- connect(marginsModule->bottomLE, SIGNAL(textChanged(const QString&)),
- this, SLOT(change_adaptor()));
- connect(marginsModule->bottomUnit, SIGNAL(activated(int)),
- this, SLOT(change_adaptor()));
- connect(marginsModule->innerLE, SIGNAL(textChanged(const QString&)),
- this, SLOT(change_adaptor()));
- connect(marginsModule->innerUnit, SIGNAL(activated(int)),
- this, SLOT(change_adaptor()));
- connect(marginsModule->outerLE, SIGNAL(textChanged(const QString&)),
- this, SLOT(change_adaptor()));
- connect(marginsModule->outerUnit, SIGNAL(activated(int)),
- this, SLOT(change_adaptor()));
- connect(marginsModule->headheightLE, SIGNAL(textChanged(const QString&)),
- this, SLOT(change_adaptor()));
- connect(marginsModule->headheightUnit, SIGNAL(activated(int)),
- this, SLOT(change_adaptor()));
- connect(marginsModule->headsepLE, SIGNAL(textChanged(const QString&)),
- this, SLOT(change_adaptor()));
- connect(marginsModule->headsepUnit, SIGNAL(activated(int)),
- this, SLOT(change_adaptor()));
- connect(marginsModule->footskipLE, SIGNAL(textChanged(const QString&)),
- this, SLOT(change_adaptor()));
- connect(marginsModule->footskipUnit, SIGNAL(activated(int)),
- this, SLOT(change_adaptor()));
+ connect(marginsModule->marginCO, SIGNAL(activated(int)), this, SLOT(setCustomMargins(int)));
+ connect(marginsModule->marginCO, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
+ connect(marginsModule->topLE, SIGNAL(textChanged(const QString&)), this, SLOT(change_adaptor()));
+ connect(marginsModule->topUnit, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
+ connect(marginsModule->bottomLE, SIGNAL(textChanged(const QString&)), this, SLOT(change_adaptor()));
+ connect(marginsModule->bottomUnit, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
+ connect(marginsModule->innerLE, SIGNAL(textChanged(const QString&)), this, SLOT(change_adaptor()));
+ connect(marginsModule->innerUnit, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
+ connect(marginsModule->outerLE, SIGNAL(textChanged(const QString&)), this, SLOT(change_adaptor()));
+ connect(marginsModule->outerUnit, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
+ connect(marginsModule->headheightLE, SIGNAL(textChanged(const QString&)), this, SLOT(change_adaptor()));
+ connect(marginsModule->headheightUnit, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
+ connect(marginsModule->headsepLE, SIGNAL(textChanged(const QString&)), this, SLOT(change_adaptor()));
+ connect(marginsModule->headsepUnit, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
+ 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()));
+ 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()));
// bullets
- connect(bulletsModule->bulletsizeCO, SIGNAL(activated(int)),
- this, SLOT(change_adaptor()));
- connect(bulletsModule->bulletsLV, SIGNAL(selectionChanged()),
- this, SLOT(change_adaptor()));
+ connect(bulletsModule->bulletsizeCO, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
+ connect(bulletsModule->bulletsLV, SIGNAL(selectionChanged()), this, SLOT(change_adaptor()));
}
}
-void QDocumentDialog::setTitle(int item)
+void QDocumentDialog::showPreamble()
{
- switch(item) {
- case LAYOUT:
- titleL->setText(qt_("Document Style"));
- break;
- case PAPER:
- titleL->setText(qt_("Papersize and Orientation"));
- break;
- case MARGINS:
- titleL->setText(qt_("Margins"));
- break;
- case LANGUAGE:
- titleL->setText(qt_("Language Settings and Quote Style"));
- break;
- case BULLETS:
- titleL->setText(qt_("Bullet Types"));
- break;
- case NUMBERING:
- titleL->setText(qt_("Numbering"));
- break;
- case BIBLIOGRAPHY:
- titleL->setText(qt_("Bibliography Settings"));
- break;
- case PACKAGES:
- titleL->setText(qt_("LaTeX Packages and Options"));
- break;
- case PREAMBLE:
- titleL->setText(qt_("LaTeX Preamble"));
- break;
- }
+ docPS->setCurrentPanel(_("LaTeX Preamble"));
}
<rect>
<x>0</x>
<y>0</y>
- <width>411</width>
- <height>230</height>
+ <width>422</width>
+ <height>393</height>
</rect>
</property>
<property stdset="1">
<name>sizeGripEnabled</name>
<bool>true</bool>
</property>
- <grid>
+ <vbox>
<property stdset="1">
<name>margin</name>
<number>11</number>
<name>spacing</name>
<number>6</number>
</property>
- <widget row="2" column="0" rowspan="1" colspan="2" >
+ <widget>
+ <class>PanelStack</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>docPS</cstring>
+ </property>
+ </widget>
+ <widget>
<class>QLayoutWidget</class>
<property stdset="1">
<name>name</name>
- <cstring>Layout3</cstring>
+ <cstring>Layout4</cstring>
</property>
<hbox>
<property stdset="1">
<name>spacing</name>
<number>6</number>
</property>
- <widget>
- <class>QPushButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>restorePB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Restore</string>
- </property>
- </widget>
<spacer>
<property>
<name>name</name>
- <cstring>Spacer1</cstring>
+ <cstring>Spacer3</cstring>
</property>
<property stdset="1">
<name>orientation</name>
<class>QPushButton</class>
<property stdset="1">
<name>name</name>
- <cstring>okPB</cstring>
+ <cstring>defaultPB</cstring>
</property>
<property stdset="1">
- <name>text</name>
- <string>&OK</string>
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>3</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
</property>
<property stdset="1">
- <name>default</name>
- <bool>true</bool>
+ <name>text</name>
+ <string>Use Class Defaults</string>
+ </property>
+ <property>
+ <name>toolTip</name>
+ <string>Reset to the default settings for the document class</string>
</property>
</widget>
<widget>
<class>QPushButton</class>
<property stdset="1">
<name>name</name>
- <cstring>applyPB</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Apply</string>
+ <cstring>savePB</cstring>
</property>
- </widget>
- <widget>
- <class>QPushButton</class>
<property stdset="1">
- <name>name</name>
- <cstring>closePB</cstring>
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>3</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
</property>
<property stdset="1">
<name>text</name>
- <string>&Cancel</string>
+ <string>Save as Document Defaults</string>
</property>
- <property stdset="1">
- <name>autoDefault</name>
- <bool>false</bool>
+ <property>
+ <name>toolTip</name>
+ <string>Save settings as LyX's default document settings</string>
</property>
</widget>
</hbox>
</widget>
- <widget row="0" column="1" >
+ <widget>
<class>QLayoutWidget</class>
<property stdset="1">
<name>name</name>
- <cstring>Layout4</cstring>
+ <cstring>Layout3</cstring>
</property>
- <grid>
+ <hbox>
<property stdset="1">
<name>margin</name>
<number>0</number>
<name>spacing</name>
<number>6</number>
</property>
- <widget row="2" column="0" >
- <class>QWidgetStack</class>
- <property stdset="1">
- <name>name</name>
- <cstring>moduleStack</cstring>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>5</hsizetype>
- <vsizetype>7</vsizetype>
- </sizepolicy>
- </property>
- </widget>
- <widget row="0" column="0" >
- <class>QLabel</class>
+ <widget>
+ <class>QPushButton</class>
<property stdset="1">
<name>name</name>
- <cstring>titleL</cstring>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>5</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
+ <cstring>restorePB</cstring>
</property>
<property stdset="1">
<name>text</name>
- <string>title here</string>
- </property>
- </widget>
- <widget row="1" column="0" >
- <class>Line</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Line1</cstring>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>1</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Horizontal</enum>
+ <string>&Restore</string>
</property>
</widget>
- </grid>
- </widget>
- <widget row="0" column="0" >
- <class>QListBox</class>
- <property stdset="1">
- <name>name</name>
- <cstring>moduleLB</cstring>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>5</hsizetype>
- <vsizetype>7</vsizetype>
- </sizepolicy>
- </property>
- <property stdset="1">
- <name>vScrollBarMode</name>
- <enum>AlwaysOff</enum>
- </property>
- <property stdset="1">
- <name>variableWidth</name>
- <bool>false</bool>
- </property>
- </widget>
- <widget row="1" column="0" rowspan="1" colspan="2" >
- <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>
<spacer>
<property>
<name>name</name>
- <cstring>Spacer3</cstring>
+ <cstring>Spacer1</cstring>
</property>
<property stdset="1">
<name>orientation</name>
<class>QPushButton</class>
<property stdset="1">
<name>name</name>
- <cstring>defaultPB</cstring>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>3</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
+ <cstring>okPB</cstring>
</property>
<property stdset="1">
<name>text</name>
- <string>Use Class Defaults</string>
+ <string>&OK</string>
</property>
- <property>
- <name>toolTip</name>
- <string>Reset default params of the current class</string>
+ <property stdset="1">
+ <name>default</name>
+ <bool>true</bool>
</property>
</widget>
<widget>
<class>QPushButton</class>
<property stdset="1">
<name>name</name>
- <cstring>savePB</cstring>
+ <cstring>applyPB</cstring>
</property>
<property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>3</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
+ <name>text</name>
+ <string>&Apply</string>
+ </property>
+ </widget>
+ <widget>
+ <class>QPushButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>closePB</cstring>
</property>
<property stdset="1">
<name>text</name>
- <string>Save as Document Defaults</string>
+ <string>&Cancel</string>
</property>
- <property>
- <name>toolTip</name>
- <string>Save settings as LyX's default template</string>
+ <property stdset="1">
+ <name>autoDefault</name>
+ <bool>false</bool>
</property>
</widget>
</hbox>
</widget>
- </grid>
+ </vbox>
</widget>
<customwidgets>
<customwidget>
- <class>QWidgetStack</class>
- <header location="global">qwidgetstack.h</header>
+ <class>PanelStack</class>
+ <header location="local">panelstack.h</header>
<sizehint>
- <width>0</width>
+ <width>-1</width>
<height>-1</height>
</sizehint>
- <container>0</container>
+ <container>1</container>
<sizepolicy>
<hordata>7</hordata>
<verdata>7</verdata>
</sizepolicy>
<pixmap>image0</pixmap>
- <slot access="public">raiseWidget(int)</slot>
</customwidget>
</customwidgets>
<images>
</image>
</images>
<connections>
- <connection>
- <sender>moduleLB</sender>
- <signal>highlighted(int)</signal>
- <receiver>moduleStack</receiver>
- <slot>raiseWidget(int)</slot>
- </connection>
- <connection>
- <sender>moduleLB</sender>
- <signal>highlighted(int)</signal>
- <receiver>QDocumentDialogBase</receiver>
- <slot>setTitle(int)</slot>
- </connection>
<connection>
<sender>savePB</sender>
<signal>clicked()</signal>
<slot>useDefaultsClicked()</slot>
</connection>
<slot access="public">change_adaptor()</slot>
- <slot access="protected">useDefaultsClicked()</slot>
<slot access="protected">saveDefaultClicked()</slot>
- <slot access="public">setTitle(int)</slot>
+ <slot access="protected">useDefaultsClicked()</slot>
</connections>
</UI>