]> git.lyx.org Git - features.git/commitdiff
getting rid of qt4 convenience classes:
authorEdwin Leuven <e.leuven@gmail.com>
Sun, 7 May 2006 10:20:43 +0000 (10:20 +0000)
committerEdwin Leuven <e.leuven@gmail.com>
Sun, 7 May 2006 10:20:43 +0000 (10:20 +0000)
Index: src/frontends/qt4/QCitationDialog.C
Index: src/frontends/qt4/QCitationDialog.h
Index: src/frontends/qt4/ui/QCitationFindUi.ui

Index: src/frontends/qt4/QPrefsDialog.C
Index: src/frontends/qt4/QPrefsDialog.h
Index: src/frontends/qt4/ui/QPrefColorsUi.ui
Index: src/frontends/qt4/ui/QPrefCopiersUi.ui
Index: src/frontends/qt4/ui/QPrefFileformatsUi.ui
Index: src/frontends/qt4/ui/QPrefConvertersUi.ui

Index: src/frontends/qt4/QParagraphDialog.C

no more qt3 drag n drop:

Index: src/frontends/qt4/QWorkArea.C

as discussed on list:

Index: src/frontends/qt4/QLyXKeySym.C
Index: src/frontends/qt4/QLyXKeySym.h

bit of repair here:

Index: src/frontends/qt4/ui/QAboutUi.ui
Index: src/frontends/qt4/QAbout.C

bit of cleaning here (no separate color column, but rather icon)

Index: src/frontends/qt4/QBranches.C

got rid of this altogether:

Index: src/frontends/qt4/qcoloritem.C
Index: src/frontends/qt4/qcoloritem.h
Index: src/frontends/qt4/Makefile.am

+ filedialog to qt4 one

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13805 a592a061-630c-0410-9148-cb99ea01b6c8

22 files changed:
src/frontends/qt4/FileDialog.C
src/frontends/qt4/FileDialog_private.C
src/frontends/qt4/FileDialog_private.h
src/frontends/qt4/Makefile.am
src/frontends/qt4/QAbout.C
src/frontends/qt4/QBranches.C
src/frontends/qt4/QCitationDialog.C
src/frontends/qt4/QCitationDialog.h
src/frontends/qt4/QLyXKeySym.C
src/frontends/qt4/QLyXKeySym.h
src/frontends/qt4/QParagraphDialog.C
src/frontends/qt4/QPrefsDialog.C
src/frontends/qt4/QPrefsDialog.h
src/frontends/qt4/QWorkArea.C
src/frontends/qt4/qcoloritem.C [deleted file]
src/frontends/qt4/qcoloritem.h [deleted file]
src/frontends/qt4/ui/QAboutUi.ui
src/frontends/qt4/ui/QCitationFindUi.ui
src/frontends/qt4/ui/QPrefColorsUi.ui
src/frontends/qt4/ui/QPrefConvertersUi.ui
src/frontends/qt4/ui/QPrefCopiersUi.ui
src/frontends/qt4/ui/QPrefFileformatsUi.ui

