]> git.lyx.org Git - features.git/commitdiff
various fixes
authorJohn Levon <levon@movementarian.org>
Sat, 25 Aug 2001 20:04:15 +0000 (20:04 +0000)
committerJohn Levon <levon@movementarian.org>
Sat, 25 Aug 2001 20:04:15 +0000 (20:04 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2585 a592a061-630c-0410-9148-cb99ea01b6c8

21 files changed:
src/frontends/qt2/ChangeLog
src/frontends/qt2/Dialogs.C
src/frontends/qt2/QAbout.h
src/frontends/qt2/QCitation.C
src/frontends/qt2/QCitation.h
src/frontends/qt2/QCitationDialog.C
src/frontends/qt2/QDocument.C
src/frontends/qt2/QDocument.h
src/frontends/qt2/QIndex.C
src/frontends/qt2/QIndex.h
src/frontends/qt2/QURL.C
src/frontends/qt2/QURL.h
src/frontends/qt2/QURLDialog.C
src/frontends/qt2/QURLDialog.h
src/frontends/qt2/Qt2BC.C
src/frontends/qt2/Qt2Base.C
src/frontends/qt2/Qt2Base.h
src/frontends/qt2/README
src/frontends/qt2/ui/QCitationDialog.ui
src/frontends/qt2/ui/QIndexDialog.ui
src/frontends/qt2/ui/QURLDialog.ui

index 75715f35cb27202f804f6e64751365ec234ba954..fc88887c017ada2958ab7a1b89a5ee351d9d37e0 100644 (file)
@@ -1,3 +1,29 @@
+2001-08-25  John Levon  <moz@compsoc.man.ac.uk>
+
+       * Dialogs.C: add URL
+       * QAbout.h:
+       * QCitation.h:
+       * QDocument.h: 
+       * QIndex.C: 
+       * Qt2Base.h:
+       * Qt2Base.C: add an updating_ variable to prevent
+         bc() breakage.
+
+       * QURL.h:
+       * QURL.C:
+       * QURLDialog.h:
+       * QURLDialog.C:
+       * ui/QURLDialog.ui: make alive again
+        
+       * Qt2BC.C: make lineedits ReadOnly not disabled 
+       * README: update
+       * ui/QCitationDialog.ui: small cleanups
+
+       * ui/QIndexDialog.ui: add a what's this
 2001-08-24  John Levon  <moz@compsoc.man.ac.uk>
 
        * Dialogs.C: include the right files
index 5f9bc03b93d4a80d334b307dadfaaa338b8fc2bf..9aeb6129f0e8a9731f2a05643e3c1e7af38e528b 100644 (file)
@@ -15,6 +15,7 @@
 #include "QAboutDialog.h"
 #include "QCitationDialog.h"
 #include "QIndexDialog.h"
+#include "QURLDialog.h"
  
 // the controller interface
 #include "QAbout.h"
@@ -26,6 +27,7 @@
 #include "QSearch.h"
 #include "QSplash.h"
 #include "QTabularCreate.h"
+#include "QURL.h"
 
 #include "QtLyXView.h" 
 #include "Dialogs.h"
@@ -44,6 +46,7 @@
 #include "controllers/ControlCitation.h"
 #include "controllers/ControlIndex.h"
 #include "controllers/ControlSplash.h"
+#include "controllers/ControlUrl.h" 
 #if 0
 #include "controllers/ControlCopyright.h"
 #include "controllers/ControlCredits.h"
@@ -70,7 +73,6 @@
 #include "controllers/ControlTabularCreate.h"
 #include "controllers/ControlThesaurus.h"
 #include "controllers/ControlToc.h"
-#include "controllers/ControlUrl.h"
 #include "controllers/ControlVCLog.h"
 #endif
 
@@ -88,6 +90,7 @@ Dialogs::Dialogs(LyXView * lv)
        add(new GUICitation<QCitation, Qt2BC>(*lv, *this));
        add(new GUIAboutlyx<QAbout, Qt2BC>(*lv, *this));
        add(new GUIIndex<QIndex, Qt2BC>(*lv, *this));
+       add(new GUIUrl<QURL, Qt2BC>(*lv, *this));
 
        // reduce the number of connections needed in
        // dialogs by a simple connection here.
index 7d50c1e40e0ecff1e957df3ef70c8bb043d17471..eafe752b6c21e04172ff4aff0092af71da705921 100644 (file)
@@ -28,7 +28,7 @@ private:
        /// not needed
        virtual void apply() {}
        /// not needed
-       virtual void update() {}
+       virtual void update_contents() {}
        // build the dialog
        virtual void build();
 };
