/**
* \file QURLDialog.C
- * Copyright 2001 the LyX Team
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
* \author John Levon
+ *
+ * Full author contact details are available in file CREDITS
*/
#include <config.h>
-
-#include "QURLDialog.h"
-#include "Dialogs.h"
+
+
#include "QURL.h"
+#include "QURLDialog.h"
-QURLDialog::QURLDialog(QURL * form, QWidget * parent, const char * name, bool modal, WFlags fl)
- : QURLDialogBase(parent, name, modal, fl),
+#include <qpushbutton.h>
+#include <qlineedit.h>
+
+
+QURLDialog::QURLDialog(QURL * form)
+ : QURLDialogBase(0, 0, false, 0),
form_(form)
{
+ connect(okPB, SIGNAL(clicked()),
+ form_, SLOT(slotOK()));
+ connect(closePB, SIGNAL(clicked()),
+ form_, SLOT(slotClose()));
}
-
+
QURLDialog::~QURLDialog()
{
}
-
-void QURLDialog::apply_adaptor()
+
+void QURLDialog::show()
{
- form_->apply();
- form_->close();
- hide();
+ QURLDialogBase::show();
+ urlED->setFocus();
}
-void QURLDialog::close_adaptor()
+void QURLDialog::changed_adaptor()
{
- form_->close();
- hide();
+ form_->changed();
}
-
+
void QURLDialog::closeEvent(QCloseEvent * e)
{
- form_->close();
+ form_->slotWMHide();
e->accept();
}