index 0b95afaab780445fc1d289131e71c020e7a4d6c5..99ea166af72f790e641f698c2def2c810b99b005 100644 (file)
@@ -80,17 +80,16 @@ FileDialog::Result const FileDialog::save(string const & path,
 
 #ifdef USE_NATIVE_FILEDIALOG
        string const startsWith = makeAbsPath(suggested, path);
-       result.second = fromqstr(
-               Q3FileDialog::getSaveFileName(toqstr(startsWith),
-                                            toqstr(filters.as_string()),
-                                            qApp->focusWidget() ? qApp->focusWidget() : qApp->mainWidget(),
-                                            title_.c_str()));
+       result.second = fromqstr(QFileDialog::getSaveFileName(
+               qApp->focusWidget() ? qApp->focusWidget() : qApp->mainWidget(),
+               title_.c_str(), toqstr(startsWith), toqstr(filters.as_string()) ));
 #else
-       LyXFileDialog dlg(path, filters, title_, private_->b1, private_->b2);
-       dlg.setMode(Q3FileDialog::AnyFile);
+       LyXFileDialog dlg(title_, path, filters, private_->b1, private_->b2);
+       dlg.setFileMode(QFileDialog::AnyFile);
+       dlg.setAcceptMode(QFileDialog::AcceptSave);
 
        if (!suggested.empty())
-               dlg.setSelection(toqstr(suggested));
+               dlg.selectFile(toqstr(suggested));
 
        lyxerr[Debug::GUI] << "Synchronous FileDialog: " << endl;
        int res = dlg.exec();
@@ -115,16 +114,14 @@ FileDialog::Result const FileDialog::open(string const & path,
 
 #ifdef USE_NATIVE_FILEDIALOG
        string const startsWith = makeAbsPath(suggested, path);
-       result.second = fromqstr(
-               Q3FileDialog::getOpenFileName(toqstr(startsWith),
-                                            toqstr(filters.as_string()),
-                                            qApp->focusWidget() ? qApp->focusWidget() : qApp->mainWidget(),
-                                            title_.c_str()));
+       result.second = fromqstr(QFileDialog::getOpenFileName(
+               qApp->focusWidget() ? qApp->focusWidget() : qApp->mainWidget(), 
+               title_.c_str(), toqstr(startsWith), toqstr(filters.as_string()) ));
 #else
-       LyXFileDialog dlg(path, filters, title_, private_->b1, private_->b2);
+       LyXFileDialog dlg(title_, path, filters, private_->b1, private_->b2);
 
        if (!suggested.empty())
-               dlg.setSelection(toqstr(suggested));
+               dlg.selectFile(toqstr(suggested));
 
        lyxerr[Debug::GUI] << "Synchronous FileDialog: " << endl;
        int res = dlg.exec();
@@ -147,19 +144,18 @@ FileDialog::Result const FileDialog::opendir(string const & path,
 
 #ifdef USE_NATIVE_FILEDIALOG
        string const startsWith = makeAbsPath(suggested, path);
-       result.second = fromqstr(
-               Q3FileDialog::getExistingDirectory(toqstr(startsWith),
-                                                 qApp->focusWidget() ? qApp->focusWidget() : qApp->mainWidget(),
-                                                 title_.c_str()));
+       result.second = fromqstr(QFileDialog::getExistingDirectory(
+               qApp->focusWidget() ? qApp->focusWidget() : qApp->mainWidget(),
+               title_.c_str(),toqstr(startsWith) ));
 #else
        FileFilterList const filter(_("Directories"));
 
-       LyXFileDialog dlg(path, filter, title_, private_->b1, private_->b2);
+       LyXFileDialog dlg(title_, path, filter, private_->b1, private_->b2);
 
-       dlg.setMode(Q3FileDialog::DirectoryOnly);
+       dlg.setFileMode(QFileDialog::DirectoryOnly);
 
        if (!suggested.empty())
-               dlg.setSelection(toqstr(suggested));
+               dlg.selectFile(toqstr(suggested));
 
        lyxerr[Debug::GUI] << "Synchronous FileDialog: " << endl;
        int res = dlg.exec();
index 8a31c7a1cca44330875cc6eabdeb26178898a643..ff851c309d6f04b2ebfe77a4c466bc3d6d61daac 100644 (file)
@@ -18,6 +18,7 @@
 
 #include <QApplication>
 #include <QToolButton>
+#include <QHBoxLayout>
 
 using lyx::support::split;
 
@@ -42,23 +43,25 @@ string const getLabel(string const & str) {
 } // namespace anon
 
 
-LyXFileDialog::LyXFileDialog(string const & p,
+LyXFileDialog::LyXFileDialog(string const & t,
+                            string const & p,
                             lyx::support::FileFilterList const & filters,
-                            string const & t,
                             FileDialog::Button const & b1,
                             FileDialog::Button const & b2)
-       : Q3FileDialog(toqstr(p), toqstr(filters.as_string()),
-                     qApp->focusWidget() ? qApp->focusWidget() : qApp->mainWidget(), toqstr(t), true),
-         b1_(0), b2_(0)
+       : QFileDialog(qApp->focusWidget() ? qApp->focusWidget() : qApp->mainWidget(),
+                     toqstr(t), toqstr(p), toqstr(filters.as_string())),
+                     b1_(0), b2_(0)
 {
        setCaption(toqstr(t));
 
+       QList<QHBoxLayout *> layout = findChildren<QHBoxLayout *>();
+
        if (!b1.first.empty()) {
                b1_dir_ = b1.second;
                b1_ = new QToolButton(this);
                connect(b1_, SIGNAL(clicked()), this, SLOT(buttonClicked()));
                b1_->setText(toqstr(getLabel(b1.first)));
-               addToolButton(b1_, true);
+               layout.at(0)->addWidget(b1_);
        }
 
        if (!b2.first.empty()) {
@@ -66,7 +69,7 @@ LyXFileDialog::LyXFileDialog(string const & p,
                b2_ = new QToolButton(this);
                connect(b2_, SIGNAL(clicked()), this, SLOT(buttonClicked()));
                b2_->setText(toqstr(getLabel(b2.first)));
-               addToolButton(b2_);
+               layout.at(0)->addWidget(b2_);
        }
 }
 
index cb1f40047e777371ab881d7a97940b43aefeda42..a8f3c80e4e3e966f4ee18bc96a9b275ce6aaac75 100644 (file)
@@ -14,7 +14,7 @@
 
 
 #include "frontends/FileDialog.h"
-#include <Q3FileDialog>
+#include <QFileDialog>
 
 namespace lyx {
 namespace support {
@@ -27,13 +27,13 @@ class FileFilterList;
 
 class QToolButton;
 
-class LyXFileDialog : public Q3FileDialog
+class LyXFileDialog : public QFileDialog
 {
        Q_OBJECT
 public:
-       LyXFileDialog(std::string const & path,
+       LyXFileDialog(std::string const & title,
+                     std::string const & path,
                      lyx::support::FileFilterList const & filters,
-                     std::string const & title,
                      FileDialog::Button const & b1,
                      FileDialog::Button const & b2);
 public slots:
index 6599ad0599e8d8e68989ea911fec9d2b54cb2235..e9cde4a51599b68b49056dd6690cc749ead2a342 100644 (file)
@@ -79,7 +79,6 @@ libqt4_la_SOURCES = \
        lyx_gui.C \
        lcolorcache.h lcolorcache.C \
        panelstack.h panelstack.C \
-       qcoloritem.h qcoloritem.C \
        qfontexample.h qfontexample.C \
        qfont_loader.h qfont_loader.C \
        qfont_metrics.C \
index d944f4de2ec2185fb838ec3f4b32459181f95243..ecfe9e3b18a1b0d61fe4237acc5d94cc9e4dfe8a 100644 (file)
@@ -114,7 +114,7 @@ void QAbout::build_dialog()
        QString const qtext = codec ?
                codec->toUnicode(out.str().c_str()) :
                toqstr(out.str());
-       dialog_->creditsTB->setPlainText(qtext);
+       dialog_->creditsTB->setHtml(qtext);
 
        // try to resize to a good size
        dialog_->copyrightTB->hide();
index fcbe74678868c3db6aa6beb289f666ffcddf8047..221ae45ca379eaa2f8cb5e65e35f84e1a489ae5c 100644 (file)
@@ -39,10 +39,9 @@ QBranches::QBranches(QWidget * parent, Qt::WFlags f)
        : QWidget(parent, f)
 {
        setupUi(this);
-       branchesTW->setColumnCount(3);
-       branchesTW->headerItem()->setText(0, qt_("Name"));
+       branchesTW->setColumnCount(2);
+       branchesTW->headerItem()->setText(0, qt_("Branch"));
        branchesTW->headerItem()->setText(1, qt_("Activated"));
-       branchesTW->headerItem()->setText(2, qt_("Color"));
 }
 
 QBranches::~QBranches()
@@ -57,10 +56,8 @@ void QBranches::update(BufferParams const & params)
 
 void QBranches::update()
 {
-
        // store the selected branch
-       QTreeWidgetItem * item =
-               branchesTW->currentItem();
+       QTreeWidgetItem * item = branchesTW->currentItem();
        QString sel_branch;
        if (item != 0)
                sel_branch = item->text(0);
@@ -81,9 +78,9 @@ void QBranches::update()
 
                QColor const itemcolor = rgb2qcolor(it->getColor());
                if (itemcolor.isValid()) {
-                       QPixmap coloritem(30, 10);
+                       QPixmap coloritem(32, 32);
                        coloritem.fill(itemcolor);
-                       newItem->setIcon(2, QIcon(coloritem));
+                       newItem->setIcon(0, QIcon(coloritem));
                }
                // restore selected branch
                if (bname == sel_branch)
index 7bb6cbba742d7038e9426fa3f253394a70896273..68960ceff0ac20ecb3ad4fbedcfc8ac9eb39681c 100644 (file)
@@ -252,12 +252,12 @@ void QCitationDialog::setButtons()
 }
 
 /*
-void QCitationDialog::on_selectedLV_currentChanged(Q3ListBoxItem*)
+void QCitationDialog::on_selectedLV_currentChanged(QListWidgetItem*)
 {
        fillStyles();
        infoML->document()->clear();
 
-       int const sel = selectedLB->currentItem();
+       int const sel = selectedLW->currentItem();
        if (sel < 0) {
                setButtons();
                return;
@@ -321,7 +321,7 @@ void QCitationDialog::changed()
 }
 
 
-void updateBrowser(Q3ListBox * browser,
+void updateBrowser(QListWidget * browser,
                              vector<string> const & keys)
 {
        browser->clear();
@@ -331,7 +331,7 @@ void updateBrowser(Q3ListBox * browser,
                string const key = trim(*it);
                // FIXME: why the .empty() test ?
                if (!key.empty())
-                       browser->insertItem(toqstr(key));
+                       browser->addItem(toqstr(key));
        }
 }
 
@@ -340,22 +340,22 @@ QCitationFind::QCitationFind(QCitation * form, QWidget * parent, Qt::WFlags f)
 : form_(form), QDialog(parent, f)
 {
        setupUi(this);
-    connect(addPB, SIGNAL(clicked()), this, SLOT(accept()));
-    connect(closePB, SIGNAL(clicked()), this, SLOT(reject()));
+       connect(addPB, SIGNAL(clicked()), this, SLOT(accept()));
+       connect(closePB, SIGNAL(clicked()), this, SLOT(reject()));
        connect(previousPB, SIGNAL(clicked()), this, SLOT(previous()));
        connect(nextPB, SIGNAL(clicked()), this, SLOT(next()));
 }
 
 void QCitationFind::update()
 {
-//     updateBrowser(availableLB, form_->availableKeys());
+//     updateBrowser(availableLW, form_->availableKeys());
 }
 
-void QCitationFind::on_availableLB_currentChanged(Q3ListBoxItem *)
+void QCitationFind::on_availableLW_currentItemChanged(QListWidgetItem *)
 {
        infoML->document()->clear();
 
-       int const sel = availableLB->currentItem();
+       int const sel = availableLW->currentRow();
        if (sel < 0) {
                addPB->setEnabled(false);
                return;
@@ -366,9 +366,9 @@ void QCitationFind::on_availableLB_currentChanged(Q3ListBoxItem *)
 }
 
 
-void QCitationFind::on_availableLB_selected(Q3ListBoxItem *)
+void QCitationFind::on_availableLW_itemActivated(QListWidgetItem *)
 {
-       int const sel = availableLB->currentItem();
+//     int const sel = availableLW->currentRow();
        foundkeys.clear();
 //     foundkeys.push_back(form_->availableKeys()[sel]);
        emit newCitations();
@@ -377,9 +377,9 @@ void QCitationFind::on_availableLB_selected(Q3ListBoxItem *)
 
 void QCitationFind::on_addPB_clicked()
 {
-//     form_->addKeys(availableLB->selectionModel()->selectedIndexes());
+//     form_->addKeys(availableLW->selectionModel()->selectedIndexes());
 
-       int const sel = availableLB->currentItem();
+       int const sel = availableLW->currentRow();
 
        if (sel < 0)
                return;
@@ -388,8 +388,8 @@ void QCitationFind::on_addPB_clicked()
 
        // Add the selected browser_bib keys to browser_cite
        // multiple selections are possible
-       for (unsigned int i = 0; i != availableLB->count(); i++) {
-               if (availableLB->isSelected(i)) {
+       for (unsigned int i = 0; i != availableLW->count(); i++) {
+               if (availableLW->isItemSelected(availableLW->item(i))) {
                                foundkeys.push_back(fromqstr(bibkeys[i]));
                }
        }
@@ -421,7 +421,7 @@ void QCitationFind::find(biblio::Direction dir)
                ? biblio::REGEX : biblio::SIMPLE;
 
        vector<string>::const_iterator start = bibkeys.begin();
-       int const sel = availableLB->currentItem();
+       int const sel = availableLW->currentItem();
        if (sel >= 0 && sel <= int(bibkeys.size()-1))
                start += sel;
 
@@ -457,10 +457,10 @@ void QCitationFind::find(biblio::Direction dir)
 
        // Update the display
        // note that we have multi selection mode!
-       availableLB->setSelected(sel, false);
-       availableLB->setSelected(found, true);
-       availableLB->setCurrentItem(found);
-       availableLB->ensureCurrentVisible();
+       availableLW->setSelected(sel, false);
+       availableLW->setSelected(found, true);
+       availableLW->setCurrentItem(found);
+       availableLW->ensureCurrentVisible();
 */
 }
 
index 85eb750da7d836f68ed6d1eb0f561e8606a7f5f6..2dd2ee50cfcb28c371be099d875cb639c0831b6f 100644 (file)
@@ -21,8 +21,8 @@
 #include <QDialog>
 #include <vector>
 
-class Q3ListBox;
-class Q3ListBoxItem;
+class QListWidget;
+class QListWidgetItem;
 
 class InsetCommandParams;
 
@@ -61,7 +61,7 @@ public:
 
 protected slots:
 
-//     void on_selectedLB_currentChanged(Q3ListBoxItem*);
+//     void on_selectedLB_currentChanged(QListWidgetItem*);
        
        void on_okPB_clicked();
        void on_cancelPB_clicked();
@@ -118,8 +118,8 @@ signals:
 
 protected slots:
 
-       void on_availableLB_currentChanged(Q3ListBoxItem *);
-       void on_availableLB_selected(Q3ListBoxItem *);
+       void on_availableLW_currentItemChanged(QListWidgetItem *);
+       void on_availableLW_itemActivated(QListWidgetItem *);
        void on_addPB_clicked();
        virtual void previous();
        virtual void next();
index 4e3e6f278bfaca3c357880cf318673b19ec81c00..9fe0f98ccf2f9b4cd4051a47a37d6cfa5faea5ce 100644 (file)
 #include "QLyXKeySym.h"
 #include "qlkey.h"
 #include "qt_helpers.h"
-//Added by qt3to4:
-#include <QKeyEvent>
-#include <Q3CString>
+
 
 #include "debug.h"
 
-#include <q3accel.h>
-#include <qevent.h>
-#include <qtextcodec.h>
+#include <QKeyEvent>
+#include <QKeySequence>
+#include <QEvent>
+#include <QTextCodec>
 
 #include <map>
 #include "support/lstrings.h"
@@ -68,9 +67,7 @@ char const encode(string const & encoding, QString const & str)
                return 0;
        }
 
-       Q3CString tmpstr = codec->fromUnicode(str);
-       char const * tmpcstr = tmpstr;
-       return tmpcstr[0];
+       return codec->fromUnicode(str).data()[0];
 }
 
 }
@@ -220,7 +217,7 @@ QString const QLyXKeySym::qprint(key_modifier::state mod) const
        if (mod & key_modifier::alt)
                tmpkey += Qt::ALT;
 
-       return Q3Accel::keyToString(tmpkey);
+       return QKeySequence(tmpkey).toString();
 }
 
 
index 3a29af150f4fe87b4a355882bd265c77e4b988e9..c9dcb9dfd9c849ffcd30d86cf98507b53249c8e5 100644 (file)
@@ -15,8 +15,7 @@
 
 #include "frontends/LyXKeySym.h"
 
-#include <qstring.h>
-//Added by qt3to4:
+#include <QString>
 #include <QKeyEvent>
 
 class QKeyEvent;
index f014c69c653127fca562d549ee5049f560b239ed..330e08c69e5e22f01bf437ce4431de5a8f4c825b 100644 (file)
@@ -51,7 +51,6 @@ QParagraphDialog::QParagraphDialog(QParagraph * form)
 
        linespacingValue->setValidator(new QDoubleValidator(linespacingValue));
 
-       //Q3WhatsThis::add(labelWidth, qt_(
        labelWidth->setWhatsThis( qt_(
                "As described in the User Guide, the length of"
                " this text will determine how wide the label part"
index 9f02b037e62f2a2666d566bf60ebba947ab88baf..5d147b80f31baa3c4000a6331e9af40ae452ee95 100644 (file)
@@ -36,7 +36,6 @@
 #include "QPrefs.h"
 
 #include "panelstack.h"
-#include "qcoloritem.h"
 #include "qfontexample.h"
 
 #include "ui/QPrefAsciiUi.h"
@@ -90,6 +89,7 @@ using std::ostringstream;
 using std::pair;
 using std::vector;
 
+
 namespace lyx {
 namespace frontend {
 
@@ -97,6 +97,7 @@ QPrefsDialog::QPrefsDialog(QPrefs * form)
        : form_(form)
 {
        setupUi(this);
+       QDialog::setModal(true);
 
        connect(savePB, SIGNAL(clicked()),
                form, SLOT(slotOK()));
@@ -201,11 +202,8 @@ QPrefsDialog::QPrefsDialog(QPrefs * form)
        screenfontsModule->screenHugerED->setValidator(new QDoubleValidator(
                screenfontsModule->screenHugerED));
 
-
-
-
-       colorsModule = new UiWidget<Ui::QPrefColorsUi>;
        // FIXME: put in controller
+       colorsModule = new UiWidget<Ui::QPrefColorsUi>;
        for (int i = 0; i < LColor::ignore; ++i) {
                LColor::color lc = static_cast<LColor::color>(i);
                if (lc == LColor::none
@@ -220,14 +218,20 @@ QPrefsDialog::QPrefsDialog(QPrefs * form)
                        || lc == LColor::inherit
                        || lc == LColor::ignore) continue;
 
-               colors_.push_back(lc);
-               string const guiname(lcolor.getGUIName(lc));
-               QColorItem * ci(new QColorItem(lcolorcache.get(lc),
-                               toqstr(guiname)));
-               colorsModule->lyxObjectsLB->insertItem(ci);
+               lcolors_.push_back(lc);
+               QColor color = QColor(lcolorcache.get(lc));
+               prefcolors_.push_back(color.name());
+               QPixmap coloritem(32, 32);
+               coloritem.fill(color);
+               QListWidgetItem * newItem = new QListWidgetItem(QIcon(coloritem),
+                       toqstr(lcolor.getGUIName(lc)), colorsModule->lyxObjectsLW);
        }
-       connect(colorsModule->colorChangePB, SIGNAL(clicked()), this, SLOT(change_color()));
-       connect(colorsModule->lyxObjectsLB, SIGNAL(selected(int)), this, SLOT(change_color()));
+       newcolors_ = prefcolors_;
+
+       connect(colorsModule->colorChangePB, SIGNAL(clicked()), 
+               this, SLOT(change_color()));
+       connect(colorsModule->lyxObjectsLW, SIGNAL(itemActivated(QListWidgetItem*)), 
+               this, SLOT(change_color()));
 
 
 
@@ -286,17 +290,28 @@ QPrefsDialog::QPrefsDialog(QPrefs * form)
 
 
        convertersModule = new UiWidget<Ui::QPrefConvertersUi>;
-       connect(convertersModule->converterNewPB, SIGNAL(clicked()), this, SLOT(new_converter()));
-       connect(convertersModule->converterRemovePB, SIGNAL(clicked()), this, SLOT(remove_converter()));
-       connect(convertersModule->converterModifyPB, SIGNAL(clicked()), this, SLOT(modify_converter()));
-       connect(convertersModule->convertersLB, SIGNAL(highlighted(int)), this, SLOT(switch_converter(int)));
-       connect(convertersModule->converterFromCO, SIGNAL(activated(const QString&)), this, SLOT(converter_changed()));
-       connect(convertersModule->converterToCO, SIGNAL(activated(const QString&)), this, SLOT(converter_changed()));
-       connect(convertersModule->converterED, SIGNAL(textChanged(const QString&)), this, SLOT(converter_changed()));
-       connect(convertersModule->converterFlagED, SIGNAL(textChanged(const QString&)), this, SLOT(converter_changed()));
-       connect(convertersModule->converterNewPB, SIGNAL(clicked()), this, SLOT(change_adaptor()));
-       connect(convertersModule->converterRemovePB, SIGNAL(clicked()), this, SLOT(change_adaptor()));
-       connect(convertersModule->converterModifyPB, SIGNAL(clicked()), this, SLOT(change_adaptor()));
+       connect(convertersModule->converterNewPB, SIGNAL(clicked()), 
+               this, SLOT(new_converter()));
+       connect(convertersModule->converterRemovePB, SIGNAL(clicked()), 
+               this, SLOT(remove_converter()));
+       connect(convertersModule->converterModifyPB, SIGNAL(clicked()), 
+               this, SLOT(modify_converter()));
+       connect(convertersModule->convertersLW, SIGNAL(currentRowChanged(int)), 
+               this, SLOT(switch_converter(int)));
+       connect(convertersModule->converterFromCO, SIGNAL(activated(const QString&)), 
+               this, SLOT(converter_changed()));
+       connect(convertersModule->converterToCO, SIGNAL(activated(const QString&)), 
+               this, SLOT(converter_changed()));
+       connect(convertersModule->converterED, SIGNAL(textChanged(const QString&)), 
+               this, SLOT(converter_changed()));
+       connect(convertersModule->converterFlagED, SIGNAL(textChanged(const QString&)), 
+               this, SLOT(converter_changed()));
+       connect(convertersModule->converterNewPB, SIGNAL(clicked()), 
+               this, SLOT(change_adaptor()));
+       connect(convertersModule->converterRemovePB, SIGNAL(clicked()), 
+               this, SLOT(change_adaptor()));
+       connect(convertersModule->converterModifyPB, SIGNAL(clicked()), 
+               this, SLOT(change_adaptor()));
 
 
 
@@ -304,7 +319,8 @@ QPrefsDialog::QPrefsDialog(QPrefs * form)
        connect(copiersModule->copierNewPB, SIGNAL(clicked()), this, SLOT(new_copier()));
        connect(copiersModule->copierRemovePB, SIGNAL(clicked()), this, SLOT(remove_copier()));
        connect(copiersModule->copierModifyPB, SIGNAL(clicked()), this, SLOT(modify_copier()));
-       connect(copiersModule->AllCopiersLB, SIGNAL(highlighted(int)), this, SLOT(switch_copierLB(int)));
+       connect(copiersModule->AllCopiersLW, SIGNAL(currentRowChanged(int)), 
+               this, SLOT(switch_copierLB(int)));
        connect(copiersModule->copierFormatCO, SIGNAL(activated(int)), this, SLOT(switch_copierCO(int)));
        connect(copiersModule->copierNewPB, SIGNAL(clicked()), this, SLOT(change_adaptor()));
        connect(copiersModule->copierRemovePB, SIGNAL(clicked()), this, SLOT(change_adaptor()));
@@ -319,7 +335,8 @@ QPrefsDialog::QPrefsDialog(QPrefs * form)
        connect(fileformatsModule->formatNewPB, SIGNAL(clicked()), this, SLOT(new_format()));
        connect(fileformatsModule->formatRemovePB, SIGNAL(clicked()), this, SLOT(remove_format()));
        connect(fileformatsModule->formatModifyPB, SIGNAL(clicked()), this, SLOT(modify_format()));
-       connect(fileformatsModule->formatsLB, SIGNAL(highlighted(int)), this, SLOT(switch_format(int)));
+       connect(fileformatsModule->formatsLW, SIGNAL(currentRowChanged(int)), 
+               this, SLOT(switch_format(int)));
        connect(fileformatsModule->formatED, SIGNAL(textChanged(const QString&)), this, SLOT(fileformat_changed()));
        connect(fileformatsModule->guiNameED, SIGNAL(textChanged(const QString&)), this, SLOT(fileformat_changed()));
        connect(fileformatsModule->shortcutED, SIGNAL(textChanged(const QString&)), this, SLOT(fileformat_changed()));
@@ -387,9 +404,9 @@ QPrefsDialog::QPrefsDialog(QPrefs * form)
 
 
        uiModule = new UiWidget<Ui::QPrefUi>;
-    connect( uiModule->autoSaveCB, SIGNAL( toggled(bool) ), uiModule->autoSaveLA, SLOT( setEnabled(bool) ) );
-    connect( uiModule->autoSaveCB, SIGNAL( toggled(bool) ), uiModule->autoSaveSB, SLOT( setEnabled(bool) ) );
-    connect( uiModule->autoSaveCB, SIGNAL( toggled(bool) ), uiModule->TextLabel1, SLOT( setEnabled(bool) ) );
+       connect(uiModule->autoSaveCB, SIGNAL( toggled(bool) ), uiModule->autoSaveLA, SLOT( setEnabled(bool) ) );
+       connect(uiModule->autoSaveCB, SIGNAL( toggled(bool) ), uiModule->autoSaveSB, SLOT( setEnabled(bool) ) );
+       connect(uiModule->autoSaveCB, SIGNAL( toggled(bool) ), uiModule->TextLabel1, SLOT( setEnabled(bool) ) );
        connect(uiModule->uiFilePB, SIGNAL(clicked()), this, SLOT(select_ui()));
        connect(uiModule->bindFilePB, SIGNAL(clicked()), this, SLOT(select_bind()));
        connect(uiModule->uiFileED, SIGNAL(textChanged(const QString&)), this, SLOT(change_adaptor()));
@@ -410,8 +427,6 @@ QPrefsDialog::QPrefsDialog(QPrefs * form)
        connect(identityModule->emailED, SIGNAL(textChanged(const QString&)), this, SLOT(change_adaptor()));
 
 
-
-
        string const laf = _("Look and feel");
        prefsPS->addCategory(laf);
        prefsPS->addPanel(uiModule, _("User interface"), laf);
@@ -443,7 +458,6 @@ QPrefsDialog::QPrefsDialog(QPrefs * form)
 
        prefsPS->setCurrentPanel(_("User interface"));
 
-
        form_->bcview().setOK(savePB);
        form_->bcview().setApply(applyPB);
        form_->bcview().setCancel(closePB);
@@ -489,24 +503,27 @@ void QPrefsDialog::updateConverters()
                convertmod->converterToCO->insertItem(toqstr(cit->prettyname()));
        }
 
-       convertmod->convertersLB->clear();
+       convertmod->convertersLW->clear();
 
        Converters::const_iterator ccit = form_->converters().begin();
        Converters::const_iterator cend = form_->converters().end();
        for (; ccit != cend; ++ccit) {
                std::string const name = ccit->From->prettyname() + " -> "
                        + ccit->To->prettyname();
-               convertmod->convertersLB->insertItem(toqstr(name));
+               convertmod->convertersLW->addItem(toqstr(name));
        }
+       convertmod->convertersLW->sortItems(Qt::AscendingOrder);
 
        // restore selection
        if (!current.isEmpty()) {
-               Q3ListBoxItem * item = convertmod->convertersLB->findItem(current);
-               convertmod->convertersLB->setCurrentItem(item);
+               QList<QListWidgetItem *> const item = 
+                       convertmod->convertersLW->findItems(current, Qt::MatchExactly);
+               if (item.size()>0)
+                       convertmod->convertersLW->setCurrentItem(item.at(0));
        }
        // select first element if restoring failed
-       if (convertmod->convertersLB->currentItem() == -1)
-               convertmod->convertersLB->setCurrentItem(0);
+       if (convertmod->convertersLW->currentRow() == -1)
+               convertmod->convertersLW->setCurrentRow(0);
 
        updateConverterButtons();
 }
@@ -514,9 +531,12 @@ void QPrefsDialog::updateConverters()
 
 void QPrefsDialog::switch_converter(int nr)
 {
+       if (nr<0)
+               return;
+
        Converter const & c(form_->converters().get(nr));
-       convertersModule->converterFromCO->setCurrentItem(form_->formats().getNumber(c.from));
-       convertersModule->converterToCO->setCurrentItem(form_->formats().getNumber(c.to));
+       convertersModule->converterFromCO->setCurrentIndex(form_->formats().getNumber(c.from));
+       convertersModule->converterToCO->setCurrentIndex(form_->formats().getNumber(c.to));
        convertersModule->converterED->setText(toqstr(c.command));
        convertersModule->converterFlagED->setText(toqstr(c.flags));
 
@@ -542,7 +562,7 @@ void QPrefsDialog::updateConverterButtons()
                || from.name() == to.name());
 
        Converter const & c(form_->converters().get(
-               convertersModule->convertersLB->currentItem()));
+               convertersModule->convertersLW->currentRow()));
        string const old_command = c.command;
        string const old_flag = c.flags;
        string const new_command(fromqstr(convertersModule->converterED->text()));
@@ -571,15 +591,14 @@ void QPrefsDialog::new_converter()
                form_->converters().updateLast(form_->formats());
        }
        updateConverters();
-       convertersModule->convertersLB->setCurrentItem(convertersModule->convertersLB->count() - 1);
+       convertersModule->convertersLW->setCurrentRow(convertersModule->convertersLW->count() - 1);
 }
 
 
 void QPrefsDialog::modify_converter()
 {
-       int const top_item = convertersModule->convertersLB->topItem();
        QString const current_text =
-               convertersModule->convertersLB->currentText();
+               convertersModule->convertersLW->currentItem()->text();
 
        Format const & from(form_->formats().get(convertersModule->converterFromCO->currentItem()));
        Format const & to(form_->formats().get(convertersModule->converterToCO->currentItem()));
@@ -593,10 +612,10 @@ void QPrefsDialog::modify_converter()
        }
        updateConverters();
 
-       Q3ListBoxItem * const item =
-               convertersModule->convertersLB->findItem(current_text);
-       convertersModule->convertersLB->setCurrentItem(item);
-       convertersModule->convertersLB->setTopItem(top_item);
+       QList<QListWidgetItem *> const item =
+               convertersModule->convertersLW->findItems(current_text, Qt::MatchExactly);
+       if (item.size()>0)
+               convertersModule->convertersLW->setCurrentItem(item.at(0));
 }
 
 
@@ -623,7 +642,7 @@ void QPrefsDialog::updateCopiers()
        }
 
        // The browser widget
-       copiersModule->AllCopiersLB->clear();
+       copiersModule->AllCopiersLW->clear();
 
        for (Movers::iterator it = form_->movers().begin(),
                     end = form_->movers().end();
@@ -631,20 +650,21 @@ void QPrefsDialog::updateCopiers()
                std::string const & command = it->second.command();
                if (command.empty())
                        continue;
-               std::string const & fmt = it->first;
-               std::string const & pretty = form_->formats().prettyName(fmt);
-
-               copiersModule->AllCopiersLB->insertItem(toqstr(pretty));
+               QString const pretty = toqstr(form_->formats().prettyName(it->first));
+               copiersModule->AllCopiersLW->addItem(pretty);
        }
+       copiersModule->AllCopiersLW->sortItems(Qt::AscendingOrder);
 
        // restore selection
        if (!current.isEmpty()) {
-               Q3ListBoxItem * item = copiersModule->AllCopiersLB->findItem(current);
-               copiersModule->AllCopiersLB->setCurrentItem(item);
+               QList<QListWidgetItem *> item = 
+                       copiersModule->AllCopiersLW->findItems(current, Qt::MatchExactly);
+               if (item.size()>0)
+                       copiersModule->AllCopiersLW->setCurrentItem(item.at(0));
        }
        // select first element if restoring failed
-       if (copiersModule->AllCopiersLB->currentItem() == -1)
-               copiersModule->AllCopiersLB->setCurrentItem(0);
+       if (copiersModule->AllCopiersLW->currentRow() == -1)
+               copiersModule->AllCopiersLW->setCurrentRow(0);
 }
 
 
