Add style browser to bibtex and document combo to refs. Also some altered dialog layouts and a compilation fix.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4742 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Edwin Leuven 2002-07-22 14:04:38 +00:00
parent af9352a2e7
commit 7a3ef7f50f
12 changed files with 1407 additions and 1730 deletions

View File

@ -1,3 +1,23 @@
2002-07-22 Edwin Leuven <leuven@fee.uva.nl>
* ui/QBibtexDialog.ui: style browser
* QBibtex.C: idem
* QBibtexDialog.C: idem
* ui/QRefDialog.ui: document combo
* QRef.C: idem
* QInclude.C: new layout
* ui/QIncludeDialog.ui: new layout
* ui/QCitationDialog.ui: new layout
* ui/QExternalDialog.ui: new layout
* QGraphics.C: Compile fix
* TODO:
2002-07-22 John Levon <moz@compsoc.man.ac.uk> 2002-07-22 John Levon <moz@compsoc.man.ac.uk>
* Menubar_pimpl.h: * Menubar_pimpl.h:

View File

@ -13,7 +13,8 @@
#include "ControlBibtex.h" #include "ControlBibtex.h"
#include "gettext.h" #include "gettext.h"
#include "debug.h" #include "debug.h"
#include "support/filetools.h" // ChangeExtension
#include "support/lstrings.h" // getVectorFromString
#include <qlineedit.h> #include <qlineedit.h>
#include <qcombobox.h> #include <qcombobox.h>
#include <qpushbutton.h> #include <qpushbutton.h>
@ -40,9 +41,10 @@ void QBibtex::build_dialog()
bc().setCancel(dialog_->closePB); bc().setCancel(dialog_->closePB);
bc().addReadOnly(dialog_->databaseLB); bc().addReadOnly(dialog_->databaseLB);
bc().addReadOnly(dialog_->databasePB); bc().addReadOnly(dialog_->databasePB);
bc().addReadOnly(dialog_->styleCO);
bc().addReadOnly(dialog_->styleED); bc().addReadOnly(dialog_->styleED);
bc().addReadOnly(dialog_->stylePB); bc().addReadOnly(dialog_->stylePB);
bc().addReadOnly(dialog_->styleListLB);
bc().addReadOnly(dialog_->styleListPB);
bc().addReadOnly(dialog_->bibtocCB); bc().addReadOnly(dialog_->bibtocCB);
bc().addReadOnly(dialog_->databasePB); bc().addReadOnly(dialog_->databasePB);
bc().addReadOnly(dialog_->deletePB); bc().addReadOnly(dialog_->deletePB);
@ -77,24 +79,14 @@ void QBibtex::update_contents()
bibstyle = ""; bibstyle = "";
} else } else
dialog_->bibtocCB->setChecked(false); dialog_->bibtocCB->setChecked(false);
dialog_->styleED->setText(bibstyle.c_str());
dialog_->deletePB->setEnabled(false); vector<string> const str = getVectorFromString(
dialog_->styleED->setEnabled(false); controller().getBibStyles(),"\n");
dialog_->stylePB->setEnabled(false); for (vector<string>::const_iterator it = str.begin();
it != str.end(); ++it) {
if (bibstyle == "plain" || bibstyle.empty()) dialog_->styleListLB->insertItem(ChangeExtension(*it,"").c_str());
dialog_->styleCO->setCurrentItem(0);
else if (bibstyle == "unsrt")
dialog_->styleCO->setCurrentItem(1);
else if (bibstyle == "alpha")
dialog_->styleCO->setCurrentItem(2);
else if (bibstyle == "abbrv")
dialog_->styleCO->setCurrentItem(3);
else {
dialog_->styleED->setEnabled(true);
dialog_->stylePB->setEnabled(true);
dialog_->styleED->setText(bibstyle.c_str());
dialog_->styleCO->setCurrentItem(4);
} }
} }
@ -111,9 +103,7 @@ void QBibtex::apply()
} }
controller().params().setContents(dbs); controller().params().setContents(dbs);
string bibstyle(dialog_->styleCO->currentText().latin1()); string bibstyle(dialog_->styleED->text().latin1());
if (bibstyle == _("Other ..."))
bibstyle = dialog_->styleED->text().latin1();
bool const bibtotoc(dialog_->bibtocCB->isChecked()); bool const bibtotoc(dialog_->bibtocCB->isChecked());
@ -133,5 +123,5 @@ void QBibtex::apply()
bool QBibtex::isValid() bool QBibtex::isValid()
{ {
return dialog_->databaseLB->count() != 0 && return dialog_->databaseLB->count() != 0 &&
!(dialog_->styleCO->currentItem() == 4 && string(dialog_->styleED->text()).empty()); !string(dialog_->styleED->text()).empty();
} }

View File

@ -7,12 +7,13 @@
*/ */
#include <config.h> #include <config.h>
#include <vector.h>
#include "ControlBibtex.h" #include "ControlBibtex.h"
#include "gettext.h" #include "gettext.h"
#include "debug.h" #include "debug.h"
#include "support/filetools.h" #include "support/filetools.h"
#include "support/lyxalgo.h" // eliminate_duplicates
#include <qwidget.h> #include <qwidget.h>
#include <qpushbutton.h> #include <qpushbutton.h>
@ -52,15 +53,22 @@ void QBibtexDialog::browsePressed()
} }
} }
void QBibtexDialog::addPressed() void QBibtexDialog::addPressed()
{ {
QString file = QFileDialog::getOpenFileName(QString::null, QString file = QFileDialog::getOpenFileName(QString::null,
_("BibTeX database files (*.bib)"), this, 0, _("Select a BibTeX database to add")); _("BibTeX database files (*.bib)"), this, 0, _("Select a BibTeX database to add"));
if (!file.isNull()) { if (!file.isNull()) {
// FIXME: check duplicates string const f = ChangeExtension(file.latin1(), "");
databaseLB->insertItem(ChangeExtension(file.latin1(), "").c_str()); bool present = false;
form_->changed(); for(unsigned int i = 0; i!=databaseLB->count(); i++) {
if (databaseLB->text(i).latin1()==f)
present = true;
}
if (!present) {
databaseLB->insertItem(f.c_str());
form_->changed();
}
} }
} }
@ -73,17 +81,7 @@ void QBibtexDialog::deletePressed()
void QBibtexDialog::styleChanged(const QString & sel) void QBibtexDialog::styleChanged(const QString & sel)
{ {
if (form_->readOnly()) styleED->setText(sel);
return;
if (string(_("Other ...")) == sel.latin1()) {
styleED->setEnabled(true);
stylePB->setEnabled(true);
} else {
styleED->setEnabled(false);
stylePB->setEnabled(false);
styleED->setText("");
}
} }

View File

