3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
6 * \author Kalle Dalheimer
9 * Full author contact details are available in file CREDITS
15 #pragma implementation
18 #include "ControlRef.h"
22 #include "QRefDialog.h"
24 #include <qpushbutton.h>
25 #include <qlineedit.h>
26 #include <qcombobox.h>
30 QRefDialog::QRefDialog(QRef * form)
31 : QRefDialogBase(0, 0, false, 0),
34 connect(okPB, SIGNAL(clicked()),
35 form_, SLOT(slotOK()));
36 connect(applyPB, SIGNAL(clicked()),
37 form_, SLOT(slotApply()));
38 connect(closePB, SIGNAL(clicked()),
39 form_, SLOT(slotClose()));
43 void QRefDialog::changed_adaptor()
49 void QRefDialog::gotoClicked()
55 void QRefDialog::refHighlighted(const QString & sel)
57 if (form_->readOnly())
60 referenceED->setText(sel);
63 gotoPB->setEnabled(true);
64 if (form_->typeAllowed())
65 typeCO->setEnabled(true);
66 if (form_->nameAllowed())
67 nameED->setEnabled(true);
71 void QRefDialog::refSelected(const QString &)
77 void QRefDialog::sortToggled(bool on)
85 void QRefDialog::updateClicked()
91 void QRefDialog::closeEvent(QCloseEvent * e)