@@ -674,26 +694,27 @@ Format const * getFormat(std::string const & prettyname)
 } // namespace anon
 
 
-void QPrefsDialog::switch_copierLB(int)
+void QPrefsDialog::switch_copierLB(int row)
 {
+       if (row<0)
+               return;
+
        std::string const browser_text =
-               fromqstr(copiersModule->AllCopiersLB->currentText());
+               fromqstr(copiersModule->AllCopiersLW->currentItem()->text());
        Format const * fmt = getFormat(browser_text);
        if (fmt == 0)
                return;
 
-       string const & fmt_name = fmt->name();
-       string const & gui_name = fmt->prettyname();
-       string const & command = form_->movers().command(fmt_name);
+       QString const gui_name = toqstr(fmt->prettyname());
+       QString const command = toqstr(form_->movers().command(fmt->name()));
 
        copiersModule->copierED->clear();
        int const combo_size = copiersModule->copierFormatCO->count();
        for (int i = 0; i < combo_size; ++i) {
-               QString const qtext = copiersModule->copierFormatCO->text(i);
-               std::string const text = fromqstr(qtext);
+               QString const text = copiersModule->copierFormatCO->text(i);
                if (text == gui_name) {
-                       copiersModule->copierFormatCO->setCurrentItem(i);
-                       copiersModule->copierED->setText(toqstr(command));
+                       copiersModule->copierFormatCO->setCurrentIndex(i);
+                       copiersModule->copierED->setText(command);
                        break;
                }
        }
@@ -701,32 +722,31 @@ void QPrefsDialog::switch_copierLB(int)
 }
 
 
