+2003-01-16 Juergen Spitzmueller <j.spitzmueller@gmx.de>
+
+ * ui/QDocumentDialogBase.ui:
+ * ui/ClassModuleBase.ui:
+ * ui/LanguageModuleBase.ui:
+ * ui/PackagesModuleBase.ui:
+ * QDocument.C:
+ * QDocumentDialog.[Ch]: Rearrangement.
+
2003-01-15 Juergen Spitzmueller <j.spitzmueller@gmx.de>
* QIndex.C:
toqstr(lit->first));
}
+ char const * items[] = {"default", "auto", "latin1", "latin2",
+ "latin3", "latin4", "latin5", "latin9",
+ "koi8-r", "koi8-u", "cp866", "cp1251",
+ "iso88595", "pt154", 0};
+ dialog_->langModule->encodingCO->insertStrList(items);
+
dialog_->langModule->quoteStyleCO->insertItem(qt_("``text''"));
dialog_->langModule->quoteStyleCO->insertItem(qt_("''text''"));
dialog_->langModule->quoteStyleCO->insertItem(qt_(",,text``"));
dialog_->langModule->quoteStyleCO->insertItem(qt_("»text«"));
// packages
- char const * items[] = {"default", "auto", "latin1", "latin2",
- "latin3", "latin4", "latin5", "latin9",
- "koi8-r", "koi8-u", "cp866", "cp1251",
- "iso88595", "pt154", 0};
- dialog_->packagesModule->encodingCO->insertStrList(items);
-
- dialog_->packagesModule->lspacingCO->insertItem(
- qt_("Single"), Spacing::Single);
- dialog_->packagesModule->lspacingCO->insertItem(
- qt_("OneHalf"), Spacing::Onehalf);
- dialog_->packagesModule->lspacingCO->insertItem(
- qt_("Double"), Spacing::Double);
- dialog_->packagesModule->lspacingCO->insertItem(
- qt_("Custom"), Spacing::Other);
-
for (int n = 0; tex_graphics[n][0]; ++n) {
QString enc = tex_graphics[n];
dialog_->packagesModule->psdriverCO->insertItem(enc);
dialog_->layoutModule->pagestyleCO->insertItem(qt_("plain"));
dialog_->layoutModule->pagestyleCO->insertItem(qt_("headings"));
dialog_->layoutModule->pagestyleCO->insertItem(qt_("fancy"));
+
+ dialog_->layoutModule->lspacingCO->insertItem(
+ qt_("Single"), Spacing::Single);
+ dialog_->layoutModule->lspacingCO->insertItem(
+ qt_("OneHalf"), Spacing::Onehalf);
+ dialog_->layoutModule->lspacingCO->insertItem(
+ qt_("Double"), Spacing::Double);
+ dialog_->layoutModule->lspacingCO->insertItem(
+ qt_("Custom"), Spacing::Other);
// margins
dialog_->setMargins(0);
else
params.quotes_times = InsetQuotes::DoubleQ;
+ params.inputenc =
+ fromqstr(dialog_->langModule->encodingCO->currentText());
InsetQuotes::quote_language lga = InsetQuotes::EnglishQ;
switch (dialog_->langModule->quoteStyleCO->currentItem()) {
params.user_defined_bullets[3] = dialog_->bulletsModule->getBullet(3);
// packages
- switch (dialog_->packagesModule->lspacingCO->currentItem()) {
- case 0:
- params.spacing.set(Spacing::Single);
- break;
- case 1:
- params.spacing.set(Spacing::Onehalf);
- break;
- case 2:
- params.spacing.set(Spacing::Double);
- break;
- case 3:
- params.spacing.set(Spacing::Other,
- dialog_->packagesModule->
- lspacingLE->text().toFloat()
- );
- break;
- }
-
params.graphicsDriver =
fromqstr(dialog_->packagesModule->psdriverCO->currentText());
params.use_amsmath =
dialog_->packagesModule->amsCB->isChecked();
- params.inputenc =
- fromqstr(dialog_->packagesModule->encodingCO->currentText());
-
// layout
params.textclass =
dialog_->layoutModule->classCO->currentItem();
-
- //bool succes = controller().classApply();
-
+
params.fonts =
fromqstr(dialog_->layoutModule->fontsCO->currentText());
params.pagestyle =
fromqstr(dialog_->layoutModule->pagestyleCO->currentText());
+
+ switch (dialog_->layoutModule->lspacingCO->currentItem()) {
+ case 0:
+ params.spacing.set(Spacing::Single);
+ break;
+ case 1:
+ params.spacing.set(Spacing::Onehalf);
+ break;
+ case 2:
+ params.spacing.set(Spacing::Double);
+ break;
+ case 3:
+ params.spacing.set(Spacing::Other,
+ dialog_->layoutModule->
+ lspacingLE->text().toFloat()
+ );
+ break;
+ }
if (dialog_->layoutModule->indentRB->isChecked())
params.paragraph_separation = BufferParams::PARSEP_INDENT;
dialog_->langModule->quoteStyleCO->setCurrentItem(
params.quotes_language);
+
+ char const * enc[] = {
+ "default" , "auto" , "latin1" , "latin2" , "latin3" ,
+ "latin4" , "latin5" , "latin9" , "koi8-r" , "koi8-u" ,
+ "cp866" , "cp1251" , "iso88595" , "pt154" };
+ for (size_t i = 0; i < sizeof(enc)/sizeof(char *); ++i) {
+ if (params.inputenc == enc[i])
+ dialog_->langModule->encodingCO->setCurrentItem(i);
+ }
// numbering
dialog_->numberingModule->tocDepthSB->setValue(
dialog_->bulletsModule->setBullet(3,params.user_defined_bullets[3]);
// packages
- char const * enc[] = {
- "default" , "auto" , "latin1" , "latin2" , "latin3" ,
- "latin4" , "latin5" , "latin9" , "koi8-r" , "koi8-u" ,
- "cp866" , "cp1251" , "iso88595" , "pt154" };
- for (size_t i = 0; i < sizeof(enc)/sizeof(char *); ++i) {
- if (params.inputenc == enc[i])
- dialog_->packagesModule->encodingCO->setCurrentItem(i);
- }
-
QString text = toqstr(params.graphicsDriver);
int nitem = dialog_->packagesModule->psdriverCO->count();
for (int n = 0; n < nitem ; ++n) {
case Spacing::Default: case Spacing::Single: nitem = 0; break;
}
- dialog_->packagesModule->lspacingCO->setCurrentItem(nitem);
- if (params.spacing.getSpace() == Spacing::Other) {
- dialog_->packagesModule->lspacingLE->setText(
- toqstr(tostr(params.spacing.getValue())));
- dialog_->setLSpacing(3);
- }
// layout
for (int n = 0; n<dialog_->layoutModule->classCO->count(); ++n) {
}
}
+ dialog_->layoutModule->lspacingCO->setCurrentItem(nitem);
+ if (params.spacing.getSpace() == Spacing::Other) {
+ dialog_->layoutModule->lspacingLE->setText(
+ toqstr(tostr(params.spacing.getValue())));
+ dialog_->setLSpacing(3);
+ }
+
if (params.paragraph_separation
== BufferParams::PARSEP_INDENT) {
dialog_->layoutModule->indentRB->setChecked(true);
moduleLB->clear();
moduleLB->insertItem(qt_("Layout"), LAYOUT);
- moduleLB->insertItem(qt_("Packages"), PACKAGES);
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);
langModule = new LanguageModuleBase(this);
bulletsModule = new BulletsModule(this);
numberingModule = new NumberingModuleBase(this);
biblioModule = new BiblioModuleBase(this);
+ packagesModule = new PackagesModuleBase(this);
preambleModule = new PreambleModuleBase(this);
moduleStack->addWidget(layoutModule, LAYOUT);
moduleStack->addWidget(paperModule, PAPER);
moduleStack->addWidget(marginsModule, MARGINS);
- moduleStack->addWidget(packagesModule, PACKAGES);
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);
this , SLOT(change_adaptor()));
connect(langModule->languageCO, SIGNAL(activated(int)),
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
SIGNAL(valueChanged(int)),
this , SLOT(change_adaptor()));
// packages
- connect(packagesModule->lspacingCO, SIGNAL(activated(int)),
- this , SLOT(change_adaptor()));
- connect(packagesModule->lspacingCO, SIGNAL(activated(int)),
- this , SLOT(setLSpacing(int)));
- connect(packagesModule->lspacingLE,
- SIGNAL(textChanged(const QString&)),
- this , SLOT(change_adaptor()));
- connect(packagesModule->encodingCO, 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()));
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()));
case LAYOUT:
titleL->setText(qt_("Document Style"));
break;
- case PACKAGES:
- titleL->setText(qt_("LaTeX Packages"));
- break;
case PAPER:
titleL->setText(qt_("Papersize and Orientation"));
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;
void QDocumentDialog::setLSpacing(int item)
{
- packagesModule->lspacingLE->setEnabled(item == 3);
+ layoutModule->lspacingLE->setEnabled(item == 3);
}
private:
enum Module {
LAYOUT,
- PACKAGES,
PAPER,
MARGINS,
LANGUAGE,
BULLETS,
NUMBERING,
BIBLIOGRAPHY,
+ PACKAGES,
PREAMBLE
};
ClassModuleBase * layoutModule;
- PackagesModuleBase * packagesModule;
PaperModuleBase * paperModule;
MarginsModuleBase * marginsModule;
LanguageModuleBase * langModule;
BulletsModule * bulletsModule;
NumberingModuleBase * numberingModule;
BiblioModuleBase * biblioModule;
+ PackagesModuleBase * packagesModule;
PreambleModuleBase * preambleModule;
QDocument * form_;
<rect>
<x>0</x>
<y>0</y>
- <width>317</width>
+ <width>313</width>
<height>287</height>
</rect>
</property>
<cstring>pagestyleCO</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="3" column="2" >
<class>QComboBox</class>
<property stdset="1">
<cstring>fontsizeCO</cstring>
</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>&Font && 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>floatPlacementL</cstring>
- </property>
- <property stdset="1">
- <name>enabled</name>
- <bool>true</bool>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Float &placement:</string>
- </property>
- <property>
- <name>buddy</name>
- <cstring>floatPlacementLE</cstring>
- </property>
- </widget>
- <widget row="4" column="1" >
- <class>QLineEdit</class>
- <property stdset="1">
- <name>name</name>
- <cstring>floatPlacementLE</cstring>
- </property>
- </widget>
- <widget row="5" column="0" rowspan="1" colspan="3" >
+ <widget row="6" column="0" rowspan="1" colspan="3" >
<class>QButtonGroup</class>
<property stdset="1">
<name>name</name>
</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 &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>&Font && 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>&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>
<rect>
<x>0</x>
<y>0</y>
- <width>286</width>
- <height>170</height>
+ <width>282</width>
+ <height>190</height>
</rect>
</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>languageL</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>&Language:</string>
- </property>
- <property>
- <name>buddy</name>
- <cstring>languageCO</cstring>
- </property>
- </widget>
- <widget row="0" column="1" >
- <class>QComboBox</class>
- <property stdset="1">
- <name>name</name>
- <cstring>languageCO</cstring>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>7</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
- </property>
- </widget>
- <widget row="1" column="0" rowspan="1" colspan="2" >
+ <widget row="2" column="0" rowspan="1" colspan="2" >
<class>QButtonGroup</class>
<property stdset="1">
<name>name</name>
</spacer>
</grid>
</widget>
+ <widget row="0" column="1" >
+ <class>QComboBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>languageCO</cstring>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>7</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
+ </property>
+ </widget>
+ <widget row="0" column="0" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>languageL</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Language:</string>
+ </property>
+ <property>
+ <name>buddy</name>
+ <cstring>languageCO</cstring>
+ </property>
+ </widget>
+ <widget row="1" column="0" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>encodingL</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>&Encoding:</string>
+ </property>
+ <property>
+ <name>buddy</name>
+ <cstring>encodingCO</cstring>
+ </property>
+ </widget>
+ <widget row="1" column="1" >
+ <class>QComboBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>encodingCO</cstring>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>7</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
+ </property>
+ <property stdset="1">
+ <name>duplicatesEnabled</name>
+ <bool>false</bool>
+ </property>
+ </widget>
</grid>
</widget>
</UI>
<rect>
<x>0</x>
<y>0</y>
- <width>361</width>
+ <width>357</width>
<height>231</height>
</rect>
</property>
<name>spacing</name>
<number>6</number>
</property>
- <widget row="0" 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="2" column="0" >
<class>QCheckBox</class>
<property stdset="1">
<string>Use AMS &math</string>
</property>
</widget>
- <widget row="1" column="1" >
- <class>QComboBox</class>
- <property stdset="1">
- <name>name</name>
- <cstring>encodingCO</cstring>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>7</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
- </property>
- <property stdset="1">
- <name>duplicatesEnabled</name>
- <bool>false</bool>
- </property>
- </widget>
- <widget row="0" 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>
- <widget row="0" column="0" >
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>lspacingL</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Line spacing :</string>
- </property>
- </widget>
- <widget row="1" column="0" >
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>encodingL</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Encoding:</string>
- </property>
- </widget>
</grid>
</widget>
<widget>
</vbox>
</widget>
<tabstops>
- <tabstop>lspacingCO</tabstop>
- <tabstop>lspacingLE</tabstop>
- <tabstop>encodingCO</tabstop>
<tabstop>amsCB</tabstop>
<tabstop>psdriverCO</tabstop>
</tabstops>
<rect>
<x>0</x>
<y>0</y>
- <width>465</width>
- <height>363</height>
+ <width>410</width>
+ <height>230</height>
</rect>
</property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>1</hsizetype>
+ <vsizetype>1</vsizetype>
+ </sizepolicy>
+ </property>
<property stdset="1">
<name>caption</name>
<string>Form1</string>
<name>spacing</name>
<number>6</number>
</property>
- <widget row="1" column="1" >
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout2</cstring>
- </property>
- <property stdset="1">
- <name>caption</name>
- <string></string>
- </property>
- <hbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <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>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Use Class Defaults</string>
- </property>
- <property>
- <name>toolTip</name>
- <string>Reset default params of the current class</string>
- </property>
- </widget>
- <widget>
- <class>QPushButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>savePB</cstring>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>3</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Save as Document Defaults</string>
- </property>
- <property>
- <name>toolTip</name>
- <string>Save settings as LyX's default template</string>
- </property>
- </widget>
- </hbox>
- </widget>
<widget row="2" column="0" rowspan="1" colspan="2" >
<class>QLayoutWidget</class>
<property stdset="1">
</widget>
</hbox>
</widget>
- <widget row="0" column="0" rowspan="2" colspan="1" >
- <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>
- </widget>
<widget row="0" column="1" >
<class>QLayoutWidget</class>
<property stdset="1">
<name>name</name>
- <cstring>Layout3</cstring>
+ <cstring>Layout4</cstring>
</property>
- <vbox>
+ <grid>
<property stdset="1">
<name>margin</name>
<number>0</number>
<name>spacing</name>
<number>6</number>
</property>
- <widget>
+ <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>
<property stdset="1">
<name>name</name>
<property stdset="1">
<name>sizePolicy</name>
<sizepolicy>
- <hsizetype>7</hsizetype>
+ <hsizetype>5</hsizetype>
<vsizetype>0</vsizetype>
</sizepolicy>
</property>
<string>title here</string>
</property>
</widget>
- <widget>
+ <widget row="1" column="0" >
<class>Line</class>
<property stdset="1">
<name>name</name>
<enum>Horizontal</enum>
</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>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Horizontal</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>
- <class>QWidgetStack</class>
+ <class>QPushButton</class>
<property stdset="1">
<name>name</name>
- <cstring>moduleStack</cstring>
+ <cstring>defaultPB</cstring>
</property>
<property stdset="1">
<name>sizePolicy</name>
<sizepolicy>
- <hsizetype>7</hsizetype>
- <vsizetype>7</vsizetype>
+ <hsizetype>3</hsizetype>
+ <vsizetype>0</vsizetype>
</sizepolicy>
</property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Use Class Defaults</string>
+ </property>
+ <property>
+ <name>toolTip</name>
+ <string>Reset default params of the current class</string>
+ </property>
</widget>
- </vbox>
+ <widget>
+ <class>QPushButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>savePB</cstring>
+ </property>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>3</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Save as Document Defaults</string>
+ </property>
+ <property>
+ <name>toolTip</name>
+ <string>Save settings as LyX's default template</string>
+ </property>
+ </widget>
+ </hbox>
</widget>
</grid>
</widget>
<class>QWidgetStack</class>
<header location="global">qwidgetstack.h</header>
<sizehint>
- <width>-1</width>
+ <width>0</width>
<height>-1</height>
</sizehint>
<container>0</container>