index ee29292827d80b5a14585731b2b5a112d00da993..cf15eba6d9bb1b80217b6142a4129f96064b4552 100644 (file)
@@ -89,7 +89,7 @@ void QCitation::build()
 }
 
 
-void QCitation::update()
+void QCitation::update_contents()
 {
        // Make the list of all available bibliography keys
        bibkeys = biblio::getKeys(controller().bibkeysInfo());
@@ -105,8 +105,6 @@ void QCitation::update()
        setCiteButtons(OFF);
 
        dialog_->textAfterED->setText(controller().params().getOptions().c_str());
-
-       reset();
 }
 
 
index d3126d7590347f3da16c76c2b864a323351bd506..4713784fb86ddfc927ce27163c85bf2ac61948b9 100644 (file)
@@ -46,7 +46,7 @@ private:
        /// Hide the dialog.
        virtual void hide();
        /// Update dialog before/whilst showing it.
-       virtual void update();
+       virtual void update_contents();
 
        void updateBrowser(QListBox *, std::vector<string> const &) const;
        ///
index 3977b247c8d7b80160e7a7e1ec41770c04277cca..3e1a15b2a8ddfad4c2d2c05da4e33b4b5824373b 100644 (file)
@@ -265,12 +265,23 @@ void QCitationDialog::doFind(biblio::Direction const dir)
 
        bool const caseSensitive = searchCaseCB->isChecked();
        
-       vector<string>::const_iterator const cit =
+       vector<string>::const_iterator cit =
                biblio::searchKeys(theMap, form_->bibkeys, str,
-                          start, type, dir, caseSensitive);
+                       start, type, dir, caseSensitive);
 
+       // FIXME: should work ... 
        if (cit == form_->bibkeys.end()) {
-               return;
+               // not found. let's loop round
+               if (dir == biblio::FORWARD)
+                       start = form_->bibkeys.begin();
+               else
+                       start = form_->bibkeys.end();
+               
+               cit = biblio::searchKeys(theMap, form_->bibkeys, str,
+                       start, type, dir, caseSensitive);
+               if (cit == form_->bibkeys.end())
+                       return;
        }
 
        int const found = int(cit - form_->bibkeys.begin());
index e5597afa8dc963dbd2a2080d58726d42493b08cd..aeea3dc2065152f4a873f989484ed55ec2fe8388 100644 (file)
@@ -245,7 +245,7 @@ void QDocument::cancel()
 }
 
 
-void QDocument::update()
+void QDocument::update_contents()
 {
        if (!dialog_.get())
                return;
index 858aec385e0c0adbb30783df478c35843368e83e..f8aa0265a7158dc5dd00071a3385c93f53516a79 100644 (file)
@@ -75,7 +75,7 @@ private:
 //     /// Filter the inputs
 //     virtual bool input( FL_OBJECT *, long );
        /// Update the dialog.
-       virtual void update();
+       virtual void update_contents();
        /// Apply from dialog
        virtual void apply();
        /// Cancel from dialog
index efe20ed2f5bad7c7ac7d301531b00007901cd5ba..e684e7722543ee55f1e251cc2b3280488617b9b7 100644 (file)
@@ -41,10 +41,9 @@ void QIndex::build()
 }
 
  
-void QIndex::update()
+void QIndex::update_contents()
 {
        dialog_->keywordED->setText(controller().params().getContents().c_str());
-       reset();
 }
 
  
@@ -52,3 +51,9 @@ void QIndex::apply()
 {
        controller().params().setContents(dialog_->keywordED->text().latin1());
 }
