/********************************************************************** --- Qt Architect generated file --- File: formindexdialog.C Last generated: Thu Sep 14 12:08:37 2000 *********************************************************************/ #include #include #include "formindexdialog.h" #include "FormIndex.h" #include #define Inherited FormIndexDialogData FormIndexDialog::FormIndexDialog(FormIndex * f, QWidget *p, const char* name) : Inherited( p, name ), form_(f) { setCaption(name); // tooltips QToolTip::add(labelindex,_("Index entry")); QToolTip::add(index,_("Index entry")); setMinimumSize( 200, 65 ); setMaximumSize( 32767, 65 ); } FormIndexDialog::~FormIndexDialog() { } void FormIndexDialog::clickedOK() { form_->apply(); form_->close(); hide(); } void FormIndexDialog::clickedCancel() { form_->close(); hide(); } void FormIndexDialog::setReadOnly(bool readonly) { if (readonly) { index->setFocusPolicy(QWidget::NoFocus); buttonOk->setEnabled(false); buttonCancel->setText(_("&Close")); } else { index->setFocusPolicy(QWidget::StrongFocus); index->setFocus(); buttonOk->setEnabled(true); buttonCancel->setText(_("&Cancel")); } }