]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt2/QCitationDialog.C
better selection and scrolling behaviour
[lyx.git] / src / frontends / qt2 / QCitationDialog.C
index e56bebf8362fbab406f86787e7244a9b0cc55a95..282aa21f68900703a976a6e8d1eb14284ea53403 100644 (file)
@@ -1,13 +1,19 @@
 /**
  * \file QCitationDialog.C
- * Copyright 2001 the LyX Team
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- * \author Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
+ * \author Kalle Dalheimer
+ *
+ * Full author contact details are available in file CREDITS
  */
 
 #include <config.h>
+
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
 #include <algorithm>
 
 #include "gettext.h"
 #include <qpushbutton.h>
 
 #include "QCitationDialog.h"
+#include "QCitation.h"
+#include "support/lstrings.h"
+
 using std::vector;
 using std::find;
 using std::max;
 
+
 QCitationDialog::QCitationDialog(QCitation * form)
        : QCitationDialogBase(0, 0, false, 0),
        form_(form)
@@ -242,6 +251,12 @@ void QCitationDialog::slotNextClicked()
 }
 
 
+void QCitationDialog::changed_adaptor()
+{
+       form_->changed();
+}
+
+
 void QCitationDialog::doFind(biblio::Direction dir)
 {
        biblio::InfoMap const & theMap = form_->controller().bibkeysInfo();
@@ -281,7 +296,7 @@ void QCitationDialog::doFind(biblio::Direction dir)
                if (cit == form_->bibkeys.end())
                        return;
        }
-       
+
        int const found = int(cit - form_->bibkeys.begin());
        if (found == sel) {
                return;