3 * Copyright 2001 the LyX Team
4 * Read the file COPYING
6 * \author Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
7 * \author John Levon <moz@compsoc.man.ac.uk>
12 #include <qpushbutton.h>
13 #include <qlineedit.h>
14 #include <qcombobox.h>
17 #include "QRefDialog.h"
18 #include "ControlRef.h"
23 QRefDialog::QRefDialog(QRef * form)
24 : QRefDialogBase(0, 0, false, 0),
27 connect(okPB, SIGNAL(clicked()),
28 form_, SLOT(slotOK()));
29 connect(closePB, SIGNAL(clicked()),
30 form_, SLOT(slotClose()));
34 void QRefDialog::changed_adaptor()
40 void QRefDialog::gotoClicked()
46 void QRefDialog::refHighlighted(const QString & sel)
48 if (form_->readOnly())
51 referenceED->setText(sel);
54 gotoPB->setEnabled(true);
55 if (form_->typeAllowed())
56 typeCO->setEnabled(true);
57 if (form_->nameAllowed())
58 nameED->setEnabled(true);
62 void QRefDialog::refSelected(const QString &)
68 void QRefDialog::sortToggled(bool on)
76 void QRefDialog::updateClicked()
82 void QRefDialog::closeEvent(QCloseEvent * e)