]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt2/QURLDialog.C
Get rid of the static_casts.
[lyx.git] / src / frontends / qt2 / QURLDialog.C
index 2512a9663dd7e967bfa6c0f9b18554a0c8afdfb3..17495950eb4cc267805fc0d78549c26c6aa111de 100644 (file)
@@ -1,46 +1,54 @@
 /**
  * \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();
 }