]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiRef.cpp
* fix spelling in comments to please John.
[lyx.git] / src / frontends / qt4 / GuiRef.cpp
index c63cc80dbf34db47319b09ef7396f3630281e7c3..d98a507b371d61ece7744b14900f688276016624 100644 (file)
@@ -47,13 +47,6 @@ GuiRef::GuiRef(GuiView & lv)
 
        at_ref_ = false;
 
-       //FIXME: when/if we support the xr package for cross-reference
-       //between independant files. Those can be re-enabled.
-       refsL->setEnabled(false);
-       refsL->hide();
-       bufferCO->setEnabled(false);
-       bufferCO->hide();
-
        // Enabling is set in updateRefs. Disable for now in case no
        // call to updateContents follows (e.g. read-only documents).
        sortCB->setEnabled(false);
@@ -65,8 +58,8 @@ GuiRef::GuiRef(GuiView & lv)
        connect(okPB, SIGNAL(clicked()), this, SLOT(slotOK()));
        connect(applyPB, SIGNAL(clicked()), this, SLOT(slotApply()));
        connect(closePB, SIGNAL(clicked()), this, SLOT(slotClose()));
-       connect(closePB, SIGNAL(clicked()), this, SLOT(reset_dialog()));
-       connect(this, SIGNAL(rejected()), this, SLOT(dialog_rejected()));
+       connect(closePB, SIGNAL(clicked()), this, SLOT(resetDialog()));
+       connect(this, SIGNAL(rejected()), this, SLOT(dialogRejected()));
 
        connect(typeCO, SIGNAL(activated(int)),
                this, SLOT(changed_adaptor()));
@@ -78,7 +71,7 @@ GuiRef::GuiRef(GuiView & lv)
                this, SLOT(refHighlighted(QListWidgetItem *)));
        connect(refsLW, SIGNAL(itemSelectionChanged()),
                this, SLOT(selectionChanged()));
-       connect(refsLW, SIGNAL(itemActivated(QListWidgetItem *)),
+       connect(refsLW, SIGNAL(itemDoubleClicked(QListWidgetItem *)),
                this, SLOT(refSelected(QListWidgetItem *)));
        connect(sortCB, SIGNAL(clicked()),
                this, SLOT(sortToggled()));
@@ -193,16 +186,16 @@ void GuiRef::updateClicked()
 }
 
 
-void GuiRef::dialog_rejected()
+void GuiRef::dialogRejected()
 {
-       reset_dialog();
+       resetDialog();
        // We have to do this manually, instead of calling slotClose(), because
        // the dialog has already been made invisible before rejected() triggers.
        Dialog::disconnect();
 }
 
 
-void GuiRef::reset_dialog()
+void GuiRef::resetDialog()
 {
        at_ref_ = false;
        setGotoRef();
@@ -212,7 +205,7 @@ void GuiRef::reset_dialog()
 void GuiRef::closeEvent(QCloseEvent * e)
 {
        slotClose();
-       reset_dialog();
+       resetDialog();
        e->accept();
 }