+
+
+bool QIndex::isValid()
+{
+       return !string(dialog_->keywordED->text()).empty();
+}
index 089bcdfa3c4d58e042fde42839bb17d5b8bcb034..d77b82bcf2b0eb2f391083a678e8cb1165c38715 100644 (file)
@@ -24,11 +24,14 @@ class QIndex :
 public: 
        QIndex(ControlIndex &);
 
+protected:
+       virtual bool isValid();
 private: 
        /// Apply changes
        virtual void apply();
        /// update
-       virtual void update();
+       virtual void update_contents();
        /// build the dialog
        virtual void build();
 };
index 470a12220c8addb1dead6fcee9016c3d9f37fdf7..45c8eb4d957c55d9daebc823bc8c75fda2bb2837 100644 (file)
 #include <config.h>
 
 #include "QURLDialog.h"
-#include "QtLyXView.h"
-#include "BufferView.h" 
-
-#include "Dialogs.h"
-#include "QURL.h"
-#include "gettext.h"
-#include "buffer.h"
-#include "lyxfunc.h" 
-
-#include <qlineedit.h>
 #include <qcheckbox.h>
 #include <qpushbutton.h>
+#include <qlineedit.h>
+#include "ControlUrl.h"
+#include "Qt2BC.h"
+#include "QURL.h"
+#include "debug.h"
+#include "gettext.h"
 
-QURL::QURL(LyXView *v, Dialogs *d)
-       : dialog_(0), lv_(v), d_(d), inset_(0), h_(0), u_(0), ih_(0)
-{
-       // let the dialog be shown
-       // This is a permanent connection so we won't bother
-       // storing a copy because we won't be disconnecting.
-       d->showUrl.connect(slot(this, &QURL::showUrl));
-       d->createUrl.connect(slot(this, &QURL::createUrl));
-}
-
+typedef Qt2CB<ControlUrl, Qt2DB<QURLDialog> > base_class;
  
-QURL::~QURL()
+QURL::QURL(ControlUrl & c)
+       : base_class(c, _("URL"))
 {
-       delete dialog_;
 }
 
 
-void QURL::showUrl(InsetCommand * const inset)
+void QURL::build()
 {
-       // FIXME: when could inset be 0 here ?
-       if (inset==0)
-               return;
+       dialog_.reset(new QURLDialog(this));
 
-       inset_ = inset;
-       readonly = lv_->buffer()->isReadonly();
-       //ih_ = inset_->hide.connect(slot(this,&QURL::hide));
-       params = inset->params();
-       
-       show();
+       bc().setOK(dialog_->okPB);
+       bc().setCancel(dialog_->closePB);
+       bc().addReadOnly(dialog_->urlED);
+       bc().addReadOnly(dialog_->nameED);
+       bc().addReadOnly(dialog_->hyperlinkCB);
 }
 
  