-void QPrefsDialog::switch_copierCO(int)
+void QPrefsDialog::switch_copierCO(int row)
 {
+       if (row<0)
+               return;
+
        std::string const combo_text =
                fromqstr(copiersModule->copierFormatCO->currentText());
        Format const * fmt = getFormat(combo_text);
        if (fmt == 0)
                return;
 
-       string const & fmt_name = fmt->name();
-       string const & gui_name = fmt->prettyname();
-       string const & command = form_->movers().command(fmt_name);
-
-       copiersModule->copierED->setText(toqstr(command));
+       QString const command = toqstr(form_->movers().command(fmt->name()));
+       copiersModule->copierED->setText(command);
 
-       int const index = copiersModule->AllCopiersLB->currentItem();
+       QListWidgetItem * const index = copiersModule->AllCopiersLW->currentItem();
        if (index >= 0)
-               copiersModule->AllCopiersLB->setSelected(index, false);
+               copiersModule->AllCopiersLW->setItemSelected(index, false);
 
-       int const browser_size = copiersModule->AllCopiersLB->count();
+       QString const gui_name = toqstr(fmt->prettyname());
+       int const browser_size = copiersModule->AllCopiersLW->count();
        for (int i = 0; i < browser_size; ++i) {
-               QString const qtext = copiersModule->AllCopiersLB->text(i);
-               std::string const text = fromqstr(qtext);
+               QString const text = copiersModule->AllCopiersLW->item(i)->text();
                if (text == gui_name) {
-                       copiersModule->AllCopiersLB->setSelected(i, true);
-                       int top = std::max(i - 5, 0);
-                       copiersModule->AllCopiersLB->setTopItem(top);
+                       QListWidgetItem * item = copiersModule->AllCopiersLW->item(i);
+                       copiersModule->AllCopiersLW->setItemSelected(item, true);
                        break;
                }
        }
@@ -744,8 +764,8 @@ void QPrefsDialog::updateCopierButtons()
        QString selected = copiersModule->copierFormatCO->currentText();
 
        bool known = false;
-       for (unsigned int i = 0; i != copiersModule->AllCopiersLB->count(); i++) {
-               if (copiersModule->AllCopiersLB->text(i) == selected)
+       for (unsigned int i = 0; i != copiersModule->AllCopiersLW->count(); i++) {
+               if (copiersModule->AllCopiersLW->item(i)->text() == selected)
                        known = true;
        }
 
@@ -778,8 +798,8 @@ void QPrefsDialog::new_copier()
        form_->movers().set(fmt->name(), command);
 
        updateCopiers();
-       int const last = copiersModule->AllCopiersLB->count() - 1;
-       copiersModule->AllCopiersLB->setCurrentItem(last);
+       int const last = copiersModule->AllCopiersLW->count() - 1;
+       copiersModule->AllCopiersLW->setCurrentRow(last);
 
        updateCopierButtons();
 }
@@ -824,27 +844,32 @@ void QPrefsDialog::updateFormats()
        // save current selection
        QString current = formatmod->guiNameED->text();
 
-       formatmod->formatsLB->clear();
+       formatmod->formatsLW->clear();
 
        Formats::const_iterator cit = form_->formats().begin();
        Formats::const_iterator end = form_->formats().end();
        for (; cit != end; ++cit) {
-               formatmod->formatsLB->insertItem(toqstr(cit->prettyname()));
+               formatmod->formatsLW->addItem(toqstr(cit->prettyname()));
        }
+       formatmod->formatsLW->sortItems(Qt::AscendingOrder);
 
        // restore selection
        if (!current.isEmpty()) {
-               Q3ListBoxItem * item = formatmod->formatsLB->findItem(current);
-               formatmod->formatsLB->setCurrentItem(item);
+               QList<QListWidgetItem *>  item = formatmod->formatsLW->findItems(current, Qt::MatchExactly);
+               if (item.size()>0)
+                       formatmod->formatsLW->setCurrentItem(item.at(0));
        }
        // select first element if restoring failed
-       if (formatmod->formatsLB->currentItem() == -1)
-               formatmod->formatsLB->setCurrentItem(0);
+       if (formatmod->formatsLW->currentRow() == -1)
+               formatmod->formatsLW->setCurrentRow(0);
 }
 
 
 void QPrefsDialog::switch_format(int nr)
 {
+       if (nr<0)
+               return;
+
        Format const & f(form_->formats().get(nr));
        fileformatsModule->formatED->setText(toqstr(f.name()));
        fileformatsModule->guiNameED->setText(toqstr(f.prettyname()));
@@ -872,8 +897,8 @@ void QPrefsDialog::updateFormatsButtons()
        int const sel = form_->formats().getNumber(fromqstr(format));
        bool gui_name_known = false;
        int where = sel;
-       for (unsigned int i = 0; i != fileformatsModule->formatsLB->count(); i++) {
-               if (fileformatsModule->formatsLB->text(i) == gui_name) {
+       for (unsigned int i = 0; i != fileformatsModule->formatsLW->count(); i++) {
+               if (fileformatsModule->formatsLW->item(i)->text() == gui_name) {
                        gui_name_known = true;
                        where = i;
                }
@@ -887,7 +912,7 @@ void QPrefsDialog::updateFormatsButtons()
                && !fileformatsModule->guiNameED->text().isEmpty());
 
        Format const & f(form_->formats().get(
-               fileformatsModule->formatsLB->currentItem()));
+               fileformatsModule->formatsLW->currentRow()));
        string const old_pretty(f.prettyname());
        string const old_shortcut(f.shortcut());
        string const old_extension(f.extension());
@@ -923,7 +948,7 @@ void QPrefsDialog::new_format()
        form_->formats().add(name, extension, prettyname, shortcut, viewer, editor);
        form_->formats().sort();
        updateFormats();
-       fileformatsModule->formatsLB->setCurrentItem(form_->formats().getNumber(name));
+       fileformatsModule->formatsLW->setCurrentRow(form_->formats().getNumber(name));
        form_->converters().update(form_->formats());
 
        updateConverters();
@@ -933,10 +958,9 @@ void QPrefsDialog::new_format()
 
 void QPrefsDialog::modify_format()
 {
-       int const top_item = fileformatsModule->formatsLB->topItem();
-       int const current_item = fileformatsModule->formatsLB->currentItem();
+       int const current_item = fileformatsModule->formatsLW->currentRow();
        QString const current_text =
-               fileformatsModule->formatsLB->currentText();
+               fileformatsModule->formatsLW->currentItem()->text();
 
        Format const & oldformat(form_->formats().get(current_item));
        string const oldpretty(oldformat.prettyname());
@@ -952,24 +976,24 @@ void QPrefsDialog::modify_format()
        form_->formats().add(name, extension, prettyname, shortcut, viewer, editor);
        form_->formats().sort();
 
-       fileformatsModule->formatsLB->setUpdatesEnabled(false);
+       fileformatsModule->formatsLW->setUpdatesEnabled(false);
        updateFormats();
-       fileformatsModule->formatsLB->setUpdatesEnabled(true);
-       fileformatsModule->formatsLB->update();
+       fileformatsModule->formatsLW->setUpdatesEnabled(true);
+       fileformatsModule->formatsLW->update();
 
        updateConverters();
        updateFormatsButtons();
 
-       Q3ListBoxItem * const item =
-               fileformatsModule->formatsLB->findItem(current_text);
-       fileformatsModule->formatsLB->setCurrentItem(item);
-       fileformatsModule->formatsLB->setTopItem(top_item);
+       QList<QListWidgetItem *>  const item =
+               fileformatsModule->formatsLW->findItems(current_text, Qt::MatchExactly);
+       if (item.size()>0)
+               fileformatsModule->formatsLW->setCurrentItem(item.at(0));
 }
 
 
 void QPrefsDialog::remove_format()
 {
-       int const nr(fileformatsModule->formatsLB->currentItem());
+       int const nr(fileformatsModule->formatsLW->currentRow());
        if (nr < 0)
                return;
        string const current_text = form_->formats().get(nr).name();
@@ -990,15 +1014,16 @@ void QPrefsDialog::remove_format()
 
 void QPrefsDialog::change_color()
 {
-       Q3ListBox * lb(colorsModule->lyxObjectsLB);
-       if (lb->currentItem() < 0)
-               return;
-       Q3ListBoxItem * ib(lb->item(lb->currentItem()));
-       QColorItem * ci(static_cast<QColorItem*>(ib));
-       QColor c(QColorDialog::getColor(ci->color(), qApp->focusWidget() ? qApp->focusWidget() : qApp->mainWidget()));
-       if (c.isValid()) {
-               ci->color(c);
-               lb->triggerUpdate(true);
+       int const row = colorsModule->lyxObjectsLW->currentRow();
+       QString color = newcolors_[row];
+       QColor c(QColorDialog::getColor(QColor(color), 
+               qApp->focusWidget() ? qApp->focusWidget() : qApp->mainWidget()));
+
+       if (c.name()!=color) {
+               newcolors_[row] = c.name();
+               QPixmap coloritem(32, 32);
+               coloritem.fill(c);
+               colorsModule->lyxObjectsLW->currentItem()->setIcon(QIcon(coloritem));
                change_adaptor();
        }
 }
@@ -1285,28 +1310,9 @@ void QPrefsDialog::apply(LyXRC & rc) const
        }
 
 
-
-
-       unsigned int i;
-       for (i = 0; i < colorsModule->lyxObjectsLB->count(); ++i) {
-               Q3ListBoxItem * ib(colorsModule->lyxObjectsLB->item(i));
-               QColorItem * ci(static_cast<QColorItem*>(ib));
-
-               LColor::color const col(colors_[i]);
-               QColor const & qcol(lcolorcache.get(col));
-
-               // FIXME: dubious, but it's what xforms does
-               if (qcol != ci->color()) {
-                       ostringstream ostr;
-
-                       ostr << '#' << std::setbase(16) << setfill('0')
-                            << setw(2) << ci->color().red()
-                            << setw(2) << ci->color().green()
-                            << setw(2) << ci->color().blue();
-
-                       string newhex(ostr.str());
-                       form_->controller().setColor(col, newhex);
-               }
+       for (int i = 0; i < lcolors_.size(); ++i) {
+               if (prefcolors_[i]!=newcolors_[i])
+                       form_->controller().setColor(lcolors_[i], fromqstr(newcolors_[i]));
        }
 }
 
@@ -1421,7 +1427,7 @@ void QPrefsDialog::update(LyXRC const & rc)
        languageModule->endCommandED->setText(toqstr(rc.language_command_end));
 
        int const pos = int(findPos(lang_, rc.default_language));
-       languageModule->defaultLanguageCO->setCurrentItem(pos);
+       languageModule->defaultLanguageCO->setCurrentIndex(pos);
 
        uiModule->uiFileED->setText(external_path(rc.ui_file));
        uiModule->bindFileED->setText(external_path(rc.bind_file));
@@ -1476,20 +1482,20 @@ void QPrefsDialog::update(LyXRC const & rc)
        latexModule->latexIndexED->setText(toqstr(rc.index_command));
        latexModule->latexAutoresetCB->setChecked(rc.auto_reset_options);
        latexModule->latexDviPaperED->setText(toqstr(rc.view_dvi_paper_option));
-       latexModule->latexPaperSizeCO->setCurrentItem(
+       latexModule->latexPaperSizeCO->setCurrentIndex(
                form_->controller().fromPaperSize(rc.default_papersize));
 
 
 
        switch (rc.preview) {
        case LyXRC::PREVIEW_OFF:
-               displayModule->instantPreviewCO->setCurrentItem(0);
+               displayModule->instantPreviewCO->setCurrentIndex(0);
                break;
        case LyXRC::PREVIEW_NO_MATH :
-               displayModule->instantPreviewCO->setCurrentItem(1);
+               displayModule->instantPreviewCO->setCurrentIndex(1);
                break;
        case LyXRC::PREVIEW_ON :
-               displayModule->instantPreviewCO->setCurrentItem(2);
+               displayModule->instantPreviewCO->setCurrentIndex(2);
                break;
        }
 
@@ -1501,7 +1507,7 @@ void QPrefsDialog::update(LyXRC const & rc)
                case lyx::graphics::MonochromeDisplay:  item = 0; break;
                default: break;
        }
-       displayModule->displayGraphicsCO->setCurrentItem(item);
+       displayModule->displayGraphicsCO->setCurrentIndex(item);
 
 
 
@@ -1515,19 +1521,19 @@ void QPrefsDialog::update(LyXRC const & rc)
 
 
 
-       spellcheckerModule->spellCommandCO->setCurrentItem(0);
+       spellcheckerModule->spellCommandCO->setCurrentIndex(0);
 
        if (rc.isp_command == "ispell") {
-               spellcheckerModule->spellCommandCO->setCurrentItem(0);
+               spellcheckerModule->spellCommandCO->setCurrentIndex(0);
        } else if (rc.isp_command == "aspell") {
-               spellcheckerModule->spellCommandCO->setCurrentItem(1);
+               spellcheckerModule->spellCommandCO->setCurrentIndex(1);
        } else if (rc.isp_command == "hspell") {
-               spellcheckerModule->spellCommandCO->setCurrentItem(2);
+               spellcheckerModule->spellCommandCO->setCurrentIndex(2);
        }
 
        if (rc.use_spell_lib) {
 #if defined(USE_ASPELL) || defined(USE_PSPELL)
-               spellcheckerModule->spellCommandCO->setCurrentItem(3);
+               spellcheckerModule->spellCommandCO->setCurrentIndex(3);
 #endif
        }
 
index 0d3fcc3c80551596855df70fbea86998fbc52b38..6969ebcf577546cdcdff38c3625e6b0417b9b905 100644 (file)
@@ -124,7 +124,9 @@ private:
        /// languages
        std::vector<std::string> lang_;
 
-       std::vector<LColor_color> colors_;
+       std::vector<LColor_color> lcolors_;
+       std::vector<QString> prefcolors_;
+       std::vector<QString> newcolors_;
 
        UiWidget<Ui::QPrefAsciiUi> * asciiModule;
        UiWidget<Ui::QPrefDateUi> * dateModule;
index b639d8f28f3b7e36ba06aa7f0a70f596efa05e49..ec92b42510d3824814b77e44344c19becfd598e4 100644 (file)
@@ -29,7 +29,8 @@
 #include <QClipboard>
 #include <QLayout>
 #include <QMainWindow>
-#include <Q3UriDrag>
+#include <QMimeData>
+#include <QUrl>
 #include <QDragEnterEvent>
 #include <QPixmap>
 #include <QPainter>
@@ -274,8 +275,8 @@ void QWorkArea::putClipboard(string const & str) const
 
 void QWorkArea::dragEnterEvent(QDragEnterEvent * event)
 {
-       event->accept(Q3UriDrag::canDecode(event));
-
+       if (event->mimeData()->hasUrls())
+               event->accept();
        /// \todo Ask lyx-devel is this is enough:
        /// if (event->mimeData()->hasFormat("text/plain"))
        ///     event->acceptProposedAction();
@@ -285,16 +286,15 @@ void QWorkArea::dragEnterEvent(QDragEnterEvent * event)
 
 void QWorkArea::dropEvent(QDropEvent* event)
 {
-       QStringList files;
-
-       if (Q3UriDrag::decodeLocalFiles(event, files)) {
-               lyxerr[Debug::GUI] << "QWorkArea::dropEvent: got URIs!"
-                                  << endl;
-               for (QStringList::Iterator i = files.begin();
-                    i!=files.end(); ++i) {
-                       string const file = os::internal_path(fromqstr(*i));
+       QList<QUrl> files = event->mimeData()->urls();
+       if (files.isEmpty())
+               return;
+
+       lyxerr[Debug::GUI] << "QWorkArea::dropEvent: got URIs!" << endl;
+       for (int i = 0; i!=files.size(); ++i) {
+               string const file = os::internal_path(fromqstr(files.at(i).toString()));
+               if (!file.empty())
                        view_.view()->workAreaDispatch(FuncRequest(LFUN_FILE_OPEN, file));
-               }
        }
 }
 
diff --git a/src/frontends/qt4/qcoloritem.C b/src/frontends/qt4/qcoloritem.C
deleted file mode 100644 (file)
index 279828d..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-/**
- * \file qcoloritem.C
- * This file is part of LyX, the document processor.
- * Licence details can be found in the file COPYING.
- *
- * \author John Levon
- *
- * Full author contact details are available in file CREDITS.
- */
-
-#include <config.h>
-
-#include "qcoloritem.h"
-
-#include <qpainter.h>
-
-QColorItem::QColorItem(QColor c, QString const & t)
-       : color_(c), text_(t)
-{
-       QFont font;
-       QFontMetrics metrics(font);
-
-       ascent_ = metrics.ascent();
-       width_ = 40 + metrics.width(t);
-       height_ = metrics.ascent() + metrics.descent() + 6;
-}
-
-
-void QColorItem::paint(QPainter * p)
-{
-       p->fillRect(2, 2, 35, height_, color_);
-       p->drawText(40, 3 + ascent_, text_);
-}
diff --git a/src/frontends/qt4/qcoloritem.h b/src/frontends/qt4/qcoloritem.h
deleted file mode 100644 (file)
index a82077e..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-// -*- C++ -*-
-/**
- * \file qcoloritem.h
- * This file is part of LyX, the document processor.
- * Licence details can be found in the file COPYING.
- *
- * \author John Levon
- *
- * Full author contact details are available in file CREDITS.
- */
-
-#ifndef QT_QCOLORITEM_H
-#define QT_QCOLORITEM_H
-
-#include <Q3ListBox>
-#include <QColor>
-
-class QColorItem : public Q3ListBoxItem {
-
-public:
-       QColorItem(QColor c, QString const & text);
-
-       QColor color() {
-               return color_;
-       }
-
-       void color(QColor c) {
-               color_ = c;
-       }
-
-       virtual int height(const Q3ListBox *) const {
-               return height_;
-       }
-
-       virtual int width(const Q3ListBox *) const {
-               return width_;
-       }
-
-protected:
-       virtual void paint(QPainter * p);
-
-private:
-       int ascent_;
-
-       int height_;
-
-       int width_;
-
-       QColor color_;
-
-       QString text_;
-};
-
-#endif
index 8e0bb375f75d304b1f6a573e2d7dab8260bca26d..ef2cdb52cad56fd74126b7af68ebfa2d054421eb 100644 (file)
   <property name="sizeGripEnabled" >
    <bool>true</bool>
   </property>
-  <widget class="QWidget" name="" >
-   <layout class="QHBoxLayout" >
-    <property name="margin" >
-     <number>0</number>
-    </property>
-    <property name="spacing" >
-     <number>6</number>
-    </property>
-    <item>
-     <spacer>
-      <property name="orientation" >
-       <enum>Qt::Horizontal</enum>
-      </property>
-      <property name="sizeType" >
-       <enum>QSizePolicy::Expanding</enum>
-      </property>
-      <property name="sizeHint" >
-       <size>
-        <width>20</width>
-        <height>20</height>
-       </size>
-      </property>
-     </spacer>
-    </item>
-    <item>
-     <widget class="QPushButton" name="closePB" >
-      <property name="sizePolicy" >
-       <sizepolicy>
-        <hsizetype>0</hsizetype>
-        <vsizetype>0</vsizetype>
-        <horstretch>0</horstretch>
-        <verstretch>0</verstretch>
-       </sizepolicy>
-      </property>
-      <property name="text" >
-       <string>&amp;Close</string>
-      </property>
-      <property name="default" >
-       <bool>true</bool>
-      </property>
-     </widget>
-    </item>
-   </layout>
-  </widget>
-  <widget class="QTabWidget" name="tab" >
-   <property name="geometry" >
-    <rect>
-     <x>11</x>
-     <y>11</y>
-     <width>305</width>
-     <height>171</height>
-    </rect>
+  <layout class="QGridLayout" >
+   <property name="margin" >
+    <number>9</number>
    </property>
-   <widget class="QWidget" name="versiontab" >
-    <attribute name="title" >
-     <string>Version</string>
-    </attribute>
-    <layout class="QVBoxLayout" >
-     <property name="margin" >
-      <number>11</number>
-     </property>
-     <property name="spacing" >
-      <number>6</number>
-     </property>
-     <item>
-      <widget class="QLabel" name="versionLA" >
-       <property name="frameShape" >
-        <enum>QFrame::Box</enum>
+   <property name="spacing" >
+    <number>6</number>
+   </property>
+   <item row="0" column="0" >
+    <widget class="QTabWidget" name="tab" >
+     <widget class="QWidget" name="versiontab" >
+      <attribute name="title" >
+       <string>Version</string>
+      </attribute>
+      <layout class="QVBoxLayout" >
+       <property name="margin" >
+        <number>11</number>
        </property>
-       <property name="frameShadow" >
-        <enum>QFrame::Sunken</enum>
+       <property name="spacing" >
+        <number>6</number>
        </property>
-       <property name="text" >
-        <string>Version goes here</string>
+       <item>
+        <widget class="QLabel" name="versionLA" >
+         <property name="frameShape" >
+          <enum>QFrame::Box</enum>
+         </property>
+         <property name="frameShadow" >
+          <enum>QFrame::Sunken</enum>
+         </property>
+         <property name="text" >
+          <string>Version goes here</string>
+         </property>
+         <property name="alignment" >
+          <set>Qt::AlignCenter</set>
+         </property>
+         <property name="margin" >
+          <number>6</number>
+         </property>
+        </widget>
+       </item>
+      </layout>
+     </widget>
+     <widget class="QWidget" name="creditstab" >
+      <attribute name="title" >
+       <string>Credits</string>
+      </attribute>
+      <layout class="QGridLayout" >
+       <property name="margin" >
+        <number>9</number>
        </property>
-       <property name="alignment" >
-        <set>Qt::AlignCenter</set>
+       <property name="spacing" >
+        <number>6</number>
        </property>
+       <item row="0" column="0" >
+        <widget class="QTextBrowser" name="creditsTB" />
+       </item>
+      </layout>
+     </widget>
+     <widget class="QWidget" name="copyrighttab" >
+      <attribute name="title" >
+       <string>Copyright</string>
+      </attribute>
+      <layout class="QGridLayout" >
        <property name="margin" >
+        <number>9</number>
+       </property>
+       <property name="spacing" >
         <number>6</number>
        </property>
-      </widget>
-     </item>
-    </layout>
-   </widget>
-   <widget class="QWidget" name="creditstab" >
-    <attribute name="title" >
-     <string>Credits</string>
-    </attribute>
-    <layout class="QGridLayout" >
+       <item row="0" column="0" >
+        <widget class="QTextBrowser" name="copyrightTB" />
+       </item>
+      </layout>
+     </widget>
+    </widget>
+   </item>
+   <item row="1" column="0" >
+    <layout class="QHBoxLayout" >
      <property name="margin" >
-      <number>9</number>
+      <number>0</number>
      </property>
      <property name="spacing" >
       <number>6</number>
      </property>
-     <item row="0" column="0" >
-      <widget class="QTextBrowser" name="creditsTB" />
+     <item>
+      <spacer>
+       <property name="orientation" >
+        <enum>Qt::Horizontal</enum>
+       </property>
+       <property name="sizeType" >
+        <enum>QSizePolicy::Expanding</enum>
+       </property>
+       <property name="sizeHint" >
+        <size>
+         <width>20</width>
+         <height>20</height>
+        </size>
+       </property>
+      </spacer>
      </item>
-    </layout>
-   </widget>
-   <widget class="QWidget" name="copyrighttab" >
-    <attribute name="title" >
-     <string>Copyright</string>
-    </attribute>
-    <layout class="QGridLayout" >
-     <property name="margin" >
-      <number>9</number>
-     </property>
-     <property name="spacing" >
-      <number>6</number>
-     </property>
-     <item row="0" column="0" >
-      <widget class="QTextBrowser" name="copyrightTB" />
+     <item>
+      <widget class="QPushButton" name="closePB" >
+       <property name="sizePolicy" >
+        <sizepolicy>
+         <hsizetype>0</hsizetype>
+         <vsizetype>0</vsizetype>
+         <horstretch>0</horstretch>
+         <verstretch>0</verstretch>
+        </sizepolicy>
+       </property>
+       <property name="text" >
+        <string>&amp;Close</string>
+       </property>
+       <property name="default" >
+        <bool>true</bool>
+       </property>
+      </widget>
      </item>
     </layout>
-   </widget>
-  </widget>
+   </item>
+  </layout>
  </widget>
  <pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
  <resources/>
index f160a2f9af924820b6eb5c32d5ec07d2d5011074..59af7a915d0cc2b847e89503c6e45f8b4267800d 100644 (file)
   </property>
   <layout class="QGridLayout" >
    <property name="margin" >
-    <number>11</number>
+    <number>9</number>
    </property>
    <property name="spacing" >
     <number>6</number>
    </property>
-   <item rowspan="2" row="0" column="0" >
-    <layout class="QVBoxLayout" >
-     <property name="margin" >
-      <number>0</number>
-     </property>
-     <property name="spacing" >
-      <number>6</number>
-     </property>
-     <item>
-      <widget class="Q3ListBox" name="availableLB" >
-       <property name="toolTip" >
-        <string>Available bibliography keys</string>
-       </property>
-       <property name="vScrollBarMode" >
-        <enum>Q3ScrollView::AlwaysOn</enum>
-       </property>
-       <property name="hScrollBarMode" >
-        <enum>Q3ScrollView::AlwaysOff</enum>
-       </property>
-       <property name="selectionMode" >
-        <enum>Q3ListBox::Extended</enum>
-       </property>
-      </widget>
-     </item>
-    </layout>
+   <item rowspan="5" row="0" column="0" >
+    <widget class="QListWidget" name="availableLW" />
    </item>
-   <item row="2" column="1" >
+   <item row="1" column="2" colspan="3" >
     <spacer>
      <property name="orientation" >
       <enum>Qt::Horizontal</enum>
      </property>
      <property name="sizeHint" >
       <size>
-       <width>20</width>
+       <width>191</width>
        <height>20</height>
       </size>
      </property>
     </spacer>
    </item>
-   <item row="2" column="3" >
-    <widget class="QPushButton" name="closePB" >
+   <item row="1" column="1" >
+    <widget class="QLabel" name="TextLabel1" >
+     <property name="sizePolicy" >
+      <sizepolicy>
+       <hsizetype>0</hsizetype>
+       <vsizetype>1</vsizetype>
+       <horstretch>0</horstretch>
+       <verstretch>0</verstretch>
+      </sizepolicy>
+     </property>
      <property name="text" >
-      <string>Cancel</string>
+      <string>&amp;Find:</string>
+     </property>
+     <property name="buddy" >
+      <cstring>searchED</cstring>
+     </property>
+    </widget>
+   </item>
+   <item row="4" column="1" colspan="3" >
+    <widget class="QCheckBox" name="searchTypeCB" >
+     <property name="sizePolicy" >
+      <sizepolicy>
+       <hsizetype>1</hsizetype>
+       <vsizetype>0</vsizetype>
+       <horstretch>0</horstretch>
+       <verstretch>0</verstretch>
+      </sizepolicy>
+     </property>
+     <property name="toolTip" >
+      <string>Interpret search entry as a regular expression</string>
+     </property>
+     <property name="text" >
+      <string>&amp;Regular Expression</string>
+     </property>
+    </widget>
+   </item>
+   <item row="4" column="4" >
+    <widget class="QPushButton" name="nextPB" >
+     <property name="sizePolicy" >
+      <sizepolicy>
+       <hsizetype>3</hsizetype>
+       <vsizetype>0</vsizetype>
+       <horstretch>0</horstretch>
+       <verstretch>0</verstretch>
+      </sizepolicy>
+     </property>
+     <property name="text" >
+      <string>&amp;Next</string>
+     </property>
+     <property name="shortcut" >
+      <number>276824142</number>
+     </property>
+     <property name="autoDefault" >
+      <bool>false</bool>
+     </property>
+    </widget>
+   </item>
+   <item row="3" column="1" colspan="3" >
+    <widget class="QCheckBox" name="searchCaseCB" >
+     <property name="sizePolicy" >
+      <sizepolicy>
+       <hsizetype>1</hsizetype>
+       <vsizetype>0</vsizetype>
+       <horstretch>0</horstretch>
+       <verstretch>0</verstretch>
+      </sizepolicy>
+     </property>
+     <property name="toolTip" >
+      <string>Make the search case-sensitive</string>
+     </property>
+     <property name="text" >
+      <string>Case &amp;sensitive</string>
+     </property>
+    </widget>
+   </item>
+   <item row="2" column="1" colspan="4" >
+    <widget class="QLineEdit" name="searchED" >
+     <property name="sizePolicy" >
+      <sizepolicy>
+       <hsizetype>7</hsizetype>
+       <vsizetype>0</vsizetype>
+       <horstretch>0</horstretch>
+       <verstretch>0</verstretch>
+      </sizepolicy>
+     </property>
+     <property name="toolTip" >
+      <string>Browse the available bibliography entries</string>
+     </property>
+    </widget>
+   </item>
+   <item row="3" column="4" >
+    <widget class="QPushButton" name="previousPB" >
+     <property name="sizePolicy" >
+      <sizepolicy>
+       <hsizetype>3</hsizetype>
+       <vsizetype>0</vsizetype>
+       <horstretch>0</horstretch>
+       <verstretch>0</verstretch>
+      </sizepolicy>
+     </property>
+     <property name="text" >
+      <string>&amp;Previous</string>
      </property>
      <property name="autoDefault" >
       <bool>false</bool>
      </property>
     </widget>
    </item>
-   <item row="2" column="2" >
+   <item row="0" column="1" colspan="4" >
+    <widget class="QTextEdit" name="infoML" />
+   </item>
+   <item row="5" column="3" >
     <widget class="QPushButton" name="addPB" >
      <property name="text" >
       <string>&amp;Add</string>
      </property>
     </widget>
    </item>
-   <item row="1" column="1" colspan="3" >
-    <layout class="QGridLayout" >
-     <property name="margin" >
-      <number>0</number>
+   <item row="5" column="4" >
+    <widget class="QPushButton" name="closePB" >
+     <property name="text" >
+      <string>Cancel</string>
      </property>
-     <property name="spacing" >
-      <number>6</number>
+     <property name="autoDefault" >
+      <bool>false</bool>
      </property>
-     <item row="2" column="1" >
-      <widget class="QPushButton" name="previousPB" >
-       <property name="sizePolicy" >
-        <sizepolicy>
-         <hsizetype>3</hsizetype>
-         <vsizetype>0</vsizetype>
-         <horstretch>0</horstretch>
-         <verstretch>0</verstretch>
-        </sizepolicy>
-       </property>
-       <property name="text" >
-        <string>&amp;Previous</string>
-       </property>
-       <property name="autoDefault" >
-        <bool>false</bool>
-       </property>
-      </widget>
-     </item>
-     <item row="1" column="0" colspan="2" >
-      <widget class="QLineEdit" name="searchED" >
-       <property name="sizePolicy" >
-        <sizepolicy>
-         <hsizetype>7</hsizetype>
-         <vsizetype>0</vsizetype>
-         <horstretch>0</horstretch>
-         <verstretch>0</verstretch>
-        </sizepolicy>
-       </property>
-       <property name="toolTip" >
-        <string>Browse the available bibliography entries</string>
-       </property>
-      </widget>
-     </item>
-     <item row="2" column="0" >
-      <widget class="QCheckBox" name="searchCaseCB" >
-       <property name="sizePolicy" >
-        <sizepolicy>
-         <hsizetype>1</hsizetype>
-         <vsizetype>0</vsizetype>
-         <horstretch>0</horstretch>
-         <verstretch>0</verstretch>
-        </sizepolicy>
-       </property>
-       <property name="toolTip" >
-        <string>Make the search case-sensitive</string>
-       </property>
-       <property name="text" >
-        <string>Case &amp;sensitive</string>
-       </property>
-      </widget>
-     </item>
-     <item row="3" column="1" >
-      <widget class="QPushButton" name="nextPB" >
-       <property name="sizePolicy" >
-        <sizepolicy>
-         <hsizetype>3</hsizetype>
-         <vsizetype>0</vsizetype>
-         <horstretch>0</horstretch>
-         <verstretch>0</verstretch>
-        </sizepolicy>
-       </property>
-       <property name="text" >
-        <string>&amp;Next</string>
-       </property>
-       <property name="shortcut" >
-        <number>276824142</number>
-       </property>
-       <property name="autoDefault" >
-        <bool>false</bool>
-       </property>
-      </widget>
-     </item>
-     <item row="0" column="0" >
-      <layout class="QHBoxLayout" >
-       <property name="margin" >
-        <number>0</number>
-       </property>
-       <property name="spacing" >
-        <number>6</number>
-       </property>
-       <item>
-        <widget class="QLabel" name="TextLabel1" >
-         <property name="sizePolicy" >
-          <sizepolicy>
-           <hsizetype>0</hsizetype>
-           <vsizetype>1</vsizetype>
-           <horstretch>0</horstretch>
-           <verstretch>0</verstretch>
-          </sizepolicy>
-         </property>
-         <property name="text" >
-          <string>&amp;Find:</string>
-         </property>
-         <property name="buddy" >
-          <cstring>searchED</cstring>
-         </property>
-        </widget>
-       </item>
-       <item>
-        <spacer>
-         <property name="orientation" >
-          <enum>Qt::Horizontal</enum>
-         </property>
-         <property name="sizeType" >
-          <enum>QSizePolicy::Expanding</enum>
-         </property>
-         <property name="sizeHint" >
-          <size>
-           <width>20</width>
-           <height>20</height>
-          </size>
-         </property>
-        </spacer>
-       </item>
-      </layout>
-     </item>
-     <item row="3" column="0" >
-      <widget class="QCheckBox" name="searchTypeCB" >
-       <property name="sizePolicy" >
-        <sizepolicy>
-         <hsizetype>1</hsizetype>
-         <vsizetype>0</vsizetype>
-         <horstretch>0</horstretch>
-         <verstretch>0</verstretch>
-        </sizepolicy>
-       </property>
-       <property name="toolTip" >
-        <string>Interpret search entry as a regular expression</string>
-       </property>
-       <property name="text" >
-        <string>&amp;Regular Expression</string>
-       </property>
-      </widget>
-     </item>
-    </layout>
+    </widget>
    </item>
-   <item row="0" column="1" colspan="3" >
-    <widget class="QTextEdit" name="infoML" />
+   <item row="5" column="1" colspan="2" >
+    <spacer>
+     <property name="orientation" >
+      <enum>Qt::Horizontal</enum>
+     </property>
+     <property name="sizeType" >
+      <enum>QSizePolicy::Expanding</enum>
+     </property>
+     <property name="sizeHint" >
+      <size>
+       <width>20</width>
+       <height>20</height>
+      </size>
+     </property>
+    </spacer>
    </item>
   </layout>
  </widget>
  <pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
- <customwidgets>
-  <customwidget>
-   <class>Q3ListBox</class>
-   <extends></extends>
-   <header>q3listbox.h</header>
-   <container>0</container>
-   <pixmap></pixmap>
-  </customwidget>
- </customwidgets>
  <tabstops>
-  <tabstop>availableLB</tabstop>
   <tabstop>searchED</tabstop>
   <tabstop>searchCaseCB</tabstop>
   <tabstop>searchTypeCB</tabstop>
index 63fcd61a67be1cd41c280c56672b6553af79749b..9209d1555bef67241f99f03f64936c2812a23a3e 100644 (file)
@@ -8,22 +8,51 @@
    <rect>
     <x>0</x>
     <y>0</y>
-    <width>289</width>
-    <height>259</height>
+    <width>226</width>
+    <height>289</height>
    </rect>
   </property>
   <property name="windowTitle" >
    <string/>
   </property>
-  <layout class="QHBoxLayout" >
+  <layout class="QGridLayout" >
    <property name="margin" >
-    <number>11</number>
+    <number>9</number>
    </property>
    <property name="spacing" >
     <number>6</number>
    </property>
-   <item>
-    <layout class="QVBoxLayout" >
+   <item rowspan="3" row="0" column="1" >
+    <spacer>
+     <property name="orientation" >
+      <enum>Qt::Horizontal</enum>
+     </property>
+     <property name="sizeType" >
+      <enum>QSizePolicy::Expanding</enum>
+     </property>
+     <property name="sizeHint" >
+      <size>
+       <width>116</width>
+       <height>271</height>
+      </size>
+     </property>
+    </spacer>
+   </item>
+   <item row="0" column="0" >
+    <widget class="QLabel" name="lyxObjectsLA" >
+     <property name="text" >
+      <string>&amp;Colors</string>
+     </property>
+     <property name="buddy" >
+      <cstring>lyxObjectsLW</cstring>
+     </property>
+    </widget>
+   </item>
+   <item row="1" column="0" >
+    <widget class="QListWidget" name="lyxObjectsLW" />
+   </item>
+   <item row="2" column="0" >
+    <layout class="QHBoxLayout" >
      <property name="margin" >
       <number>0</number>
      </property>
       <number>6</number>
      </property>
      <item>
-      <widget class="QLabel" name="lyxObjectsLA" >
+      <widget class="QPushButton" name="colorChangePB" >
        <property name="text" >
-        <string>&amp;Colors</string>
-       </property>
-       <property name="buddy" >
-        <cstring>lyxObjectsLB</cstring>
+        <string>&amp;Alter...</string>
        </property>
       </widget>
      </item>
      <item>
-      <widget class="Q3ListBox" name="lyxObjectsLB" >
-       <property name="resizePolicy" >
-        <enum>Q3ScrollView::AutoOneFit</enum>
-       </property>
-       <property name="vScrollBarMode" >
-        <enum>Q3ScrollView::AlwaysOn</enum>
+      <spacer>
+       <property name="orientation" >
+        <enum>Qt::Horizontal</enum>
        </property>
-       <property name="hScrollBarMode" >
-        <enum>Q3ScrollView::AlwaysOff</enum>
+       <property name="sizeType" >
+        <enum>QSizePolicy::Expanding</enum>
        </property>
-       <property name="columnMode" >
-        <enum>Q3ListBox::FitToHeight</enum>
+       <property name="sizeHint" >
+        <size>
+         <width>20</width>
+         <height>20</height>
+        </size>
        </property>
-      </widget>
-     </item>
-     <item>
-      <layout class="QHBoxLayout" >
-       <property name="margin" >
-        <number>0</number>
-       </property>
-       <property name="spacing" >
-        <number>6</number>
-       </property>
-       <item>
-        <widget class="QPushButton" name="colorChangePB" >
-         <property name="text" >
-          <string>&amp;Alter...</string>
-         </property>
-        </widget>
-       </item>
-       <item>
-        <spacer>
-         <property name="orientation" >
-          <enum>Qt::Horizontal</enum>
-         </property>
-         <property name="sizeType" >
-          <enum>QSizePolicy::Expanding</enum>
-         </property>
-         <property name="sizeHint" >
-          <size>
-           <width>20</width>
-           <height>20</height>
-          </size>
-         </property>
-        </spacer>
-       </item>
-      </layout>
+      </spacer>
      </item>
     </layout>
    </item>
-   <item>
-    <spacer>
-     <property name="orientation" >
-      <enum>Qt::Horizontal</enum>
-     </property>
-     <property name="sizeType" >
-      <enum>QSizePolicy::Expanding</enum>
-     </property>
-     <property name="sizeHint" >
-      <size>
-       <width>20</width>
-       <height>20</height>
-      </size>
-     </property>
-    </spacer>
-   </item>
   </layout>
  </widget>
  <pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
- <customwidgets>
-  <customwidget>
-   <class>Q3ListBox</class>
-   <extends></extends>
-   <header>q3listbox.h</header>
-   <container>0</container>
-   <pixmap></pixmap>
-  </customwidget>
- </customwidgets>
  <resources/>
  <connections/>
 </ui>
index a4c5b3d19f199343a666a2176442464b4a71b3d3..274e118bc1f0e89b0604e0e4f67f13885804cccb 100644 (file)
@@ -8,8 +8,8 @@
    <rect>
     <x>0</x>
     <y>0</y>
-    <width>472</width>
-    <height>265</height>
+    <width>468</width>
+    <height>335</height>
    </rect>
   </property>
   <property name="windowTitle" >
   </property>
   <layout class="QGridLayout" >
    <property name="margin" >
-    <number>11</number>
+    <number>9</number>
    </property>
    <property name="spacing" >
     <number>6</number>
    </property>
-   <item row="0" column="1" >
-    <layout class="QGridLayout" >
+   <item rowspan="7" row="1" column="3" >
+    <spacer>
+     <property name="orientation" >
+      <enum>Qt::Horizontal</enum>
+     </property>
+     <property name="sizeHint" >
+      <size>
+       <width>40</width>
+       <height>291</height>
+      </size>
+     </property>
+    </spacer>
+   </item>
+   <item row="6" column="1" colspan="2" >
+    <spacer>
+     <property name="orientation" >
+      <enum>Qt::Vertical</enum>
+     </property>
+     <property name="sizeType" >
+      <enum>QSizePolicy::Expanding</enum>
+     </property>
+     <property name="sizeHint" >
+      <size>
+       <width>323</width>
+       <height>71</height>
+      </size>
+     </property>
+    </spacer>
+   </item>
+   <item row="5" column="1" colspan="2" >
+    <layout class="QHBoxLayout" >
      <property name="margin" >
       <number>0</number>
      </property>
      <property name="spacing" >
       <number>6</number>
      </property>
-     <item row="0" column="0" >
-      <layout class="QGridLayout" >
-       <property name="margin" >
-        <number>0</number>
-       </property>
-       <property name="spacing" >
-        <number>6</number>
-       </property>
-       <item row="0" column="1" >
-        <widget class="QComboBox" name="converterFromCO" >
-         <property name="sizePolicy" >
-          <sizepolicy>
-           <hsizetype>3</hsizetype>
-           <vsizetype>0</vsizetype>
-           <horstretch>0</horstretch>
-           <verstretch>0</verstretch>
-          </sizepolicy>
-         </property>
-        </widget>
-       </item>
-       <item row="2" column="0" >
-        <widget class="QLabel" name="converterLA" >
-         <property name="text" >
-          <string>C&amp;onverter:</string>
-         </property>
-         <property name="buddy" >
-          <cstring>converterED</cstring>
-         </property>
-        </widget>
-       </item>
-       <item row="1" column="1" >
-        <widget class="QComboBox" name="converterToCO" >
-         <property name="sizePolicy" >
-          <sizepolicy>
-           <hsizetype>3</hsizetype>
-           <vsizetype>0</vsizetype>
-           <horstretch>0</horstretch>
-           <verstretch>0</verstretch>
-          </sizepolicy>
-         </property>
-        </widget>
-       </item>
-       <item row="3" column="1" >
-        <widget class="QLineEdit" name="converterFlagED" />
-       </item>
-       <item row="1" column="0" >
-        <widget class="QLabel" name="converterToLA" >
-         <property name="text" >
-          <string>&amp;To:[[as in 'From format x to format y']]</string>
-         </property>
-         <property name="buddy" >
-          <cstring>converterToCO</cstring>
-         </property>
-        </widget>
-       </item>
-       <item row="0" column="0" >
-        <widget class="QLabel" name="converterFromLA" >
-         <property name="text" >
-          <string>&amp;From:</string>
-         </property>
-         <property name="buddy" >
-          <cstring>converterFromCO</cstring>
-         </property>
-        </widget>
-       </item>
-       <item row="2" column="1" >
-        <widget class="QLineEdit" name="converterED" />
-       </item>
-       <item row="3" column="0" >
-        <widget class="QLabel" name="converterFlagLA" >
-         <property name="text" >
-          <string>E&amp;xtra flag:</string>
-         </property>
-         <property name="buddy" >
-          <cstring>converterFlagED</cstring>
-         </property>
-        </widget>
-       </item>
-      </layout>
-     </item>
-     <item row="2" column="0" >
+     <item>
       <spacer>
        <property name="orientation" >
-        <enum>Qt::Vertical</enum>
+        <enum>Qt::Horizontal</enum>
        </property>
        <property name="sizeType" >
         <enum>QSizePolicy::Expanding</enum>
        </property>
        <property name="sizeHint" >
         <size>
-         <width>20</width>
-         <height>20</height>
+         <width>111</width>
+         <height>31</height>
         </size>
        </property>
       </spacer>
      </item>
-     <item row="1" column="0" >
-      <layout class="QHBoxLayout" >
-       <property name="margin" >
-        <number>0</number>
+     <item>
+      <widget class="QPushButton" name="converterNewPB" >
+       <property name="text" >
+        <string>A&amp;dd</string>
        </property>
-       <property name="spacing" >
-        <number>6</number>
+      </widget>
+     </item>
+     <item>
+      <widget class="QPushButton" name="converterModifyPB" >
+       <property name="text" >
+        <string>&amp;Modify</string>
        </property>
-       <item>
-        <widget class="QPushButton" name="converterNewPB" >
-         <property name="text" >
-          <string>A&amp;dd</string>
-         </property>
-        </widget>
-       </item>
-       <item>
-        <widget class="QPushButton" name="converterModifyPB" >
-         <property name="text" >
-          <string>&amp;Modify</string>
-         </property>
-        </widget>
-       </item>
-       <item>
-        <spacer>
-         <property name="orientation" >
-          <enum>Qt::Horizontal</enum>
-         </property>
-         <property name="sizeType" >
-          <enum>QSizePolicy::Expanding</enum>
-         </property>
-         <property name="sizeHint" >
-          <size>
-           <width>20</width>
-           <height>20</height>
-          </size>
-         </property>
-        </spacer>
-       </item>
-      </layout>
+      </widget>
      </item>
     </layout>
    </item>
+   <item row="1" column="2" >
+    <widget class="QComboBox" name="converterFromCO" >
+     <property name="sizePolicy" >
+      <sizepolicy>
+       <hsizetype>3</hsizetype>
+       <vsizetype>0</vsizetype>
+       <horstretch>0</horstretch>
+       <verstretch>0</verstretch>
+      </sizepolicy>
+     </property>
+    </widget>
+   </item>
+   <item row="3" column="1" >
+    <widget class="QLabel" name="converterLA" >
+     <property name="text" >
+      <string>C&amp;onverter:</string>
+     </property>
+     <property name="buddy" >
+      <cstring>converterED</cstring>
+     </property>
+    </widget>
+   </item>
+   <item row="2" column="2" >
+    <widget class="QComboBox" name="converterToCO" >
+     <property name="sizePolicy" >
+      <sizepolicy>
+       <hsizetype>3</hsizetype>
+       <vsizetype>0</vsizetype>
+       <horstretch>0</horstretch>
+       <verstretch>0</verstretch>
+      </sizepolicy>
+     </property>
+    </widget>
+   </item>
+   <item row="2" column="1" >
+    <widget class="QLabel" name="converterToLA" >
+     <property name="toolTip" >
+      <string>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:Sans Serif; font-size:9pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">[[as in 'From format x to format y']]&lt;/p>&lt;/body>&lt;/html></string>
+     </property>
+     <property name="text" >
+      <string>&amp;To:</string>
+     </property>
+     <property name="buddy" >
+      <cstring>converterToCO</cstring>
+     </property>
+    </widget>
+   </item>
+   <item row="1" column="1" >
+    <widget class="QLabel" name="converterFromLA" >
+     <property name="text" >
+      <string>&amp;From:</string>
+     </property>
+     <property name="buddy" >
+      <cstring>converterFromCO</cstring>
+     </property>
+    </widget>
+   </item>
+   <item row="3" column="2" >
+    <widget class="QLineEdit" name="converterED" />
+   </item>
+   <item row="4" column="1" >
+    <widget class="QLabel" name="converterFlagLA" >
+     <property name="text" >
+      <string>E&amp;xtra flag:</string>
+     </property>
+     <property name="buddy" >
+      <cstring>converterFlagED</cstring>
+     </property>
+    </widget>
+   </item>
    <item row="0" column="0" >
-    <layout class="QGridLayout" >
+    <widget class="QLabel" name="formatsLA_2" >
+     <property name="text" >
+      <string>&amp;Converters</string>
+     </property>
+     <property name="buddy" >
+      <cstring>convertersLW</cstring>
+     </property>
+    </widget>
+   </item>
+   <item row="7" column="0" >
+    <layout class="QHBoxLayout" >
      <property name="margin" >
       <number>0</number>
      </property>
      <property name="spacing" >
       <number>6</number>
      </property>
-     <item row="0" column="0" >
-      <widget class="QLabel" name="formatsLA_2" >
-       <property name="text" >
-        <string>&amp;Converters</string>
-       </property>
-       <property name="buddy" >
-        <cstring>convertersLB</cstring>
+     <item>
+      <spacer>
+       <property name="orientation" >
+        <enum>Qt::Horizontal</enum>
        </property>
-      </widget>
-     </item>
-     <item row="2" column="0" >
-      <layout class="QHBoxLayout" >
-       <property name="margin" >
-        <number>0</number>
+       <property name="sizeType" >
+        <enum>QSizePolicy::Expanding</enum>
        </property>
-       <property name="spacing" >
-        <number>6</number>
+       <property name="sizeHint" >
+        <size>
+         <width>20</width>
+         <height>20</height>
+        </size>
        </property>
-       <item>
-        <spacer>
-         <property name="orientation" >
-          <enum>Qt::Horizontal</enum>
-         </property>
-         <property name="sizeType" >
-          <enum>QSizePolicy::Expanding</enum>
-         </property>
-         <property name="sizeHint" >
-          <size>
-           <width>20</width>
-           <height>20</height>
-          </size>
-         </property>
-        </spacer>
-       </item>
-       <item>
-        <widget class="QPushButton" name="converterRemovePB" >
-         <property name="text" >
-          <string>&amp;Remove</string>
-         </property>
-        </widget>
-       </item>
-      </layout>
+      </spacer>
      </item>
-     <item row="1" column="0" >
-      <widget class="Q3ListBox" name="convertersLB" >
-       <property name="sizePolicy" >
-        <sizepolicy>
-         <hsizetype>5</hsizetype>
-         <vsizetype>7</vsizetype>
-         <horstretch>0</horstretch>
-         <verstretch>0</verstretch>
-        </sizepolicy>
-       </property>
-       <property name="vScrollBarMode" >
-        <enum>Q3ScrollView::AlwaysOn</enum>
-       </property>
-       <property name="hScrollBarMode" >
-        <enum>Q3ScrollView::AlwaysOff</enum>
+     <item>
+      <widget class="QPushButton" name="converterRemovePB" >
+       <property name="text" >
+        <string>&amp;Remove</string>
        </property>
       </widget>
      </item>
     </layout>
    </item>
+   <item rowspan="6" row="1" column="0" >
+    <widget class="QListWidget" name="convertersLW" />
+   </item>
+   <item row="4" column="2" >
+    <widget class="QLineEdit" name="converterFlagED" />
+   </item>
   </layout>
  </widget>
  <pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
- <customwidgets>
-  <customwidget>
-   <class>Q3ListBox</class>
-   <extends></extends>
-   <header>q3listbox.h</header>
-   <container>0</container>
-   <pixmap></pixmap>
-  </customwidget>
- </customwidgets>
  <tabstops>
-  <tabstop>convertersLB</tabstop>
   <tabstop>converterFromCO</tabstop>
   <tabstop>converterToCO</tabstop>
   <tabstop>converterED</tabstop>
index f530024b923edcdda4bca0337df3c1941a5af77c..6e4b13aa3a8930194a1770cd79bb6b92c51533a1 100644 (file)
@@ -8,8 +8,8 @@
    <rect>
     <x>0</x>
     <y>0</y>
-    <width>428</width>
-    <height>261</height>
+    <width>423</width>
+    <height>260</height>
    </rect>
   </property>
   <property name="windowTitle" >
   </property>
   <layout class="QGridLayout" >
    <property name="margin" >
-    <number>11</number>
+    <number>9</number>
    </property>
    <property name="spacing" >
     <number>6</number>
    </property>
-   <item row="0" column="0" >
-    <layout class="QGridLayout" >
+   <item row="2" column="3" >
+    <spacer>
+     <property name="orientation" >
+      <enum>Qt::Horizontal</enum>
+     </property>
+     <property name="sizeHint" >
+      <size>
+       <width>40</width>
+       <height>20</height>
+      </size>
+     </property>
+    </spacer>
+   </item>
+   <item row="3" column="1" colspan="2" >
+    <layout class="QHBoxLayout" >
      <property name="margin" >
       <number>0</number>
      </property>
      <property name="spacing" >
       <number>6</number>
      </property>
-     <item row="1" column="0" >
-      <widget class="Q3ListBox" name="AllCopiersLB" >
-       <property name="sizePolicy" >
-        <sizepolicy>
-         <hsizetype>5</hsizetype>
-         <vsizetype>7</vsizetype>
-         <horstretch>0</horstretch>
-         <verstretch>0</verstretch>
-        </sizepolicy>
+     <item>
+      <spacer>
+       <property name="orientation" >
+        <enum>Qt::Horizontal</enum>
        </property>
-       <property name="vScrollBarMode" >
-        <enum>Q3ScrollView::Auto</enum>
+       <property name="sizeType" >
+        <enum>QSizePolicy::Expanding</enum>
        </property>
-       <property name="hScrollBarMode" >
-        <enum>Q3ScrollView::AlwaysOff</enum>
+       <property name="sizeHint" >
+        <size>
+         <width>90</width>
+         <height>31</height>
+        </size>
        </property>
-      </widget>
+      </spacer>
      </item>
-     <item row="2" column="0" >
-      <layout class="QHBoxLayout" >
-       <property name="margin" >
-        <number>0</number>
-       </property>
-       <property name="spacing" >
-        <number>6</number>
+     <item>
+      <widget class="QPushButton" name="copierNewPB" >
+       <property name="text" >
+        <string>&amp;Add</string>
        </property>
-       <item>
-        <spacer>
-         <property name="orientation" >
-          <enum>Qt::Horizontal</enum>
-         </property>
-         <property name="sizeType" >
-          <enum>QSizePolicy::Preferred</enum>
-         </property>
-         <property name="sizeHint" >
-          <size>
-           <width>20</width>
-           <height>20</height>
-          </size>
-         </property>
-        </spacer>
-       </item>
-       <item>
-        <widget class="QPushButton" name="copierRemovePB" >
-         <property name="text" >
-          <string>&amp;Remove</string>
-         </property>
-        </widget>
-       </item>
-      </layout>
+      </widget>
      </item>
-     <item row="0" column="0" >
-      <widget class="QLabel" name="AllCopiersLA" >
+     <item>
+      <widget class="QPushButton" name="copierModifyPB" >
        <property name="text" >
-        <string>C&amp;opiers</string>
-       </property>
-       <property name="buddy" >
-        <cstring>AllCopiersLB</cstring>
+        <string>&amp;Modify</string>
        </property>
       </widget>
      </item>
     </layout>
    </item>
-   <item row="0" column="1" >
-    <layout class="QGridLayout" >
+   <item row="0" column="0" >
+    <widget class="QLabel" name="AllCopiersLA" >
+     <property name="text" >
+      <string>C&amp;opiers</string>
+     </property>
+     <property name="buddy" >
+      <cstring>AllCopiersLW</cstring>
+     </property>
+    </widget>
+   </item>
+   <item row="5" column="0" >
+    <layout class="QHBoxLayout" >
      <property name="margin" >
       <number>0</number>
      </property>
      <property name="spacing" >
       <number>6</number>
      </property>
-     <item row="1" column="0" >
-      <layout class="QHBoxLayout" >
-       <property name="margin" >
-        <number>0</number>
-       </property>
-       <property name="spacing" >
-        <number>6</number>
-       </property>
-       <item>
-        <widget class="QPushButton" name="copierNewPB" >
-         <property name="text" >
-          <string>&amp;Add</string>
-         </property>
-        </widget>
-       </item>
-       <item>
-        <widget class="QPushButton" name="copierModifyPB" >
-         <property name="text" >
-          <string>&amp;Modify</string>
-         </property>
-        </widget>
-       </item>
-       <item>
-        <spacer>
-         <property name="orientation" >
-          <enum>Qt::Horizontal</enum>
-         </property>
-         <property name="sizeType" >
-          <enum>QSizePolicy::Expanding</enum>
-         </property>
-         <property name="sizeHint" >
-          <size>
-           <width>20</width>
-           <height>20</height>
-          </size>
-         </property>
-        </spacer>
-       </item>
-      </layout>
-     </item>
-     <item row="0" column="0" >
-      <layout class="QGridLayout" >
-       <property name="margin" >
-        <number>0</number>
-       </property>
-       <property name="spacing" >
-        <number>6</number>
-       </property>
-       <item row="0" column="1" >
-        <widget class="QComboBox" name="copierFormatCO" >
-         <property name="sizePolicy" >
-          <sizepolicy>
-           <hsizetype>3</hsizetype>
-           <vsizetype>0</vsizetype>
-           <horstretch>0</horstretch>
-           <verstretch>0</verstretch>
-          </sizepolicy>
-         </property>
-        </widget>
-       </item>
-       <item row="2" column="0" >
-        <widget class="QLabel" name="copierLA" >
-         <property name="text" >
-          <string>&amp;Copier:</string>
-         </property>
-         <property name="buddy" >
-          <cstring>copierED</cstring>
-         </property>
-        </widget>
-       </item>
-       <item row="0" column="0" >
-        <widget class="QLabel" name="copierFormatLA" >
-         <property name="text" >
-          <string>&amp;Format:</string>
-         </property>
-         <property name="buddy" >
-          <cstring>copierFormatCO</cstring>
-         </property>
-        </widget>
-       </item>
-       <item row="2" column="1" >
-        <widget class="QLineEdit" name="copierED" />
-       </item>
-      </layout>
-     </item>
-     <item row="2" column="0" >
+     <item>
       <spacer>
        <property name="orientation" >
-        <enum>Qt::Vertical</enum>
+        <enum>Qt::Horizontal</enum>
        </property>
        <property name="sizeType" >
-        <enum>QSizePolicy::Expanding</enum>
+        <enum>QSizePolicy::Preferred</enum>
        </property>
        <property name="sizeHint" >
         <size>
        </property>
       </spacer>
      </item>
+     <item>
+      <widget class="QPushButton" name="copierRemovePB" >
+       <property name="text" >
+        <string>&amp;Remove</string>
+       </property>
+      </widget>
+     </item>
     </layout>
    </item>
+   <item row="4" column="1" colspan="2" >
+    <spacer>
+     <property name="orientation" >
+      <enum>Qt::Vertical</enum>
+     </property>
+     <property name="sizeType" >
+      <enum>QSizePolicy::Expanding</enum>
+     </property>
+     <property name="sizeHint" >
+      <size>
+       <width>278</width>
+       <height>20</height>
+      </size>
+     </property>
+    </spacer>
+   </item>
+   <item row="2" column="1" >
+    <widget class="QLabel" name="copierLA" >
+     <property name="text" >
+      <string>&amp;Copier:</string>
+     </property>
+     <property name="buddy" >
+      <cstring>copierED</cstring>
+     </property>
+    </widget>
+   </item>
+   <item row="1" column="1" >
+    <widget class="QLabel" name="copierFormatLA" >
+     <property name="text" >
+      <string>&amp;Format:</string>
+     </property>
+     <property name="buddy" >
+      <cstring>copierFormatCO</cstring>
+     </property>
+    </widget>
+   </item>
+   <item row="1" column="2" >
+    <widget class="QComboBox" name="copierFormatCO" >
+     <property name="sizePolicy" >
+      <sizepolicy>
+       <hsizetype>3</hsizetype>
+       <vsizetype>0</vsizetype>
+       <horstretch>0</horstretch>
+       <verstretch>0</verstretch>
+      </sizepolicy>
+     </property>
+    </widget>
+   </item>
+   <item row="2" column="2" >
+    <widget class="QLineEdit" name="copierED" />
+   </item>
+   <item rowspan="4" row="1" column="0" >
+    <widget class="QListWidget" name="AllCopiersLW" />
+   </item>
   </layout>
  </widget>
  <pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
- <customwidgets>
-  <customwidget>
-   <class>Q3ListBox</class>
-   <extends></extends>
-   <header>q3listbox.h</header>
-   <container>0</container>
-   <pixmap></pixmap>
-  </customwidget>
- </customwidgets>
  <tabstops>
-  <tabstop>AllCopiersLB</tabstop>
   <tabstop>copierFormatCO</tabstop>
   <tabstop>copierED</tabstop>
   <tabstop>copierNewPB</tabstop>
index cc8c6e68de1bdceb5a7a2681d98d47081895540a..df44ed98140eed1bf8326fcbec01cc31e1e6e692 100644 (file)
@@ -8,8 +8,8 @@
    <rect>
     <x>0</x>
     <y>0</y>
-    <width>419</width>
-    <height>261</height>
+    <width>351</width>
+    <height>340</height>
    </rect>
   </property>
   <property name="windowTitle" >
   </property>
   <layout class="QGridLayout" >
    <property name="margin" >
-    <number>11</number>
+    <number>9</number>
    </property>
    <property name="spacing" >
     <number>6</number>
    </property>
-   <item row="0" column="1" colspan="2" >
+   <item row="1" column="4" >
+    <spacer>
+     <property name="orientation" >
+      <enum>Qt::Horizontal</enum>
+     </property>
+     <property name="sizeHint" >
+      <size>
+       <width>91</width>
+       <height>20</height>
+      </size>
+     </property>
+    </spacer>
+   </item>
+   <item row="2" column="1" >
+    <spacer>
+     <property name="orientation" >
+      <enum>Qt::Horizontal</enum>
+     </property>
+     <property name="sizeType" >
+      <enum>QSizePolicy::MinimumExpanding</enum>
+     </property>
+     <property name="sizeHint" >
+      <size>
+       <width>20</width>
+       <height>31</height>
+      </size>
+     </property>
+    </spacer>
+   </item>
+   <item row="2" column="2" >
+    <widget class="QPushButton" name="formatNewPB" >
+     <property name="text" >
+      <string>&amp;Add</string>
+     </property>
+    </widget>
+   </item>
+   <item row="2" column="3" >
+    <widget class="QPushButton" name="formatModifyPB" >
+     <property name="text" >
+      <string>&amp;Modify</string>
+     </property>
+    </widget>
+   </item>
+   <item row="3" column="1" colspan="3" >
+    <spacer>
+     <property name="orientation" >
+      <enum>Qt::Vertical</enum>
+     </property>
+     <property name="sizeType" >
+      <enum>QSizePolicy::Expanding</enum>
+     </property>
+     <property name="sizeHint" >
+      <size>
+       <width>129</width>
+       <height>31</height>
+      </size>
+     </property>
+    </spacer>
+   </item>
+   <item row="1" column="1" colspan="3" >
     <layout class="QGridLayout" >
      <property name="margin" >
       <number>0</number>
      </item>
     </layout>
    </item>
-   <item row="1" column="1" colspan="2" >
+   <item row="4" column="0" >
     <layout class="QHBoxLayout" >
      <property name="margin" >
       <number>0</number>
      <property name="spacing" >
       <number>6</number>
      </property>
-     <item>
-      <widget class="QPushButton" name="formatNewPB" >
-       <property name="text" >
-        <string>&amp;Add</string>
-       </property>
-      </widget>
-     </item>
-     <item>
-      <widget class="QPushButton" name="formatModifyPB" >
-       <property name="text" >
-        <string>&amp;Modify</string>
-       </property>
-      </widget>
-     </item>
      <item>
       <spacer>
        <property name="orientation" >
         <enum>Qt::Horizontal</enum>
        </property>
        <property name="sizeType" >
-        <enum>QSizePolicy::MinimumExpanding</enum>
+        <enum>QSizePolicy::Preferred</enum>
        </property>
        <property name="sizeHint" >
         <size>
        </property>
       </spacer>
      </item>
-    </layout>
-   </item>
-   <item row="2" column="2" >
-    <spacer>
-     <property name="orientation" >
-      <enum>Qt::Vertical</enum>
-     </property>
-     <property name="sizeType" >
-      <enum>QSizePolicy::Expanding</enum>
-     </property>
-     <property name="sizeHint" >
-      <size>
-       <width>20</width>
-       <height>20</height>
-      </size>
-     </property>
-    </spacer>
-   </item>
-   <item rowspan="3" row="0" column="0" >
-    <layout class="QVBoxLayout" >
-     <property name="margin" >
-      <number>0</number>
-     </property>
-     <property name="spacing" >
-      <number>6</number>
-     </property>
      <item>
-      <widget class="QLabel" name="formatsLA" >
+      <widget class="QPushButton" name="formatRemovePB" >
        <property name="text" >
-        <string>&amp;File formats</string>
-       </property>
-       <property name="buddy" >
-        <cstring>formatsLB</cstring>
+        <string>&amp;Remove</string>
        </property>
       </widget>
      </item>
-     <item>
-      <widget class="Q3ListBox" name="formatsLB" >
-       <property name="sizePolicy" >
-        <sizepolicy>
-         <hsizetype>5</hsizetype>
-         <vsizetype>7</vsizetype>
-         <horstretch>0</horstretch>
-         <verstretch>0</verstretch>
-        </sizepolicy>
-       </property>
-       <property name="vScrollBarMode" >
-        <enum>Q3ScrollView::AlwaysOn</enum>
-       </property>
-       <property name="hScrollBarMode" >
-        <enum>Q3ScrollView::AlwaysOff</enum>
-       </property>
-      </widget>
-     </item>
-     <item>
-      <layout class="QHBoxLayout" >
-       <property name="margin" >
-        <number>0</number>
-       </property>
-       <property name="spacing" >
-        <number>6</number>
-       </property>
-       <item>
-        <spacer>
-         <property name="orientation" >
-          <enum>Qt::Horizontal</enum>
-         </property>
-         <property name="sizeType" >
-          <enum>QSizePolicy::Preferred</enum>
-         </property>
-         <property name="sizeHint" >
-          <size>
-           <width>20</width>
-           <height>20</height>
-          </size>
-         </property>
-        </spacer>
-       </item>
-       <item>
-        <widget class="QPushButton" name="formatRemovePB" >
-         <property name="text" >
-          <string>&amp;Remove</string>
-         </property>
-        </widget>
-       </item>
-      </layout>
-     </item>
     </layout>
    </item>
-   <item row="2" column="1" >
-    <spacer>
-     <property name="orientation" >
-      <enum>Qt::Horizontal</enum>
-     </property>
-     <property name="sizeType" >
-      <enum>QSizePolicy::Minimum</enum>
+   <item rowspan="3" row="1" column="0" >
+    <widget class="QListWidget" name="formatsLW" />
+   </item>
+   <item row="0" column="0" >
+    <widget class="QLabel" name="formatsLA" >
+     <property name="text" >
+      <string>&amp;File formats</string>
      </property>
-     <property name="sizeHint" >
-      <size>
-       <width>20</width>
-       <height>20</height>
-      </size>
+     <property name="buddy" >
+      <cstring>formatsLW</cstring>
      </property>
-    </spacer>
+    </widget>
    </item>
   </layout>
  </widget>
  <pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
- <customwidgets>
-  <customwidget>
-   <class>Q3ListBox</class>
-   <extends></extends>
-   <header>q3listbox.h</header>
-   <container>0</container>
-   <pixmap></pixmap>
-  </customwidget>
- </customwidgets>
  <tabstops>
-  <tabstop>formatsLB</tabstop>
   <tabstop>formatNewPB</tabstop>
   <tabstop>formatRemovePB</tabstop>
   <tabstop>formatED</tabstop>