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::show()
42 QRefDialogBase::show();
47 void QRefDialog::changed_adaptor()
53 void QRefDialog::gotoClicked()
59 void QRefDialog::refHighlighted(const QString & sel)
61 if (form_->readOnly())
64 referenceED->setText(sel);
67 gotoPB->setEnabled(true);
68 if (form_->typeAllowed())
69 typeCO->setEnabled(true);
70 if (form_->nameAllowed())
71 nameED->setEnabled(true);
75 void QRefDialog::refSelected(const QString &)
77 // <enter> or double click, inserts ref and closes dialog
82 void QRefDialog::sortToggled(bool on)
89 void QRefDialog::updateClicked()
95 void QRefDialog::closeEvent(QCloseEvent * e)