-void QURL::createUrl(string const & arg)
+void QURL::update_contents()
 {
-       // we could already be showing a URL, clear it out
-       if (inset_)
-               close();
-       readonly = lv_->buffer()->isReadonly();
-       params.setFromString(arg);
-       show();
-}
-
-void QURL::update()
-{
-       dialog_->urlED->setText(params.getContents().c_str());
-       dialog_->nameED->setText(params.getOptions().c_str());
-
-       if (params.getCmdName()=="url") 
-               dialog_->hyperlinkCB->setChecked(false);
-       else
-               dialog_->hyperlinkCB->setChecked(true);
-
-       if (readonly) {
-               dialog_->nameED->setFocusPolicy(QWidget::NoFocus);
-               dialog_->urlED->setFocusPolicy(QWidget::NoFocus);
-               dialog_->okPB->setEnabled(false);
-               dialog_->cancelPB->setText(_("Close"));
-               dialog_->hyperlinkCB->setEnabled(false);
-       } else {
-               dialog_->nameED->setFocusPolicy(QWidget::StrongFocus);
-               dialog_->urlED->setFocusPolicy(QWidget::StrongFocus);
-               dialog_->urlED->setFocus();
-               dialog_->okPB->setEnabled(true);
-               dialog_->cancelPB->setText(_("Cancel"));
-               dialog_->hyperlinkCB->setEnabled(true);
-       }
+       lyxerr << "update_contents URL" << std::endl;
+       lyxerr << dialog_->okPB << std::endl;
+       dialog_->urlED->setText(controller().params().getContents().c_str());
+       dialog_->nameED->setText(controller().params().getOptions().c_str());
+       dialog_->hyperlinkCB->setChecked(controller().params().getCmdName() != "url");
 }
 
  
 void QURL::apply()
 {
-       if (readonly)
-               return;
-
-       params.setContents(dialog_->urlED->text().latin1());
-       params.setOptions(dialog_->nameED->text().latin1());
+       controller().params().setContents(dialog_->urlED->text().latin1());
+       controller().params().setOptions(dialog_->nameED->text().latin1());
 
        if (dialog_->hyperlinkCB->isChecked())
-               params.setCmdName("htmlurl");
+               controller().params().setCmdName("htmlurl");
        else
-               params.setCmdName("url");
-
-       if (inset_ != 0) {
-               if (params != inset_->params()) {
-                       inset_->setParams(params);
-                       lv_->view()->updateInset(inset_, true);
-               }
-       } else
-               lv_->getLyXFunc()->dispatch(LFUN_INSERT_URL, params.getAsString().c_str());
+               controller().params().setCmdName("url");
 }
-
-void QURL::show()
-{
-       if (!dialog_)
-               dialog_ = new QURLDialog(this, 0, _("LyX: Url"), false);
-       if (!dialog_->isVisible()) {
-               h_ = d_->hideBufferDependent.connect(slot(this, &QURL::hide));
-               //u_ = d_->updateBufferDependent.connect(slot(this, &QURL::update));
-       }
 
-       dialog_->raise();
-       dialog_->setActiveWindow();
-       update();
-       dialog_->show();
-}
 
-void QURL::close()
+bool QURL::isValid()
 {
-       h_.disconnect();
-       u_.disconnect();
-       ih_.disconnect();
-       inset_ = 0;
-}
+       string const u(dialog_->urlED->text().latin1());
+       string const n(dialog_->nameED->text().latin1());
 
-void QURL::hide()
-{
-       dialog_->hide();
-       close();
-}
+       return !u.empty() && !n.empty(); 
+} 
index 6c420998949c12f916ce57dc4e8171107e4c7db7..af6ab0727eb3bc4cf3981aee0f395c567b21a164 100644 (file)
@@ -1,71 +1,36 @@
-// -*- C++ -*-
 /**
  * \file QURL.h
  * Copyright 2001 the LyX Team
  * Read the file COPYING
  *
- * \author John Levon <moz@compsoc.man.ac.uk>
- * \author Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
+ * \author John Levon
  */
 
 #ifndef QURL_H
 #define QURL_H
 
-#include "DialogBase.h"
-#include "LString.h"
-#include "boost/utility.hpp"
-#include "insets/inseturl.h"
-
-class Dialogs;
-class LyXView;
+#include "Qt2Base.h"
+class ControlUrl;
 class QURLDialog;
 
