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 #include "ControlRef.h"
19 #include "QRefDialog.h"
21 #include <qpushbutton.h>
22 #include <qlineedit.h>
23 #include <qcombobox.h>
27 QRefDialog::QRefDialog(QRef * form)
28 : QRefDialogBase(0, 0, false, 0),
31 connect(okPB, SIGNAL(clicked()),
32 form_, SLOT(slotOK()));
33 connect(applyPB, SIGNAL(clicked()),
34 form_, SLOT(slotApply()));
35 connect(closePB, SIGNAL(clicked()),
36 form_, SLOT(slotClose()));
40 void QRefDialog::changed_adaptor()
46 void QRefDialog::gotoClicked()
52 void QRefDialog::refHighlighted(const QString & sel)
54 if (form_->readOnly())
57 referenceED->setText(sel);
60 gotoPB->setEnabled(true);
61 if (form_->typeAllowed())
62 typeCO->setEnabled(true);
63 if (form_->nameAllowed())
64 nameED->setEnabled(true);
68 void QRefDialog::refSelected(const QString &)
74 void QRefDialog::sortToggled(bool on)
82 void QRefDialog::updateClicked()
88 void QRefDialog::closeEvent(QCloseEvent * e)