Use PanelStack for the document dialog too

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6601 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2003-03-28 02:10:23 +00:00
parent db097f5561
commit a08e3d0844
9 changed files with 204 additions and 401 deletions

View File

@ -1,3 +1,14 @@
2003-03-28 John Levon <levon@movementarian.org>
* panelstack.C: make sure the first panel is visible
* QDocument.h:
* QDocument.C: add (unused) showPreamble
* QDocumentDialog.h:
* QDocumentDialog.C:
* ui/QDocumentDialog.ui: use PanelStack
2003-03-28 John Levon <levon@movementarian.org> 2003-03-28 John Levon <levon@movementarian.org>
* Makefile.am: * Makefile.am:

View File

@ -129,7 +129,9 @@ void Dialogs::showMathPanel()
void Dialogs::showPreamble() void Dialogs::showPreamble()
{ {
// FIXME pimpl_->document.controller().show();
// Oh Angus, won't you help a poor child ?
//pimpl_->document.view()->showPreamble();
} }

View File

@ -165,6 +165,12 @@ void QDocument::build_dialog()
} }
void QDocument::showPreamble()
{
dialog_->showPreamble();
}
void QDocument::apply() void QDocument::apply()
{ {
BufferParams & params = controller().params(); BufferParams & params = controller().params();

View File

@ -32,6 +32,9 @@ public:
friend class QDocumentDialog; friend class QDocumentDialog;
QDocument(); QDocument();
void showPreamble();
private: private:
/// Apply changes /// Apply changes
void apply(); void apply();

View File

@ -27,6 +27,7 @@
#include "ui/NumberingModuleBase.h" #include "ui/NumberingModuleBase.h"
#include "ui/MarginsModuleBase.h" #include "ui/MarginsModuleBase.h"
#include "ui/PreambleModuleBase.h" #include "ui/PreambleModuleBase.h"
#include "panelstack.h"
#include "Spacing.h" #include "Spacing.h"
#include "support/lstrings.h" #include "support/lstrings.h"
@ -59,19 +60,6 @@ QDocumentDialog::QDocumentDialog(QDocument * form)
connect(restorePB, SIGNAL(clicked()), connect(restorePB, SIGNAL(clicked()),
form, SLOT(slotRestore())); 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); layoutModule = new ClassModuleBase(this);
paperModule = new PaperModuleBase(this); paperModule = new PaperModuleBase(this);
marginsModule = new MarginsModuleBase(this); marginsModule = new MarginsModuleBase(this);
@ -82,168 +70,92 @@ QDocumentDialog::QDocumentDialog(QDocument * form)
packagesModule = new PackagesModuleBase(this); packagesModule = new PackagesModuleBase(this);
preambleModule = new PreambleModuleBase(this); preambleModule = new PreambleModuleBase(this);
moduleStack->addWidget(layoutModule, LAYOUT); docPS->addPanel(layoutModule, _("Layout"));
moduleStack->addWidget(paperModule, PAPER); docPS->addPanel(paperModule, _("Paper"));
moduleStack->addWidget(marginsModule, MARGINS); docPS->addPanel(marginsModule, _("Margins"));
moduleStack->addWidget(langModule, LANGUAGE); docPS->addPanel(langModule, _("Language"));
moduleStack->addWidget(bulletsModule, BULLETS); docPS->addPanel(numberingModule, _("Table of Contents"));
moduleStack->addWidget(numberingModule, NUMBERING); docPS->addPanel(biblioModule, _("Bibliography"));
moduleStack->addWidget(biblioModule, BIBLIOGRAPHY); docPS->addPanel(packagesModule, _("LaTeX packages"));
moduleStack->addWidget(packagesModule, PACKAGES); docPS->addPanel(bulletsModule, _("Bullets"));
moduleStack->addWidget(preambleModule, PREAMBLE); docPS->addPanel(preambleModule, _("LaTeX Preamble"));
docPS->setCurrentPanel(_("Layout"));
moduleStack->raiseWidget(LAYOUT);
// take care of title
QFont f = titleL->font();
f.setWeight(QFont::Bold);
titleL->setFont(f);
setTitle(LAYOUT);
// preamble // preamble
connect(preambleModule->preambleMLE, SIGNAL(textChanged()), connect(preambleModule->preambleMLE, SIGNAL(textChanged()), this, SLOT(change_adaptor()));
this, SLOT(change_adaptor()));
// biblio // biblio
connect(biblioModule->natbibCB, SIGNAL(toggled(bool)), connect(biblioModule->natbibCB, SIGNAL(toggled(bool)), this, SLOT(change_adaptor()));
this, SLOT(change_adaptor())); connect(biblioModule->citeStyleCO, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
connect(biblioModule->citeStyleCO, SIGNAL(activated(int)),
this, SLOT(change_adaptor()));
// language & quote // language & quote
connect(langModule->singleQuoteRB, SIGNAL(toggled(bool)), connect(langModule->singleQuoteRB, SIGNAL(toggled(bool)), this, SLOT(change_adaptor()));
this, SLOT(change_adaptor())); connect(langModule->doubleQuoteRB, SIGNAL(toggled(bool)), this, SLOT(change_adaptor()));
connect(langModule->doubleQuoteRB, SIGNAL(toggled(bool)), connect(langModule->languageCO, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
this, SLOT(change_adaptor())); connect(langModule->defaultencodingCB, SIGNAL(toggled(bool)), this, SLOT(change_adaptor()));
connect(langModule->languageCO, SIGNAL(activated(int)), connect(langModule->encodingCO, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
this, SLOT(change_adaptor())); connect(langModule->quoteStyleCO, 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 // numbering
connect(numberingModule->sectionnrDepthSB, connect(numberingModule->sectionnrDepthSB, SIGNAL(valueChanged(int)), this, SLOT(change_adaptor()));
SIGNAL(valueChanged(int)), connect(numberingModule->tocDepthSB, SIGNAL(valueChanged(int)), this, SLOT(change_adaptor()));
this, SLOT(change_adaptor()));
connect(numberingModule->tocDepthSB,
SIGNAL(valueChanged(int)),
this, SLOT(change_adaptor()));
// packages // packages
connect(packagesModule->amsCB, SIGNAL(toggled(bool)), connect(packagesModule->amsCB, SIGNAL(toggled(bool)), this, SLOT(change_adaptor()));
this, SLOT(change_adaptor())); connect(packagesModule->psdriverCO, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
connect(packagesModule->psdriverCO, SIGNAL(activated(int)),
this, SLOT(change_adaptor()));
// layout // layout
connect(layoutModule->classCO, SIGNAL(activated(int)), connect(layoutModule->classCO, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
this, SLOT(change_adaptor())); connect(layoutModule->optionsLE, SIGNAL(textChanged(const QString&)), this, SLOT(change_adaptor()));
connect(layoutModule->optionsLE, connect(layoutModule->pagestyleCO, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
SIGNAL(textChanged(const QString&)), connect(layoutModule->fontsCO, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
this, SLOT(change_adaptor())); connect(layoutModule->fontsizeCO, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
connect(layoutModule->pagestyleCO, SIGNAL(activated(int)), connect(layoutModule->lspacingCO, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
this, SLOT(change_adaptor())); connect(layoutModule->lspacingCO, SIGNAL(activated(int)), this, SLOT(setLSpacing(int)));
connect(layoutModule->fontsCO, SIGNAL(activated(int)), connect(layoutModule->lspacingLE, SIGNAL(textChanged(const QString&)), this, SLOT(change_adaptor()));
this, SLOT(change_adaptor())); connect(layoutModule->floatPlacementLE, SIGNAL(textChanged(const QString&)), this, SLOT(change_adaptor()));
connect(layoutModule->fontsizeCO, SIGNAL(activated(int)), connect(layoutModule->skipRB, SIGNAL(toggled(bool)), this, SLOT(change_adaptor()));
this, SLOT(change_adaptor())); connect(layoutModule->indentRB, SIGNAL(toggled(bool)), this, SLOT(change_adaptor()));
connect(layoutModule->lspacingCO, SIGNAL(activated(int)), connect(layoutModule->skipCO, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
this, SLOT(change_adaptor())); connect(layoutModule->skipLE, SIGNAL(textChanged(const QString&)), this, SLOT(change_adaptor()));
connect(layoutModule->lspacingCO, SIGNAL(activated(int)), connect(layoutModule->skipLengthCO, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
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)), connect(layoutModule->classCO, SIGNAL(activated(int)), this, SLOT(classChanged()));
this, SLOT(classChanged())); connect(layoutModule->skipCO, SIGNAL(activated(int)), this, SLOT(setSkip(int)));
connect(layoutModule->skipCO, SIGNAL(activated(int)), connect(layoutModule->skipRB, SIGNAL(toggled(bool)), this, SLOT(enableSkip(bool)));
this, SLOT(setSkip(int)));
connect(layoutModule->skipRB, SIGNAL(toggled(bool)),
this, SLOT(enableSkip(bool)));
// margins // margins
connect(marginsModule->marginCO, SIGNAL(activated(int)), connect(marginsModule->marginCO, SIGNAL(activated(int)), this, SLOT(setCustomMargins(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->marginCO, SIGNAL(activated(int)), connect(marginsModule->topUnit, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
this, SLOT(change_adaptor())); connect(marginsModule->bottomLE, SIGNAL(textChanged(const QString&)), this, SLOT(change_adaptor()));
connect(marginsModule->topLE, SIGNAL(textChanged(const QString&)), connect(marginsModule->bottomUnit, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
this, SLOT(change_adaptor())); connect(marginsModule->innerLE, SIGNAL(textChanged(const QString&)), this, SLOT(change_adaptor()));
connect(marginsModule->topUnit, SIGNAL(activated(int)), connect(marginsModule->innerUnit, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
this, SLOT(change_adaptor())); connect(marginsModule->outerLE, SIGNAL(textChanged(const QString&)), this, SLOT(change_adaptor()));
connect(marginsModule->bottomLE, SIGNAL(textChanged(const QString&)), connect(marginsModule->outerUnit, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
this, SLOT(change_adaptor())); connect(marginsModule->headheightLE, SIGNAL(textChanged(const QString&)), this, SLOT(change_adaptor()));
connect(marginsModule->bottomUnit, SIGNAL(activated(int)), connect(marginsModule->headheightUnit, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
this, SLOT(change_adaptor())); connect(marginsModule->headsepLE, SIGNAL(textChanged(const QString&)), this, SLOT(change_adaptor()));
connect(marginsModule->innerLE, SIGNAL(textChanged(const QString&)), connect(marginsModule->headsepUnit, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
this, SLOT(change_adaptor())); connect(marginsModule->footskipLE, SIGNAL(textChanged(const QString&)), this, SLOT(change_adaptor()));
connect(marginsModule->innerUnit, SIGNAL(activated(int)), connect(marginsModule->footskipUnit, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
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 // paper
connect(paperModule->papersizeCO, SIGNAL(activated(int)), connect(paperModule->papersizeCO, SIGNAL(activated(int)), this, SLOT(setMargins(int)));
this, SLOT(setMargins(int))); connect(paperModule->papersizeCO, SIGNAL(activated(int)), this, SLOT(setCustomPapersize(int)));
connect(paperModule->papersizeCO, SIGNAL(activated(int)), connect(paperModule->papersizeCO, SIGNAL(activated(int)), this, SLOT(setCustomPapersize(int)));
this, SLOT(setCustomPapersize(int))); connect(paperModule->portraitRB, SIGNAL(toggled(bool)), this, SLOT(portraitChanged()));
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)), connect(paperModule->papersizeCO, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
this, SLOT(change_adaptor())); connect(paperModule->paperheightLE, SIGNAL(textChanged(const QString&)), this, SLOT(change_adaptor()));
connect(paperModule->paperheightLE, SIGNAL(textChanged(const QString&)), connect(paperModule->paperwidthLE, SIGNAL(textChanged(const QString&)), this, SLOT(change_adaptor()));
this, SLOT(change_adaptor())); connect(paperModule->paperwidthUnitCO, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
connect(paperModule->paperwidthLE, SIGNAL(textChanged(const QString&)), connect(paperModule->paperheightUnitCO, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
this, SLOT(change_adaptor())); connect(paperModule->portraitRB, SIGNAL(toggled(bool)), this, SLOT(change_adaptor()));
connect(paperModule->paperwidthUnitCO, SIGNAL(activated(int)), connect(paperModule->landscapeRB, SIGNAL(toggled(bool)), this, SLOT(change_adaptor()));
this, SLOT(change_adaptor())); connect(paperModule->twoColumnCB, SIGNAL(toggled(bool)), this, SLOT(change_adaptor()));
connect(paperModule->paperheightUnitCO, SIGNAL(activated(int)), connect(paperModule->facingPagesCB, SIGNAL(toggled(bool)), this, SLOT(change_adaptor()));
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 // bullets
connect(bulletsModule->bulletsizeCO, SIGNAL(activated(int)), connect(bulletsModule->bulletsizeCO, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
this, SLOT(change_adaptor())); connect(bulletsModule->bulletsLV, SIGNAL(selectionChanged()), this, SLOT(change_adaptor()));
connect(bulletsModule->bulletsLV, SIGNAL(selectionChanged()),
this, SLOT(change_adaptor()));
} }
@ -252,37 +164,9 @@ QDocumentDialog::~QDocumentDialog()
} }
void QDocumentDialog::setTitle(int item) void QDocumentDialog::showPreamble()
{ {
switch(item) { docPS->setCurrentPanel(_("LaTeX Preamble"));
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;
}
} }

View File

@ -41,8 +41,9 @@ public:
void updateFontsize(string const &, string const &); void updateFontsize(string const &, string const &);
void updatePagestyle(string const &, string const &); void updatePagestyle(string const &, string const &);
void showPreamble();
public slots: public slots:
void setTitle(int);
void change_adaptor(); void change_adaptor();
void saveDefaultClicked(); void saveDefaultClicked();
void useDefaultsClicked(); void useDefaultsClicked();
@ -61,18 +62,6 @@ protected:
void closeEvent(QCloseEvent * e); void closeEvent(QCloseEvent * e);
private: private:
enum Module {
LAYOUT,
PAPER,
MARGINS,
LANGUAGE,
BULLETS,
NUMBERING,
BIBLIOGRAPHY,
PACKAGES,
PREAMBLE
};
ClassModuleBase * layoutModule; ClassModuleBase * layoutModule;
PaperModuleBase * paperModule; PaperModuleBase * paperModule;
MarginsModuleBase * marginsModule; MarginsModuleBase * marginsModule;

View File

@ -105,7 +105,11 @@ void PanelStack::setCurrentPanel(string const & name)
PanelMap::const_iterator cit = panel_map_.find(name); PanelMap::const_iterator cit = panel_map_.find(name);
lyx::Assert(cit != panel_map_.end()); lyx::Assert(cit != panel_map_.end());
switchPanel(cit->second); // force on first set
if (list_->currentItem() == cit->second)
switchPanel(cit->second);
list_->setCurrentItem(cit->second);
} }

View File

@ -13,8 +13,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>411</width> <width>422</width>
<height>230</height> <height>393</height>
</rect> </rect>
</property> </property>
<property stdset="1"> <property stdset="1">
@ -32,7 +32,7 @@
<name>sizeGripEnabled</name> <name>sizeGripEnabled</name>
<bool>true</bool> <bool>true</bool>
</property> </property>
<grid> <vbox>
<property stdset="1"> <property stdset="1">
<name>margin</name> <name>margin</name>
<number>11</number> <number>11</number>
@ -41,7 +41,96 @@
<name>spacing</name> <name>spacing</name>
<number>6</number> <number>6</number>
</property> </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>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>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 to the default settings for the document 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 document settings</string>
</property>
</widget>
</hbox>
</widget>
<widget>
<class>QLayoutWidget</class> <class>QLayoutWidget</class>
<property stdset="1"> <property stdset="1">
<name>name</name> <name>name</name>
@ -131,194 +220,22 @@
</widget> </widget>
</hbox> </hbox>
</widget> </widget>
<widget row="0" column="1" > </vbox>
<class>QLayoutWidget</class>
<property stdset="1">
<name>name</name>
<cstring>Layout4</cstring>
</property>
<grid>
<property stdset="1">
<name>margin</name>
<number>0</number>
</property>
<property stdset="1">
<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>
<property stdset="1">
<name>name</name>
<cstring>titleL</cstring>
</property>
<property stdset="1">
<name>sizePolicy</name>
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>0</vsizetype>
</sizepolicy>
</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>
</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>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>
</grid>
</widget> </widget>
<customwidgets> <customwidgets>
<customwidget> <customwidget>
<class>QWidgetStack</class> <class>PanelStack</class>
<header location="global">qwidgetstack.h</header> <header location="local">panelstack.h</header>
<sizehint> <sizehint>
<width>0</width> <width>-1</width>
<height>-1</height> <height>-1</height>
</sizehint> </sizehint>
<container>0</container> <container>1</container>
<sizepolicy> <sizepolicy>
<hordata>7</hordata> <hordata>7</hordata>
<verdata>7</verdata> <verdata>7</verdata>
</sizepolicy> </sizepolicy>
<pixmap>image0</pixmap> <pixmap>image0</pixmap>
<slot access="public">raiseWidget(int)</slot>
</customwidget> </customwidget>
</customwidgets> </customwidgets>
<images> <images>
@ -328,18 +245,6 @@
</image> </image>
</images> </images>
<connections> <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> <connection>
<sender>savePB</sender> <sender>savePB</sender>
<signal>clicked()</signal> <signal>clicked()</signal>
@ -353,8 +258,7 @@
<slot>useDefaultsClicked()</slot> <slot>useDefaultsClicked()</slot>
</connection> </connection>
<slot access="public">change_adaptor()</slot> <slot access="public">change_adaptor()</slot>
<slot access="protected">useDefaultsClicked()</slot>
<slot access="protected">saveDefaultClicked()</slot> <slot access="protected">saveDefaultClicked()</slot>
<slot access="public">setTitle(int)</slot> <slot access="protected">useDefaultsClicked()</slot>
</connections> </connections>
</UI> </UI>

View File

@ -13,7 +13,7 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>437</width> <width>433</width>
<height>352</height> <height>352</height>
</rect> </rect>
</property> </property>