-class QURL : public DialogBase {
+class QURL :
+       public Qt2CB<ControlUrl, Qt2DB<QURLDialog> > 
+{
+       friend class QURLDialog; 
 public: 
-       QURL(LyXView *, Dialogs *);
-       ~QURL();
+       QURL(ControlUrl & c);
 
-       /// Apply changes
-       void apply();
-       /// close the connections
-       void close();
+protected:
+       virtual bool isValid();
  
 private: 
-       /// Create the dialog if necessary, update it and display it.
-       void show();
-       /// Hide the dialog.
-       void hide();
-       /// Update the dialog.
-       void update();
-
-       /// create a URL inset
-       void createUrl(string const &);
-       /// edit a URL inset
-       void showUrl(InsetCommand * const);
-       /// Real GUI implementation.
-       QURLDialog * dialog_;
-
-       /// the LyXView we belong to
-       LyXView * lv_;
-       /** Which Dialogs do we belong to?
-           Used so we can get at the signals we have to connect to.
-       */
-       Dialogs * d_;
-       /// pointer to the inset if any
-       InsetCommand * inset_;
-       /// insets params
-       InsetCommandParams params;
-       /// is the inset we are reading from a readonly buffer
-       bool readonly;
-       
-       /// Hide connection.
-       SigC::Connection h_;
-       /// Update connection.
-       SigC::Connection u_;
-       /// Inset hide connection.
-       SigC::Connection ih_;
+       /// apply dialog
+       virtual void apply();
+       /// build dialog
+       virtual void build();
+       /// update dialog
+       virtual void update_contents();
 };
 
 #endif // QURL_H
index 2512a9663dd7e967bfa6c0f9b18554a0c8afdfb3..af3694bf36d28f70a5f091f82e55fa157310595a 100644 (file)
@@ -8,14 +8,20 @@
 
 #include <config.h>
  
+#include <qpushbutton.h>
 #include "QURLDialog.h"
 #include "Dialogs.h"
 #include "QURL.h"
 
-QURLDialog::QURLDialog(QURL * form, QWidget * parent,  const char * name, bool modal, WFlags fl)
-       : QURLDialogBase(parent, name, modal, fl),
+QURLDialog::QURLDialog(QURL * form)
+       : QURLDialogBase(0, 0, false, 0),
        form_(form)
 {
+       connect(okPB, SIGNAL(clicked()),
+               form_, SLOT(slotOK()));
+       connect(closePB, SIGNAL(clicked()),
+               form_, SLOT(slotClose()));
 }
 
  
@@ -24,23 +30,14 @@ QURLDialog::~QURLDialog()
 }
 
  
-void QURLDialog::apply_adaptor()
+void QURLDialog::changed_adaptor()
 {
-       form_->apply();
-       form_->close();
-       hide();
+       form_->changed();
 }
 
 
-void QURLDialog::close_adaptor()
-{
-       form_->close();
-       hide();
-}
-
 void QURLDialog::closeEvent(QCloseEvent * e)
 {
-       form_->close();
+       form_->slotWMHide();
        e->accept();
 }
