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.
14 #include "QRefDialog.h"
17 #include <qcombobox.h>
18 #include <qlineedit.h>
20 #include <qpushbutton.h>
25 QRefDialog::QRefDialog(QRef * form)
26 : QRefDialogBase(0, 0, false, 0),
29 connect(okPB, SIGNAL(clicked()),
30 form_, SLOT(slotOK()));
31 connect(applyPB, SIGNAL(clicked()),
32 form_, SLOT(slotApply()));
33 connect(closePB, SIGNAL(clicked()),
34 form_, SLOT(slotClose()));
38 void QRefDialog::show()
40 QRefDialogBase::show();
45 void QRefDialog::changed_adaptor()
51 void QRefDialog::gotoClicked()
57 void QRefDialog::refHighlighted(const QString & sel)
59 if (form_->readOnly())
62 referenceED->setText(sel);
65 gotoPB->setEnabled(true);
66 if (form_->typeAllowed())
67 typeCO->setEnabled(true);
68 if (form_->nameAllowed())
69 nameED->setEnabled(true);
73 void QRefDialog::refSelected(const QString &)
75 // <enter> or double click, inserts ref and closes dialog
80 void QRefDialog::sortToggled(bool on)
87 void QRefDialog::updateClicked()
93 void QRefDialog::closeEvent(QCloseEvent * e)
99 } // namespace frontend