@ -133,7 +133,7 @@ void QGraphics::update_contents()
dialog_->widthUnit->setCurrentItem(igp.width.unit()); dialog_->widthUnit->setCurrentItem(igp.width.unit());
dialog_->heightUnit->setCurrentItem(igp.height.unit()); dialog_->heightUnit->setCurrentItem(igp.height.unit());
switch (igp.size_type) { switch (igp.lyxsize_kind) {
case InsetGraphicsParams::DEFAULT_SIZE: { case InsetGraphicsParams::DEFAULT_SIZE: {
dialog_->defaultRB->setChecked(TRUE); dialog_->defaultRB->setChecked(TRUE);
break; break;
@ -224,11 +224,11 @@ void QGraphics::apply()
} }
if (dialog_->defaultRB->isChecked()) if (dialog_->defaultRB->isChecked())
igp.size_type = InsetGraphicsParams::DEFAULT_SIZE; igp.lyxsize_kind = InsetGraphicsParams::DEFAULT_SIZE;
else if (dialog_->customRB->isChecked()) else if (dialog_->customRB->isChecked())
igp.size_type = InsetGraphicsParams::WH; igp.lyxsize_kind = InsetGraphicsParams::WH;
else else
igp.size_type = InsetGraphicsParams::SCALE; igp.lyxsize_kind = InsetGraphicsParams::SCALE;
string value(dialog_->width->text()); string value(dialog_->width->text());
igp.width = LyXLength(strToDbl(value), dialog_->widthUnit->currentLengthItem()); igp.width = LyXLength(strToDbl(value), dialog_->widthUnit->currentLengthItem());

View File

@ -23,7 +23,7 @@
#include <qlineedit.h> #include <qlineedit.h>
#include <qpushbutton.h> #include <qpushbutton.h>
#include <qcheckbox.h> #include <qcheckbox.h>
#include <qradiobutton.h> #include <qcombobox.h>
typedef Qt2CB<ControlInclude, Qt2DB<QIncludeDialog> > base_class; typedef Qt2CB<ControlInclude, Qt2DB<QIncludeDialog> > base_class;
@ -43,9 +43,7 @@ void QInclude::build_dialog()
bc().addReadOnly(dialog_->browsePB); bc().addReadOnly(dialog_->browsePB);
bc().addReadOnly(dialog_->typesetCB); bc().addReadOnly(dialog_->typesetCB);
bc().addReadOnly(dialog_->visiblespaceCB); bc().addReadOnly(dialog_->visiblespaceCB);
bc().addReadOnly(dialog_->includeRB); bc().addReadOnly(dialog_->typeCO);
bc().addReadOnly(dialog_->inputRB);
bc().addReadOnly(dialog_->verbatimRB);
} }
@ -56,7 +54,7 @@ void QInclude::update_contents()
dialog_->typesetCB->setChecked(false); dialog_->typesetCB->setChecked(false);
dialog_->visiblespaceCB->setChecked(false); dialog_->visiblespaceCB->setChecked(false);
dialog_->visiblespaceCB->setEnabled(false); dialog_->visiblespaceCB->setEnabled(false);
dialog_->includeRB->setChecked(true); //dialog_->typeCO->setEnabled(true);
return; return;
} }
@ -71,17 +69,14 @@ void QInclude::update_contents()
dialog_->visiblespaceCB->setEnabled(false); dialog_->visiblespaceCB->setEnabled(false);
if (cmdname == "input") if (cmdname == "input")
dialog_->inputRB->setChecked(true); dialog_->typeCO->setCurrentItem(1);
else if (cmdname == "include")
dialog_->includeRB->setChecked(true);
else if (!cmdname.empty()) { else if (!cmdname.empty()) {
dialog_->verbatimRB->setChecked(true); dialog_->typeCO->setCurrentItem(2);
dialog_->visiblespaceCB->setChecked(cmdname == "verbatiminput*"); dialog_->visiblespaceCB->setChecked(cmdname == "verbatiminput*");
dialog_->visiblespaceCB->setEnabled(true); dialog_->visiblespaceCB->setEnabled(true);
} }
else dialog_->typeCO->setCurrentItem(0);
if (cmdname.empty())
dialog_->includeRB->setChecked(true);
} }
@ -92,9 +87,10 @@ void QInclude::apply()
controller().params().cparams. controller().params().cparams.
setContents(dialog_->filenameED->text().latin1()); setContents(dialog_->filenameED->text().latin1());
if (dialog_->inputRB->isChecked()) int const item = dialog_->typeCO->currentItem();
if (item==1)
controller().params().flag = InsetInclude::INPUT; controller().params().flag = InsetInclude::INPUT;
else if (dialog_->includeRB->isChecked()) else if (item==0)
controller().params().flag = InsetInclude::INCLUDE; controller().params().flag = InsetInclude::INCLUDE;
else { else {
if (dialog_->visiblespaceCB->isChecked()) if (dialog_->visiblespaceCB->isChecked())
@ -109,9 +105,10 @@ void QInclude::browse()
{ {
ControlInclude::Type type; ControlInclude::Type type;
if (dialog_->includeRB->isChecked()) int const item = dialog_->typeCO->currentItem();
if (item==0)
type = ControlInclude::INCLUDE; type = ControlInclude::INCLUDE;
else if (dialog_->inputRB->isChecked()) else if (item==1)
type = ControlInclude::INPUT; type = ControlInclude::INPUT;
else else
type = ControlInclude::VERBATIM; type = ControlInclude::VERBATIM;

View File

@ -8,11 +8,7 @@
#include <config.h> #include <config.h>
#include "support/lstrings.h"
#include "ControlRef.h" #include "ControlRef.h"
#include "gettext.h"
#include "insets/insetref.h"
#include "QRef.h" #include "QRef.h"
#include "QRefDialog.h" #include "QRefDialog.h"
#include "Qt2BC.h" #include "Qt2BC.h"
@ -24,6 +20,15 @@
#include <qpushbutton.h> #include <qpushbutton.h>
#include <qtooltip.h> #include <qtooltip.h>
#include "helper_funcs.h" // getStringFromVector
#include "support/lstrings.h" // frontStrip, strip
#include "gettext.h"
#include "insets/insetref.h"
using std::find;
using std::max;
using std::sort;
using std::vector;
using std::endl; using std::endl;
typedef Qt2CB<ControlRef, Qt2DB<QRefDialog> > base_class; typedef Qt2CB<ControlRef, Qt2DB<QRefDialog> > base_class;
@ -46,24 +51,33 @@ void QRef::build_dialog()
bc().addReadOnly(dialog_->nameED); bc().addReadOnly(dialog_->nameED);
bc().addReadOnly(dialog_->referenceED); bc().addReadOnly(dialog_->referenceED);
bc().addReadOnly(dialog_->typeCO); bc().addReadOnly(dialog_->typeCO);
bc().addReadOnly(dialog_->bufferCO);
} }
void QRef::update_contents() void QRef::update_contents()
{ {
dialog_->referenceED->setText(controller().params().getContents().c_str()); dialog_->referenceED->setText(controller().params().getContents().c_str());
dialog_->nameED->setText(controller().params().getOptions().c_str()); dialog_->nameED->setText(controller().params().getOptions().c_str());
dialog_->typeCO->setCurrentItem(InsetRef::getType(controller().params().getCmdName()));
dialog_->nameED->setReadOnly(!nameAllowed() && !readOnly()); dialog_->nameED->setReadOnly(!nameAllowed() && !readOnly());
dialog_->typeCO->setCurrentItem(InsetRef::getType(controller().params().getCmdName()));
dialog_->typeCO->setEnabled(!typeAllowed() && !readOnly()); dialog_->typeCO->setEnabled(!typeAllowed() && !readOnly());
if (!typeAllowed()) if (!typeAllowed())
dialog_->typeCO->setCurrentItem(0); dialog_->typeCO->setCurrentItem(0);
dialog_->sortCB->setChecked(sort_); dialog_->sortCB->setChecked(sort_);
/* insert buffer list */
dialog_->bufferCO->clear();
vector<string> const buffers = controller().getBufferList();
for (vector<string>::const_iterator it = buffers.begin();
it != buffers.end(); ++it) {
dialog_->bufferCO->insertItem(it->c_str());
}
dialog_->bufferCO->setCurrentItem(controller().getBufferNum());
updateRefs(); updateRefs();
} }
@ -157,7 +171,8 @@ void QRef::updateRefs()
if (at_ref_) if (at_ref_)
gotoRef(); gotoRef();
dialog_->refsLB->clear(); dialog_->refsLB->clear();
refs_ = controller().getLabelList(string()); string const name = controller().getBufferName(dialog_->bufferCO->currentItem());
refs_ = controller().getLabelList(name);
dialog_->sortCB->setEnabled(!refs_.empty()); dialog_->sortCB->setEnabled(!refs_.empty());
dialog_->refsLB->setEnabled(!refs_.empty()); dialog_->refsLB->setEnabled(!refs_.empty());
redoRefs(); redoRefs();

View File

@ -26,10 +26,6 @@ QAbout
- give good default size - give good default size
QBibtex
- implement H. Voss's style browser facility, style tooltip, check for duplicates
QCitation QCitation
- loop round searching not working perhaps ?? - loop round searching not working perhaps ??
@ -92,10 +88,6 @@ QPreferences
- implement me (*) - implement me (*)
QRef
- need buffer combo
QSendTo QSendTo
- implement me - implement me

View File

@ -13,15 +13,19 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>296</width> <width>301</width>
<height>407</height> <height>435</height>
</rect> </rect>
</property> </property>
<property stdset="1"> <property stdset="1">
<name>caption</name> <name>caption</name>
<string>Bibtex</string> <string>Bibtex</string>
</property> </property>
<vbox> <property stdset="1">
<name>sizeGripEnabled</name>
<bool>true</bool>
</property>
<grid>
<property stdset="1"> <property stdset="1">
<name>margin</name> <name>margin</name>
<number>11</number> <number>11</number>
@ -30,381 +34,12 @@
<name>spacing</name> <name>spacing</name>
<number>6</number> <number>6</number>
</property> </property>
<widget> <widget row="10" column="0" rowspan="1" colspan="2" >
<class>QLabel</class>
<property stdset="1">
<name>name</name>
<cstring>databaseLA</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>Databases</string>
</property>
<property stdset="1">
<name>alignment</name>
<set>AlignTop|AlignLeft</set>
</property>
<property>
<name>buddy</name>
<cstring>databaseCO</cstring>
</property>
<property>
<name>toolTip</name>
<string>BibTeX database to use</string>
</property>
<property>
<name>vAlign</name>
</property>
</widget>
<widget>
<class>QLayoutWidget</class>
<property stdset="1">
<name>name</name>
<cstring>Layout10</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>QListBox</class>
<item>
<property>
<name>text</name>
<string>New Item</string>
</property>
</item>
<property stdset="1">
<name>name</name>
<cstring>databaseLB</cstring>
</property>
<property stdset="1">
<name>enabled</name>
<bool>true</bool>
</property>
<property>
<name>toolTip</name>
<string>Available BibTeX databases</string>
</property>
</widget>
<widget>
<class>QLayoutWidget</class>
<property stdset="1">
<name>name</name>
<cstring>Layout9</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>QPushButton</class>
<property stdset="1">
<name>name</name>
<cstring>databasePB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Add ...</string>
</property>
<property stdset="1">
<name>autoDefault</name>
<bool>false</bool>
</property>
<property>
<name>toolTip</name>
<string>Add a BibTeX database file</string>
</property>
</widget>
<widget>
<class>QPushButton</class>
<property stdset="1">
<name>name</name>
<cstring>deletePB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Delete</string>
</property>
<property>
<name>toolTip</name>
<string>Remove the selected database</string>
</property>
</widget>
<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>
</hbox>
</widget>
<widget>
<class>QLayoutWidget</class>
<property stdset="1">
<name>name</name>
<cstring>Layout16</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>QLabel</class>
<property stdset="1">
<name>name</name>
<cstring>styleLA</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Style</string>
</property>
<property>
<name>buddy</name>
<cstring>styleCO</cstring>
</property>
<property>
<name>toolTip</name>
<string>The BibTeX style</string>
</property>
</widget>
<widget>
<class>QLayoutWidget</class>
<property stdset="1">
<name>name</name>
<cstring>Layout14</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>
<item>
<property>
<name>text</name>
<string>plain</string>
</property>
</item>
<item>
<property>
<name>text</name>
<string>unsrt</string>
</property>
</item>
<item>
<property>
<name>text</name>
<string>alpha</string>
</property>
</item>
<item>
<property>
<name>text</name>
<string>abbrv</string>
</property>
</item>
<item>
<property>
<name>text</name>
<string>Other ...</string>
</property>
</item>
<property stdset="1">
<name>name</name>
<cstring>styleCO</cstring>
</property>
<property stdset="1">
<name>sizePolicy</name>
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>0</vsizetype>
</sizepolicy>
</property>
<property>
<name>toolTip</name>
<string>The BibTeX style</string>
</property>
<property>
<name>whatsThis</name>
<string>FIXME !</string>
</property>
</widget>
<widget>
<class>QLineEdit</class>
<property stdset="1">
<name>name</name>
<cstring>styleED</cstring>
</property>
<property stdset="1">
<name>sizePolicy</name>
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>0</vsizetype>
</sizepolicy>
</property>
<property>
<name>toolTip</name>
<string>The name of the style to use</string>
</property>
</widget>
</hbox>
</widget>
<widget>
<class>QLayoutWidget</class>
<property stdset="1">
<name>name</name>
<cstring>Layout15</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_2</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>
<widget>
<class>QPushButton</class>
<property stdset="1">
<name>name</name>
<cstring>stylePB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Browse</string>
</property>
<property stdset="1">
<name>autoDefault</name>
<bool>false</bool>
</property>
<property>
<name>toolTip</name>
<string>Choose a style file</string>
</property>
</widget>
</hbox>
</widget>
</vbox>
</widget>
<widget>
<class>QLayoutWidget</class> <class>QLayoutWidget</class>
<property stdset="1"> <property stdset="1">
<name>name</name> <name>name</name>
<cstring>Layout8</cstring> <cstring>Layout8</cstring>
</property> </property>
<hbox>
<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>bibtocCB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>Add bibliography to &amp;TOC</string>
</property>
<property>
<name>toolTip</name>
<string>Add bibliography to the table of contents</string>
</property>
</widget>
<spacer>
<property>
<name>name</name>
<cstring>Spacer1_3</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>
</hbox>
</widget>
<widget>
<class>QLayoutWidget</class>
<property stdset="1">
<name>name</name>
<cstring>Layout10</cstring>
</property>
<hbox> <hbox>
<property stdset="1"> <property stdset="1">
<name>margin</name> <name>margin</name>
@ -463,7 +98,219 @@
</widget> </widget>
</hbox> </hbox>
</widget> </widget>
</vbox> <widget row="0" column="0" rowspan="1" colspan="2" >
<class>QLabel</class>
<property stdset="1">
<name>name</name>
<cstring>databaseLA</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>Databa&amp;ses</string>
</property>
<property stdset="1">
<name>alignment</name>
<set>AlignTop|AlignLeft</set>
</property>
<property>
<name>buddy</name>
<cstring>databaseLB</cstring>
</property>
<property>
<name>toolTip</name>
<string>BibTeX database to use</string>
</property>
<property>
<name>vAlign</name>
</property>
</widget>
<widget row="1" column="0" rowspan="2" colspan="1" >
<class>QListBox</class>
<property stdset="1">
<name>name</name>
<cstring>databaseLB</cstring>
</property>
<property stdset="1">
<name>enabled</name>
<bool>true</bool>
</property>
<property>
<name>toolTip</name>
<string>Available BibTeX databases</string>
</property>
</widget>
<widget row="1" column="1" >
<class>QPushButton</class>
<property stdset="1">
<name>name</name>
<cstring>databasePB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Add...</string>
</property>
<property stdset="1">
<name>autoDefault</name>
<bool>false</bool>
</property>
<property>
<name>toolTip</name>
<string>Add a BibTeX database file</string>
</property>
</widget>
<widget row="2" column="1" >
<class>QPushButton</class>
<property stdset="1">
<name>name</name>
<cstring>deletePB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Delete</string>
</property>
<property>
<name>toolTip</name>
<string>Remove the selected database</string>
</property>
</widget>
<widget row="3" column="0" >
<class>QLabel</class>
<property stdset="1">
<name>name</name>
<cstring>styleLA</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>St&amp;yle</string>
</property>
<property>
<name>buddy</name>
<cstring>styleED</cstring>
</property>
<property>
<name>toolTip</name>
<string>The BibTeX style</string>
</property>
</widget>
<widget row="4" column="1" >
<class>QPushButton</class>
<property stdset="1">
<name>name</name>
<cstring>stylePB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Browse...</string>
</property>
<property stdset="1">
<name>autoDefault</name>
<bool>false</bool>
</property>
<property>
<name>toolTip</name>
<string>Choose a style file</string>
</property>
</widget>
<widget row="8" column="0" >
<class>QCheckBox</class>
<property stdset="1">
<name>name</name>
<cstring>bibtocCB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>Add bibliography to &amp;TOC</string>
</property>
<property>
<name>toolTip</name>
<string>Add bibliography to the table of contents</string>
</property>
</widget>
<widget row="7" column="1" >
<class>QPushButton</class>
<property stdset="1">
<name>name</name>
<cstring>styleListPB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Update</string>
</property>
<property stdset="1">
<name>autoDefault</name>
<bool>false</bool>
</property>
<property>
<name>toolTip</name>
<string>Update style list</string>
</property>
</widget>
<widget row="4" column="0" >
<class>QLineEdit</class>
<property stdset="1">
<name>name</name>
<cstring>styleED</cstring>
</property>
<property stdset="1">
<name>sizePolicy</name>
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>0</vsizetype>
</sizepolicy>
</property>
<property>
<name>toolTip</name>
<string>The name of the style to use</string>
</property>
</widget>
<widget row="5" column="0" >
<class>QLabel</class>
<property stdset="1">
<name>name</name>
<cstring>styleListL</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>A&amp;vailable styles</string>
</property>
<property>
<name>buddy</name>
<cstring>styleListLB</cstring>
</property>
</widget>
<widget row="6" column="0" rowspan="2" colspan="1" >
<class>QListBox</class>
<property stdset="1">
<name>name</name>
<cstring>styleListLB</cstring>
</property>
<property>
<name>toolTip</name>
<string>List of available styles</string>
</property>
</widget>
<spacer row="6" column="1" >
<property>
<name>name</name>
<cstring>Spacer5</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>
</grid>
</widget> </widget>
<connections> <connections>
<connection> <connection>
@ -484,24 +331,6 @@
<receiver>QBibtexDialogBase</receiver> <receiver>QBibtexDialogBase</receiver>
<slot>change_adaptor()</slot> <slot>change_adaptor()</slot>
</connection> </connection>
<connection>
<sender>styleCO</sender>
<signal>activated(int)</signal>
<receiver>QBibtexDialogBase</receiver>
<slot>change_adaptor()</slot>
</connection>
<connection>
<sender>styleCO</sender>
<signal>activated(const QString&amp;)</signal>
<receiver>QBibtexDialogBase</receiver>
<slot>styleChanged(const QString &amp;)</slot>
</connection>
<connection>
<sender>styleED</sender>
<signal>returnPressed()</signal>
<receiver>QBibtexDialogBase</receiver>
<slot>change_adaptor()</slot>
</connection>
<connection> <connection>
<sender>deletePB</sender> <sender>deletePB</sender>
<signal>clicked()</signal> <signal>clicked()</signal>
@ -514,6 +343,24 @@
<receiver>QBibtexDialogBase</receiver> <receiver>QBibtexDialogBase</receiver>
<slot>databaseChanged()</slot> <slot>databaseChanged()</slot>
</connection> </connection>
<connection>
<sender>styleED</sender>
<signal>returnPressed()</signal>
<receiver>QBibtexDialogBase</receiver>
<slot>change_adaptor()</slot>
</connection>
<connection>
<sender>styleED</sender>
<signal>textChanged(const QString&amp;)</signal>
<receiver>QBibtexDialogBase</receiver>
<slot>change_adaptor()</slot>
</connection>
<connection>
<sender>styleListLB</sender>
<signal>highlighted(const QString&amp;)</signal>
<receiver>QBibtexDialogBase</receiver>
<slot>styleChanged(const QString &amp;)</slot>
</connection>
<slot access="public">addPressed()</slot> <slot access="public">addPressed()</slot>
<slot access="public">browsePressed()</slot> <slot access="public">browsePressed()</slot>
<slot access="public">change_adaptor()</slot> <slot access="public">change_adaptor()</slot>
@ -521,4 +368,16 @@
<slot access="public">databaseChanged()</slot> <slot access="public">databaseChanged()</slot>
<slot access="public">styleChanged(const QString &amp;)</slot> <slot access="public">styleChanged(const QString &amp;)</slot>
</connections> </connections>
<tabstops>
<tabstop>databaseLB</tabstop>
<tabstop>databasePB</tabstop>
<tabstop>deletePB</tabstop>
<tabstop>styleED</tabstop>
<tabstop>stylePB</tabstop>
<tabstop>styleListLB</tabstop>
<tabstop>styleListPB</tabstop>
<tabstop>bibtocCB</tabstop>
<tabstop>okPB</tabstop>
<tabstop>closePB</tabstop>
</tabstops>
</UI> </UI>

File diff suppressed because it is too large Load Diff

View File

@ -13,15 +13,15 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>432</width> <width>392</width>
<height>417</height> <height>340</height>
</rect> </rect>
</property> </property>
<property stdset="1"> <property stdset="1">
<name>caption</name> <name>caption</name>
<string>External Material</string> <string>External Material</string>
</property> </property>
<vbox> <grid>
<property stdset="1"> <property stdset="1">
<name>margin</name> <name>margin</name>
<number>11</number> <number>11</number>
@ -30,460 +30,89 @@
<name>spacing</name> <name>spacing</name>
<number>6</number> <number>6</number>
</property> </property>
<widget> <widget row="2" column="0" >
<class>QLayoutWidget</class> <class>QLabel</class>
<property stdset="1"> <property stdset="1">
<name>name</name> <name>name</name>
<cstring>Layout14</cstring> <cstring>templateLA</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Template:</string>
</property>
<property>
<name>buddy</name>
<cstring>externalCO</cstring>
</property>
<property>
<name>toolTip</name>
<string>Available templates</string>
</property> </property>
<hbox>
<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>Layout5</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>QLabel</class>
<property stdset="1">
<name>name</name>
<cstring>templateLA</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Template</string>
</property>
<property>
<name>buddy</name>
<cstring>externalCO</cstring>
</property>
<property>
<name>toolTip</name>
<string>Available templates</string>
</property>
</widget>
<widget>
<class>QComboBox</class>
<property stdset="1">
<name>name</name>
<cstring>externalCO</cstring>
</property>
<property>
<name>toolTip</name>
<string>Available templates</string>
</property>
</widget>
</vbox>
</widget>
<spacer>
<property>
<name>name</name>
<cstring>Spacer3_2</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>
</hbox>
</widget> </widget>
<widget> <widget row="3" column="0" rowspan="1" colspan="3" >
<class>QLayoutWidget</class> <class>QTextView</class>
<property stdset="1"> <property stdset="1">
<name>name</name> <name>name</name>
<cstring>Layout11</cstring> <cstring>externalTV</cstring>
</property>
<property>
<name>toolTip</name>
<string>LaTeX error messages</string>
</property> </property>
<hbox>
<property stdset="1">
<name>margin</name>
<number>0</number>
</property>
<property stdset="1">
<name>spacing</name>
<number>6</number>
</property>
<widget>
<class>QTextView</class>
<property stdset="1">
<name>name</name>
<cstring>externalTV</cstring>
</property>
<property>
<name>toolTip</name>
<string>LaTeX error messages</string>
</property>
</widget>
<widget>
<class>QLayoutWidget</class>
<property stdset="1">
<name>name</name>
<cstring>Layout9</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>QPushButton</class>
<property stdset="1">
<name>name</name>
<cstring>editPB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Edit file</string>
</property>
<property>
<name>toolTip</name>
<string>Edit the file externally</string>
</property>
</widget>
<widget>
<class>QPushButton</class>
<property stdset="1">
<name>name</name>
<cstring>viewPB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;View file</string>
</property>
<property>
<name>toolTip</name>
<string>View the file</string>
</property>
</widget>
<widget>
<class>QPushButton</class>
<property stdset="1">
<name>name</name>
<cstring>updatePB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Update</string>
</property>
<property>
<name>toolTip</name>
<string>Update the material</string>
</property>
</widget>
<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>
</hbox>
</widget> </widget>
<widget> <widget row="1" column="0" >
<class>QLayoutWidget</class> <class>QLabel</class>
<property stdset="1"> <property stdset="1">
<name>name</name> <name>name</name>
<cstring>Layout23</cstring> <cstring>paramsLA</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Parameters:</string>
</property>
<property>
<name>buddy</name>
<cstring>paramsED</cstring>
</property>
<property>
<name>toolTip</name>
<string>Parameters</string>
</property> </property>
<hbox>
<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>Layout21</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>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>QLabel</class>
<property stdset="1">
<name>name</name>
<cstring>fileLA</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;File</string>
</property>
<property>
<name>buddy</name>
<cstring>fileED</cstring>
</property>
<property>
<name>toolTip</name>
<string>Filename</string>
</property>
</widget>
<widget>
<class>QLineEdit</class>
<property stdset="1">
<name>name</name>
<cstring>fileED</cstring>
</property>
<property>
<name>toolTip</name>
<string>Filename</string>
</property>
</widget>
</vbox>
</widget>
<spacer>
<property>
<name>name</name>
<cstring>Spacer5</cstring>
</property>
<property stdset="1">
<name>orientation</name>
<enum>Vertical</enum>
</property>
<property stdset="1">
<name>sizeType</name>
<enum>Minimum</enum>
</property>
<property>
<name>sizeHint</name>
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</vbox>
</widget>
<widget>
<class>QLayoutWidget</class>
<property stdset="1">
<name>name</name>
<cstring>Layout20</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>QPushButton</class>
<property stdset="1">
<name>name</name>
<cstring>browsePB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Browse ...</string>
</property>
</widget>
<spacer>
<property>
<name>name</name>
<cstring>Spacer4</cstring>
</property>
<property stdset="1">
<name>orientation</name>
<enum>Vertical</enum>
</property>
<property stdset="1">
<name>sizeType</name>
<enum>Minimum</enum>
</property>
<property>
<name>sizeHint</name>
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</vbox>
</widget>
<spacer>
<property>
<name>name</name>
<cstring>Spacer2_2</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>
</hbox>
</widget> </widget>
<widget> <widget row="0" column="2" >
<class>QLayoutWidget</class> <class>QPushButton</class>
<property stdset="1"> <property stdset="1">
<name>name</name> <name>name</name>
<cstring>Layout16</cstring> <cstring>browsePB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Browse...</string>
</property> </property>
<hbox>
<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>Layout12</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>QLabel</class>
<property stdset="1">
<name>name</name>
<cstring>paramsLA</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Parameters</string>
</property>
<property>
<name>buddy</name>
<cstring>paramsED</cstring>
</property>
<property>
<name>toolTip</name>
<string>Parameters</string>
</property>
</widget>
<widget>
<class>QLineEdit</class>
<property stdset="1">
<name>name</name>
<cstring>paramsED</cstring>
</property>
<property>
<name>toolTip</name>
<string>Parameters</string>
</property>
</widget>
</vbox>
</widget>
<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>Expanding</enum>
</property>
<property>
<name>sizeHint</name>
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</hbox>
</widget> </widget>
<widget> <widget row="1" column="1" rowspan="1" colspan="2" >
<class>QLineEdit</class>
<property stdset="1">
<name>name</name>
<cstring>paramsED</cstring>
</property>
<property>
<name>toolTip</name>
<string>Parameters</string>
</property>
</widget>
<widget row="2" column="1" rowspan="1" colspan="2" >
<class>QComboBox</class>
<property stdset="1">
<name>name</name>
<cstring>externalCO</cstring>
</property>
<property>
<name>toolTip</name>
<string>Available templates</string>
</property>
</widget>
<widget row="5" column="0" rowspan="1" colspan="3" >
<class>QLayoutWidget</class> <class>QLayoutWidget</class>
<property stdset="1"> <property stdset="1">
<name>name</name> <name>name</name>
@ -566,7 +195,120 @@
</widget> </widget>
</hbox> </hbox>
</widget> </widget>
</vbox> <widget row="0" column="0" >
<class>QLabel</class>
<property stdset="1">
<name>name</name>
<cstring>fileLA</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;File:</string>
</property>
<property>
<name>buddy</name>
<cstring>fileED</cstring>
</property>
<property>
<name>toolTip</name>
<string>Filename</string>
</property>
</widget>
<widget row="0" column="1" >
<class>QLineEdit</class>
<property stdset="1">
<name>name</name>
<cstring>fileED</cstring>
</property>
<property>
<name>toolTip</name>
<string>Filename</string>
</property>
</widget>
<widget row="4" column="0" rowspan="1" colspan="3" >
<class>QLayoutWidget</class>
<property stdset="1">
<name>name</name>
<cstring>Layout3</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>QPushButton</class>
<property stdset="1">
<name>name</name>
<cstring>editPB</cstring>
</property>
<property stdset="1">
<name>sizePolicy</name>
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>0</vsizetype>
</sizepolicy>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Edit file</string>
</property>
<property>
<name>toolTip</name>
<string>Edit the file externally</string>
</property>
</widget>
<widget>
<class>QPushButton</class>
<property stdset="1">
<name>name</name>
<cstring>viewPB</cstring>
</property>
<property stdset="1">
<name>sizePolicy</name>
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>0</vsizetype>
</sizepolicy>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;View file</string>
</property>
<property>
<name>toolTip</name>
<string>View the file</string>
</property>
</widget>
<widget>
<class>QPushButton</class>
<property stdset="1">
<name>name</name>
<cstring>updatePB</cstring>
</property>
<property stdset="1">
<name>sizePolicy</name>
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>0</vsizetype>
</sizepolicy>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Update</string>
</property>
<property>
<name>toolTip</name>
<string>Update the material</string>
</property>
</widget>
</hbox>
</widget>
</grid>
</widget> </widget>
<connections> <connections>
<connection> <connection>

View File

@ -13,14 +13,18 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>348</width> <width>416</width>
<height>209</height> <height>225</height>
</rect> </rect>
</property> </property>
<property stdset="1"> <property stdset="1">
<name>caption</name> <name>caption</name>
<string>Include File</string> <string>Include File</string>
</property> </property>
<property stdset="1">
<name>sizeGripEnabled</name>
<bool>true</bool>
</property>
<grid> <grid>
<property stdset="1"> <property stdset="1">
<name>margin</name> <name>margin</name>
@ -30,186 +34,35 @@
<name>spacing</name> <name>spacing</name>
<number>6</number> <number>6</number>
</property> </property>
<widget row="2" column="0" rowspan="2" colspan="1" > <widget row="1" column="1" >
<class>QButtonGroup</class> <class>QComboBox</class>
<property stdset="1"> <item>
<name>name</name> <property>
<cstring>includeBG</cstring> <name>text</name>
</property> <string>Include</string>
<property stdset="1">
<name>sizePolicy</name>
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>7</vsizetype>
</sizepolicy>
</property>
<property stdset="1">
<name>title</name>
<string>Include type</string>
</property>
<vbox>
<property stdset="1">
<name>margin</name>
<number>11</number>
</property> </property>
<property stdset="1"> </item>
<name>spacing</name> <item>
<number>6</number> <property>
<name>text</name>
<string>Input</string>
</property> </property>
<widget> </item>
<class>QRadioButton</class> <item>
<property stdset="1"> <property>
<name>name</name> <name>text</name>
<cstring>includeRB</cstring> <string>Verbatim</string>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Include</string>
</property>
<property>
<name>toolTip</name>
<string>FIXME</string>
</property>
</widget>
<widget>
<class>QRadioButton</class>
<property stdset="1">
<name>name</name>
<cstring>inputRB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>I&amp;nput</string>
</property>
<property>
<name>toolTip</name>
<string>FIXME</string>
</property>
</widget>
<widget>
<class>QRadioButton</class>
<property stdset="1">
<name>name</name>
<cstring>verbatimRB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Verbatim</string>
</property>
<property>
<name>toolTip</name>
<string>FIXME</string>
</property>
</widget>
</vbox>
</widget>
<widget row="2" column="1" rowspan="2" colspan="2" >
<class>QButtonGroup</class>
<property stdset="1">
<name>name</name>
<cstring>optionsBG</cstring>
</property>
<property stdset="1">
<name>sizePolicy</name>
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>7</vsizetype>
</sizepolicy>
</property>
<property stdset="1">
<name>title</name>
<string>Options</string>
</property>
<vbox>
<property stdset="1">
<name>margin</name>
<number>11</number>
</property> </property>
<property stdset="1"> </item>
<name>spacing</name>
<number>6</number>
</property>
<widget>
<class>QCheckBox</class>
<property stdset="1">
<name>name</name>
<cstring>typesetCB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Don't typeset</string>
</property>
<property>
<name>toolTip</name>
<string>FIXME</string>
</property>
</widget>
<widget>
<class>QCheckBox</class>
<property stdset="1">
<name>name</name>
<cstring>visiblespaceCB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>Visible &amp;Space</string>
</property>
<property>
<name>toolTip</name>
<string>FIXME</string>
</property>
</widget>
</vbox>
</widget>
<widget row="0" column="0" rowspan="1" colspan="4" >
<class>QLabel</class>
<property stdset="1"> <property stdset="1">
<name>name</name> <name>name</name>
<cstring>filenameLA</cstring> <cstring>typeCO</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Filename:</string>
</property>
<property>
<name>buddy</name>
<cstring>filenameED</cstring>
</property>
<property>
<name>toolTip</name>
<string></string>
</property> </property>
</widget> </widget>
<widget row="1" column="0" rowspan="1" colspan="3" > <spacer row="1" column="3" >
<class>QLineEdit</class>
<property stdset="1">
<name>name</name>
<cstring>filenameED</cstring>
</property>
<property>
<name>toolTip</name>
<string>File name to include</string>
</property>
</widget>
<widget row="1" column="3" >
<class>QPushButton</class>
<property stdset="1">
<name>name</name>
<cstring>browsePB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Browse ...</string>
</property>
<property>
<name>toolTip</name>
<string>Select a file</string>
</property>
</widget>
<spacer row="4" column="0" rowspan="1" colspan="2" >
<property> <property>
<name>name</name> <name>name</name>
<cstring>Spacer3</cstring> <cstring>Spacer27</cstring>
</property> </property>
<property stdset="1"> <property stdset="1">
<name>orientation</name> <name>orientation</name>
@ -227,48 +80,26 @@
</size> </size>
</property> </property>
</spacer> </spacer>
<widget row="4" column="2" > <widget row="0" column="0" >
<class>QPushButton</class> <class>QLabel</class>
<property stdset="1"> <property stdset="1">
<name>name</name> <name>name</name>
<cstring>okPB</cstring> <cstring>filenameLA</cstring>
</property> </property>
<property stdset="1"> <property stdset="1">
<name>text</name> <name>text</name>
<string>&amp;OK</string> <string>&amp;File:</string>
</property> </property>
<property stdset="1"> <property>
<name>default</name> <name>buddy</name>
<bool>true</bool> <cstring>filenameED</cstring>
</property>
</widget>
<widget row="4" column="3" >
<class>QPushButton</class>
<property stdset="1">
<name>name</name>
<cstring>closePB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Close</string>
</property>
</widget>
<widget row="2" column="3" >
<class>QPushButton</class>
<property stdset="1">
<name>name</name>
<cstring>loadPB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Load</string>
</property> </property>
<property> <property>
<name>toolTip</name> <name>toolTip</name>
<string>Load the file</string> <string></string>
</property> </property>
</widget> </widget>
<spacer row="3" column="3" > <spacer row="2" column="4" rowspan="2" colspan="1" >
<property> <property>
<name>name</name> <name>name</name>
<cstring>Spacer13</cstring> <cstring>Spacer13</cstring>
@ -289,27 +120,194 @@
</size> </size>
</property> </property>
</spacer> </spacer>
<widget row="3" column="1" rowspan="1" colspan="3" >
<class>QCheckBox</class>
<property stdset="1">
<name>name</name>
<cstring>visiblespaceCB</cstring>
</property>
<property stdset="1">
<name>sizePolicy</name>
<sizepolicy>
<hsizetype>3</hsizetype>
<vsizetype>0</vsizetype>
</sizepolicy>
</property>
<property stdset="1">
<name>text</name>
<string>Visible &amp;Space</string>
</property>
<property>
<name>toolTip</name>
<string>FIXME</string>
</property>
</widget>
<widget row="2" column="1" rowspan="1" colspan="3" >
<class>QCheckBox</class>
<property stdset="1">
<name>name</name>
<cstring>typesetCB</cstring>
</property>
<property stdset="1">
<name>sizePolicy</name>
<sizepolicy>
<hsizetype>3</hsizetype>
<vsizetype>0</vsizetype>
</sizepolicy>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Don't typeset</string>
</property>
<property>
<name>toolTip</name>
<string>FIXME</string>
</property>
</widget>
<widget row="1" column="4" >
<class>QPushButton</class>
<property stdset="1">
<name>name</name>
<cstring>loadPB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Load</string>
</property>
<property>
<name>toolTip</name>
<string>Load the file</string>
</property>
</widget>
<widget row="6" column="0" rowspan="1" colspan="5" >
<class>QLayoutWidget</class>
<property stdset="1">
<name>name</name>
<cstring>Layout3</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>okPB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;OK</string>
</property>
<property stdset="1">
<name>default</name>
<bool>true</bool>
</property>
</widget>
<widget>
<class>QPushButton</class>
<property stdset="1">
<name>name</name>
<cstring>closePB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Close</string>
</property>
</widget>
</hbox>
</widget>
<spacer row="4" column="2" >
<property>
<name>name</name>
<cstring>Spacer13_2</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="0" column="4" >
<class>QPushButton</class>
<property stdset="1">
<name>name</name>
<cstring>browsePB</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Browse...</string>
</property>
<property>
<name>toolTip</name>
<string>Select a file</string>
</property>
</widget>
<widget row="1" column="0" >
<class>QLabel</class>
<property stdset="1">
<name>name</name>
<cstring>TextLabel1</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Include Type:</string>
</property>
<property>
<name>buddy</name>
<cstring>typeCO</cstring>
</property>
</widget>
<widget row="0" column="1" rowspan="1" colspan="3" >
<class>QLineEdit</class>
<property stdset="1">
<name>name</name>
<cstring>filenameED</cstring>
</property>
<property>
<name>toolTip</name>
<string>File name to include</string>
</property>
</widget>
</grid> </grid>
</widget> </widget>
<connections> <connections>
<connection>
<sender>includeRB</sender>
<signal>toggled(bool)</signal>
<receiver>QIncludeDialogBase</receiver>
<slot>change_adaptor()</slot>
</connection>
<connection>
<sender>inputRB</sender>
<signal>toggled(bool)</signal>
<receiver>QIncludeDialogBase</receiver>
<slot>change_adaptor()</slot>
</connection>
<connection>
<sender>verbatimRB</sender>
<signal>toggled(bool)</signal>
<receiver>QIncludeDialogBase</receiver>
<slot>change_adaptor()</slot>
</connection>
<connection> <connection>
<sender>typesetCB</sender> <sender>typesetCB</sender>
<signal>toggled(bool)</signal> <signal>toggled(bool)</signal>
@ -340,15 +338,19 @@
<receiver>QIncludeDialogBase</receiver> <receiver>QIncludeDialogBase</receiver>
<slot>browseClicked()</slot> <slot>browseClicked()</slot>
</connection> </connection>
<connection>
<sender>includeBG</sender>
<signal>clicked(int)</signal>
<receiver>QIncludeDialogBase</receiver>
<slot>typeChanged(int)</slot>
</connection>
<slot access="public">browseClicked()</slot> <slot access="public">browseClicked()</slot>
<slot access="public">change_adaptor()</slot> <slot access="public">change_adaptor()</slot>
<slot access="public">loadClicked()</slot> <slot access="public">loadClicked()</slot>
<slot access="public">typeChanged(int)</slot> <slot access="public">typeChanged(int)</slot>
</connections> </connections>
<tabstops>
<tabstop>filenameED</tabstop>
<tabstop>browsePB</tabstop>
<tabstop>typeCO</tabstop>
<tabstop>typesetCB</tabstop>
<tabstop>visiblespaceCB</tabstop>
<tabstop>loadPB</tabstop>
<tabstop>okPB</tabstop>
<tabstop>closePB</tabstop>
</tabstops>
</UI> </UI>

View File

@ -13,14 +13,18 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>246</width> <width>367</width>
<height>321</height> <height>425</height>
</rect> </rect>
</property> </property>
<property stdset="1"> <property stdset="1">
<name>caption</name> <name>caption</name>
<string>Reference</string> <string>Reference</string>
</property> </property>
<property stdset="1">
<name>sizeGripEnabled</name>
<bool>true</bool>
</property>
<grid> <grid>
<property stdset="1"> <property stdset="1">
<name>margin</name> <name>margin</name>
@ -30,51 +34,65 @@
<name>spacing</name> <name>spacing</name>
<number>6</number> <number>6</number>
</property> </property>
<widget row="3" column="1" rowspan="1" colspan="3" >
<class>QLineEdit</class>
<property stdset="1">
<name>name</name>
<cstring>nameED</cstring>
</property>
</widget>
<widget row="4" column="0" > <widget row="4" column="0" >
<class>QLabel</class> <class>QLabel</class>
<property stdset="1"> <property stdset="1">
<name>name</name> <name>name</name>
<cstring>typeLA</cstring> <cstring>referenceL</cstring>
</property> </property>
<property stdset="1"> <property stdset="1">
<name>text</name> <name>text</name>
<string>&amp;Type</string> <string>&amp;Reference:</string>
</property> </property>
<property stdset="1"> <property stdset="1">
<name>alignment</name> <name>alignment</name>
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignLeft</set>
</property> </property>
<property> <property>
<name>buddy</name> <name>buddy</name>
<cstring>typeLA</cstring> <cstring>referenceED</cstring>
</property> </property>
<property> <property>
<name>hAlign</name> <name>hAlign</name>
</property> </property>
</widget> </widget>
<widget row="1" column="0" > <widget row="4" column="1" rowspan="1" colspan="2" >
<class>QPushButton</class> <class>QLineEdit</class>
<property stdset="1"> <property stdset="1">
<name>name</name> <name>name</name>
<cstring>updatePB</cstring> <cstring>referenceED</cstring>
</property>
</widget>
<widget row="0" column="0" >
<class>QLabel</class>
<property stdset="1">
<name>name</name>
<cstring>bufferL</cstring>
</property> </property>
<property stdset="1"> <property stdset="1">
<name>text</name> <name>text</name>
<string>&amp;Update</string> <string>&amp;Document:</string>
</property> </property>
<property> <property>
<name>toolTip</name> <name>buddy</name>
<string>Update the reference list</string> <cstring>bufferCO</cstring>
</property> </property>
</widget> </widget>
<widget row="1" column="1" > <widget row="0" column="1" rowspan="1" colspan="2" >
<class>QComboBox</class>
<property stdset="1">
<name>name</name>
<cstring>bufferCO</cstring>
</property>
<property stdset="1">
<name>sizePolicy</name>
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>0</vsizetype>
</sizepolicy>
</property>
</widget>
<widget row="3" column="0" >
<class>QCheckBox</class> <class>QCheckBox</class>
<property stdset="1"> <property stdset="1">
<name>name</name> <name>name</name>
@ -89,33 +107,34 @@
<string>Sort references in alphabetical order</string> <string>Sort references in alphabetical order</string>
</property> </property>
</widget> </widget>
<spacer row="1" column="2" > <widget row="3" column="1" >
<property> <class>QPushButton</class>
<property stdset="1">
<name>name</name> <name>name</name>
<cstring>Spacer6</cstring> <cstring>updatePB</cstring>
</property> </property>
<property stdset="1"> <property stdset="1">
<name>orientation</name> <name>text</name>
<enum>Horizontal</enum> <string>&amp;Update</string>
</property>
<property stdset="1">
<name>sizeType</name>
<enum>Expanding</enum>
</property> </property>
<property> <property>
<name>sizeHint</name> <name>toolTip</name>
<size> <string>Update the reference list</string>
<width>20</width>
<height>20</height>
</size>
</property> </property>
</spacer> </widget>
<widget row="1" column="3" > <widget row="3" column="2" >
<class>QPushButton</class> <class>QPushButton</class>
<property stdset="1"> <property stdset="1">
<name>name</name> <name>name</name>
<cstring>gotoPB</cstring> <cstring>gotoPB</cstring>
</property> </property>
<property stdset="1">
<name>sizePolicy</name>
<sizepolicy>
<hsizetype>3</hsizetype>
<vsizetype>0</vsizetype>
</sizepolicy>
</property>
<property stdset="1"> <property stdset="1">
<name>text</name> <name>text</name>
<string>&amp;Goto</string> <string>&amp;Goto</string>
@ -125,117 +144,7 @@
<string>Move the document cursor to reference</string> <string>Move the document cursor to reference</string>
</property> </property>
</widget> </widget>
<widget row="4" column="1" rowspan="1" colspan="3" > <widget row="7" column="0" rowspan="1" colspan="3" >
<class>QComboBox</class>
<item>
<property>
<name>text</name>
<string>Reference</string>
</property>
</item>
<item>
<property>
<name>text</name>
<string>Page number</string>
</property>
</item>
<item>
<property>
<name>text</name>
<string>Ref on page xxx</string>
</property>
</item>
<item>
<property>
<name>text</name>
<string>On page xxx</string>
</property>
</item>
<item>
<property>
<name>text</name>
<string>Pretty reference</string>
</property>
</item>
<property stdset="1">
<name>name</name>
<cstring>typeCO</cstring>
</property>
<property>
<name>toolTip</name>
<string>Reference as it appears in output</string>
</property>
</widget>
<widget row="2" column="0" >
<class>QLabel</class>
<property stdset="1">
<name>name</name>
<cstring>referenceL</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Reference:</string>
</property>
<property stdset="1">
<name>alignment</name>
<set>AlignVCenter|AlignRight</set>
</property>
<property>
<name>buddy</name>
<cstring>referenceED</cstring>
</property>
<property>
<name>hAlign</name>
</property>
</widget>
<widget row="3" column="0" >
<class>QLabel</class>
<property stdset="1">
<name>name</name>
<cstring>nameL</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Name:</string>
</property>
<property stdset="1">
<name>alignment</name>
<set>AlignVCenter|AlignRight</set>
</property>
<property>
<name>buddy</name>
<cstring>nameED</cstring>
</property>
<property>
<name>hAlign</name>
</property>
</widget>
<widget row="0" column="0" rowspan="1" colspan="4" >
<class>QListBox</class>
<property stdset="1">
<name>name</name>
<cstring>refsLB</cstring>
</property>
<property stdset="1">
<name>sizePolicy</name>
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>3</vsizetype>
</sizepolicy>
</property>
<property>
<name>toolTip</name>
<string>Available references</string>
</property>
</widget>
<widget row="2" column="1" rowspan="1" colspan="3" >
<class>QLineEdit</class>
<property stdset="1">
<name>name</name>
<cstring>referenceED</cstring>
</property>
</widget>
<widget row="5" column="0" rowspan="1" colspan="4" >
<class>QLayoutWidget</class> <class>QLayoutWidget</class>
<property stdset="1"> <property stdset="1">
<name>name</name> <name>name</name>
@ -299,6 +208,146 @@
</widget> </widget>
</hbox> </hbox>
</widget> </widget>
<widget row="2" column="0" rowspan="1" colspan="3" >
<class>QListBox</class>
<property stdset="1">
<name>name</name>
<cstring>refsLB</cstring>
</property>
<property stdset="1">
<name>enabled</name>
<bool>true</bool>
</property>
<property stdset="1">
<name>sizePolicy</name>
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>3</vsizetype>
</sizepolicy>
</property>
<property>
<name>toolTip</name>
<string>Available references</string>
</property>
</widget>
<widget row="1" column="0" rowspan="1" colspan="3" >
<class>QLabel</class>
<property stdset="1">
<name>name</name>
<cstring>refsL</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>Available references in selected document:</string>
</property>
</widget>
<widget row="5" column="1" rowspan="1" colspan="2" >
<class>QComboBox</class>
<item>
<property>
<name>text</name>
<string>&lt;reference&gt;</string>
</property>
</item>
<item>
<property>
<name>text</name>
<string>&lt;page&gt;</string>
</property>
</item>
<item>
<property>
<name>text</name>
<string>on page &lt;page&gt;</string>
</property>
</item>
<item>
<property>
<name>text</name>
<string>&lt;reference&gt; on page &lt;page&gt;</string>
</property>
</item>
<item>
<property>
<name>text</name>
<string>Formatted reference</string>
</property>
</item>
<property stdset="1">
<name>name</name>
<cstring>typeCO</cstring>
</property>
<property stdset="1">
<name>sizePolicy</name>
<sizepolicy>
<hsizetype>1</hsizetype>
<vsizetype>0</vsizetype>
</sizepolicy>
</property>
<property>
<name>toolTip</name>
<string>Reference as it appears in output</string>
</property>
</widget>
<widget row="6" column="1" rowspan="1" colspan="2" >
<class>QLineEdit</class>
<property stdset="1">
<name>name</name>
<cstring>nameED</cstring>
</property>
<property stdset="1">
<name>enabled</name>
<bool>false</bool>
</property>
</widget>
<widget row="6" column="0" >
<class>QLabel</class>
<property stdset="1">
<name>name</name>
<cstring>nameL</cstring>
</property>
<property stdset="1">
<name>enabled</name>
<bool>false</bool>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Name:</string>
</property>
<property stdset="1">
<name>alignment</name>
<set>AlignVCenter|AlignLeft</set>
</property>
<property>
<name>buddy</name>
<cstring>nameED</cstring>
</property>
<property>
<name>hAlign</name>
</property>
</widget>
<widget row="5" column="0" >
<class>QLabel</class>
<property stdset="1">
<name>name</name>
<cstring>typeLA</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>&amp;Format:</string>
</property>
<property stdset="1">
<name>alignment</name>
<set>AlignVCenter|AlignLeft</set>
</property>
<property>
<name>buddy</name>
<cstring>typeLA</cstring>
</property>
<property>
<name>hAlign</name>
</property>
</widget>
</grid> </grid>
</widget> </widget>
<connections> <connections>
@ -356,6 +405,12 @@
<receiver>QRefDialogBase</receiver> <receiver>QRefDialogBase</receiver>
<slot>updateClicked()</slot> <slot>updateClicked()</slot>
</connection> </connection>
<connection>
<sender>bufferCO</sender>
<signal>activated(int)</signal>
<receiver>QRefDialogBase</receiver>
<slot>updateClicked()</slot>
</connection>
<slot access="public">changed_adaptor()</slot> <slot access="public">changed_adaptor()</slot>
<slot access="public">gotoClicked()</slot> <slot access="public">gotoClicked()</slot>
<slot access="public">refHighlighted(const QString&amp;)</slot> <slot access="public">refHighlighted(const QString&amp;)</slot>
@ -364,9 +419,10 @@
<slot access="public">updateClicked()</slot> <slot access="public">updateClicked()</slot>
</connections> </connections>
<tabstops> <tabstops>
<tabstop>bufferCO</tabstop>
<tabstop>refsLB</tabstop> <tabstop>refsLB</tabstop>
<tabstop>updatePB</tabstop>
<tabstop>sortCB</tabstop> <tabstop>sortCB</tabstop>
<tabstop>updatePB</tabstop>
<tabstop>gotoPB</tabstop> <tabstop>gotoPB</tabstop>
<tabstop>referenceED</tabstop> <tabstop>referenceED</tabstop>
<tabstop>nameED</tabstop> <tabstop>nameED</tabstop>