index 2dba0875a61569bf5be067429f6e48c001905dbc..b4c1bcba406430e437ad40fdbd071355c3da3c74 100644 (file)
@@ -17,12 +17,11 @@ class QURLDialog : public QURLDialogBase
 { Q_OBJECT
 
 public:
-       QURLDialog(QURL * form, QWidget * parent = 0, const char * name = 0, bool modal = FALSE, WFlags fl = 0);
+       QURLDialog(QURL * form);
        ~QURLDialog();
 
 public slots:
-       void apply_adaptor();
-       void close_adaptor();
+       void changed_adaptor();
 
 protected:
        void closeEvent(QCloseEvent *);
index 51a7beb92992c0fefc154acad6a0044ac0f4203a..46b7b47524a9ff068d7f1de5acf988cb485cb2d0 100644 (file)
@@ -17,6 +17,7 @@
 #include "debug.h"
 
 #include <qbutton.h>
+#include <qlineedit.h>
 
 Qt2BC::Qt2BC(string const & cancel, string const & close)
        : GuiBC<QButton, QWidget>(cancel, close)
@@ -25,13 +26,26 @@ Qt2BC::Qt2BC(string const & cancel, string const & close)
 
 void Qt2BC::setButtonEnabled(QButton * obj, bool enabled)
 {
+       lyxerr << "Qt2BC: setting button " 
+               << obj << " to " << enabled << std::endl;
        obj->setEnabled(enabled);
 }
 
 
 void Qt2BC::setWidgetEnabled(QWidget * obj, bool enabled)
 {
-       obj->setEnabled(enabled);
+       lyxerr << "Qt2BC: setting " 
+               << obj << " to " << enabled << std::endl;
+       // yuck, rtti, but the user comes first
+       if (obj->inherits("QLineEdit")) {
+               QLineEdit * le(static_cast<QLineEdit*>(obj)); 
+               le->setReadOnly(enabled);
+       } else {
+               obj->setEnabled(enabled);
+       }
        QWidget::FocusPolicy const p =
                (enabled) ? QWidget::StrongFocus : QWidget::NoFocus; 
        obj->setFocusPolicy(p);
index 965623d49e200c4d01bb92dce2475c6bb7a8a141..71bf92afd5ce44eaa6aa43e3d8fbbccc70240bef 100644 (file)
@@ -27,7 +27,7 @@
 #include "support/LAssert.h"
 
 Qt2Base::Qt2Base(ControlButtons & c, QString const & t)
-       : ViewBC<Qt2BC>(c), title_(t)
+       : ViewBC<Qt2BC>(c), updating_(false), title_(t)
 {}
 
 
@@ -50,12 +50,6 @@ void Qt2Base::show()
 }
 
 
-void Qt2Base::reset()
-{
-       qApp->processEvents();
-}
-
 void Qt2Base::hide()
 {
        if (form() && form()->isVisible())
@@ -71,6 +65,11 @@ bool Qt2Base::isValid()
  
 void Qt2Base::changed()
 {
+       lyxerr << "got changed() during updating:" << updating_ << std::endl;
+       if (updating_)
+               return;
        if (isValid())
                bc().valid(); 
        else
index 360dc6e1e5b096ddbfe09e1f758e41d24eee93fe..a6a660b4257e72ef6981eee1d05f34131d25287c 100644 (file)
 #ifndef QT2BASE_H
 #define QT2BASE_H
 
-class QDialog;
-
 #include <config.h> 
  
 #include <qfont.h>
+#include <qdialog.h>
 #include <qobject.h>
+#include <qapplication.h>
 
 #ifdef __GNUG__
 #pragma interface
@@ -52,8 +52,8 @@ protected:
        virtual void hide();
        /// Create the dialog if necessary, update it and display it.
        virtual void show();
-       /// reset after an update
-       virtual void reset();
+       /// update the dialog's contents
+       virtual void update_contents() = 0; 
 
        /// the dialog has changed contents
        virtual void changed(); 
@@ -61,6 +61,9 @@ protected:
        /// is the dialog currently valid ? 
        virtual bool isValid();
 
+       /// are we updating ?
+       bool updating_; 
 protected slots:
        // dialog closed from WM
        void slotWMHide();
@@ -91,10 +94,13 @@ template <class Dialog>
 class Qt2DB: public Qt2Base
 {
 protected:
-       Qt2DB(ControlButtons &, const QString&);
+       Qt2DB(ControlButtons &, const QString &);
+       /// update the dialog 
+       virtual void update();
  
        /// Pointer to the actual instantiation of the Qt dialog
-       virtual QDialog* form() const;
+       virtual QDialog * form() const;
        /// Real GUI implementation.
        boost::scoped_ptr<Dialog> dialog_;
 
@@ -102,18 +108,39 @@ protected:
 
 
 template <class Dialog>
-Qt2DB<Dialog>::Qt2DB(ControlButtons & c, const QString& t)
+Qt2DB<Dialog>::Qt2DB(ControlButtons & c, const QString & t)
        : Qt2Base(c, t)
 {}
 
 
 template <class Dialog>
-QDialog* Qt2DB<Dialog>::form() const
+QDialog * Qt2DB<Dialog>::form() const
 {
        return dialog_.get();
 }
 
 
+template <class Dialog>
+void Qt2DB<Dialog>::update()
+{
+       form()->setUpdatesEnabled(false);
+       // this is tricky. First we process pending events
+       // as a result of the bc() state change (if any).
+       // then we lock out any bc() changes as a result of
+       // "innocent" updates during update_contents()
+       // then we enable normal behaviour again.
+       qApp->processEvents();
+       updating_ = true;
+       update_contents();
+       qApp->processEvents();
+       updating_ = false;
+       form()->setUpdatesEnabled(true);
+       form()->update();
+}
+
 template <class Controller, class Base>
 class Qt2CB: public Base
 {
index 3ac34941172835d218b68a9346bbee7f744670b6..c6e300a8edcdaa1b5e4a8100a6f8374d283ea23a 100644 (file)
@@ -10,7 +10,8 @@ form_->changed(). If you are using a more complicated thing anyway,
 then remember to call form_->changed() at the end (if it has changed !)
  
 Every non-trivial widget should have a tooltip. If you don't know
-what to write, write "FIXME", and it can fixed later.
+what to write, write "FIXME", and it can fixed later. Don't be afraid
+to use QWhatsThis too (e.g. the index dialog)
  
 If necessary, you should override Qt2Base::isValid() for determining the validity
 of the current dialog's contents.
@@ -18,9 +19,12 @@ of the current dialog's contents.
 OK/Apply/Restore/Close should be connected in the derived class's constructor
 to call form_->slotOK() etc. Refer to close/cancel as close in the source.
  
-Every overridden update() must call reset() to ensure the beginning state of the dialog
-is correct !
+Override update_contents() to update the dialog, not update()
+
+Never call buttoncontroller functions directly from dialogs. In general, you
+should use Qt2Base::changed() in all circumstances. However, if you must call
+the buttoncontroller, make sure to respect Qt2Base::updating_
+
 Don't #undef emit - #include "QtLyXView.h" instead
  
 Naming conventions
index eb9ee3c3ff855229db51a7b2af58d0d1a0008e63..d9621de51201970c5cef3e24917c4f9829e7376a 100644 (file)
@@ -11,7 +11,7 @@
         <rect>
             <x>0</x>
             <y>0</y>
-            <width>439</width>
+            <width>427</width>
             <height>585</height>
         </rect>
     </property>
                                 <name>pixmap</name>
                                 <pixmap>image0</pixmap>
                             </property>
+                            <property>
+                                <name>toolTip</name>
+                                <string>Add the selected citation</string>
+                            </property>
                         </widget>
                         <widget>
                             <class>QPushButton</class>
                                 <name>pixmap</name>
                                 <pixmap>image1</pixmap>
                             </property>
+                            <property>
+                                <name>toolTip</name>
+                                <string>Remove the selected citation</string>
+                            </property>
                         </widget>
                         <widget>
                             <class>QPushButton</class>
                                 <name>pixmap</name>
                                 <pixmap>image2</pixmap>
                             </property>
+                            <property>
+                                <name>toolTip</name>
+                                <string>Move the selected citation up</string>
+                            </property>
                         </widget>
                         <widget>
                             <class>QPushButton</class>
                                 <name>pixmap</name>
                                 <pixmap>image3</pixmap>
                             </property>
+                            <property>
+                                <name>toolTip</name>
+                                <string>Move the selected citation down</string>
+                            </property>
                         </widget>
                     </vbox>
                 </widget>
                     </property>
                     <property>
                         <name>toolTip</name>
-                        <string>Reference keys available</string>
+                        <string>Available citation keys</string>
                     </property>
                 </widget>
                 <widget row="1"  column="0" >
                     </property>
                     <property>
                         <name>toolTip</name>
-                        <string>Keys currently selected</string>
+                        <string>Citations currently selected</string>
                     </property>
                 </widget>
             </grid>
             </property>
             <property>
                 <name>toolTip</name>
-                <string>Reference entry text</string>
+                <string>Citation entry</string>
             </property>
         </widget>
         <spacer>
                         <name>name</name>
                         <cstring>searchED</cstring>
                     </property>
+                    <property>
+                        <name>toolTip</name>
+                        <string>Search the available citations</string>
+                    </property>
                 </widget>
                 <widget>
                     <class>QLayoutWidget</class>
                                 <name>text</name>
                                 <string>Regular E&amp;xpression</string>
                             </property>
+                            <property>
+                                <name>toolTip</name>
+                                <string>Interpret search entry as a regular expression</string>
+                            </property>
                         </widget>
                         <spacer>
                             <property>
                                 <name>text</name>
                                 <string>&amp;Case sensitive</string>
                             </property>
+                            <property>
+                                <name>toolTip</name>
+                                <string>Make the search case-sensitive</string>
+                            </property>
                         </widget>
                         <spacer>
                             <property>
                         <name>name</name>
                         <cstring>citationStyleCO</cstring>
                     </property>
+                    <property>
+                        <name>toolTip</name>
+                        <string>FIXME</string>
+                    </property>
                 </widget>
                 <spacer>
                     <property>
     <slot access="protected">slotSearchTypeSelected(bool)</slot>
     <slot access="protected">slotUpClicked()</slot>
 </connections>
+<tabstops>
+    <tabstop>addPB</tabstop>
+    <tabstop>delPB</tabstop>
+    <tabstop>upPB</tabstop>
+    <tabstop>downPB</tabstop>
+    <tabstop>citeLB</tabstop>
+    <tabstop>bibLB</tabstop>
+    <tabstop>searchED</tabstop>
+    <tabstop>searchTypeCB</tabstop>
+    <tabstop>searchCaseCB</tabstop>
+    <tabstop>previousPB</tabstop>
+    <tabstop>nextPB</tabstop>
+    <tabstop>citationStyleCO</tabstop>
+    <tabstop>textBeforeED</tabstop>
+    <tabstop>textAfterED</tabstop>
+    <tabstop>restorePB</tabstop>
+    <tabstop>okPB</tabstop>
+    <tabstop>applyPB</tabstop>
+    <tabstop>closePB</tabstop>
+</tabstops>
 </UI>
index d177c0a56a4f6bb221902b602d900a5fd4ba1157..112e1f141b6c7fabb01b594a6caff2ebf889e4ef 100644 (file)
@@ -11,7 +11,7 @@
         <rect>
             <x>0</x>
             <y>0</y>
-            <width>204</width>
+            <width>197</width>
             <height>82</height>
         </rect>
     </property>
                         <name>toolTip</name>
                         <string>Index entry</string>
                     </property>
+                    <property>
+                        <name>whatsThis</name>
+                        <string>The format of the entry in the index.
+
+An entry can be specified as a sub-entry of
+another with "!" :
+
+cars!mileage
+
+You can cross-refer to another entry like so :
+
+cars!mileage|see{economy}
+
+For further details refer to the local LaTeX
+documentation.</string>
+                    </property>
                 </widget>
             </hbox>
         </widget>
index 6d7cb119edcaabb4324eb7fe2a5c8867600f5d91..9e80cb3649fa0e8887ee26fdbbf2bbe592aa7ee3 100644 (file)
                     <class>QPushButton</class>
                     <property stdset="1">
                         <name>name</name>
-                        <cstring>cancelPB</cstring>
+                        <cstring>closePB</cstring>
                     </property>
                     <property stdset="1">
                         <name>text</name>
-                        <string>&amp;Cancel</string>
+                        <string>&amp;Close</string>
                     </property>
                 </widget>
             </hbox>
 </widget>
 <connections>
     <connection>
-        <sender>okPB</sender>
-        <signal>clicked()</signal>
+        <sender>urlED</sender>
+        <signal>textChanged(const QString&amp;)</signal>
         <receiver>QURLDialogBase</receiver>
-        <slot>apply_adaptor()</slot>
+        <slot>changed_adaptor()</slot>
     </connection>
     <connection>
-        <sender>cancelPB</sender>
+        <sender>hyperlinkCB</sender>
         <signal>clicked()</signal>
         <receiver>QURLDialogBase</receiver>
-        <slot>close_adaptor()</slot>
+        <slot>changed_adaptor()</slot>
+    </connection>
+    <connection>
+        <sender>nameED</sender>
+        <signal>textChanged(const QString&amp;)</signal>
+        <receiver>QURLDialogBase</receiver>
+        <slot>changed_adaptor()</slot>
     </connection>
-    <slot access="public">apply_adaptor()</slot>
-    <slot access="public">close_adaptor()</slot>
+    <slot access="public">changed_adaptor()</slot>
 </connections>
 </UI>