2001-08-19 13:25:15 +00:00
|
|
|
/**
|
|
|
|
* \file QURLDialog.C
|
|
|
|
* Copyright 2001 the LyX Team
|
|
|
|
* Read the file COPYING
|
|
|
|
*
|
|
|
|
* \author John Levon
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <config.h>
|
2002-03-21 21:21:28 +00:00
|
|
|
|
2001-08-19 13:25:15 +00:00
|
|
|
#include "QURL.h"
|
2002-06-19 03:38:44 +00:00
|
|
|
#include "QURLDialog.h"
|
2001-08-19 13:25:15 +00:00
|
|
|
|
2002-06-19 03:38:44 +00:00
|
|
|
#include <qpushbutton.h>
|
2002-09-11 17:42:45 +00:00
|
|
|
#include <qlineedit.h>
|
2002-06-19 03:38:44 +00:00
|
|
|
|
2001-08-25 20:04:15 +00:00
|
|
|
QURLDialog::QURLDialog(QURL * form)
|
|
|
|
: QURLDialogBase(0, 0, false, 0),
|
2001-08-19 13:25:15 +00:00
|
|
|
form_(form)
|
|
|
|
{
|
2001-08-25 20:04:15 +00:00
|
|
|
connect(okPB, SIGNAL(clicked()),
|
|
|
|
form_, SLOT(slotOK()));
|
|
|
|
connect(closePB, SIGNAL(clicked()),
|
|
|
|
form_, SLOT(slotClose()));
|
2001-08-19 13:25:15 +00:00
|
|
|
}
|
|
|
|
|
2002-03-21 21:21:28 +00:00
|
|
|
|
2001-08-19 13:25:15 +00:00
|
|
|
QURLDialog::~QURLDialog()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2002-03-21 21:21:28 +00:00
|
|
|
|
2002-09-11 17:42:45 +00:00
|
|
|
void QURLDialog::show()
|
|
|
|
{
|
|
|
|
QURLDialogBase::show();
|
|
|
|
urlED->setFocus();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2001-08-25 20:04:15 +00:00
|
|
|
void QURLDialog::changed_adaptor()
|
2001-08-19 13:25:15 +00:00
|
|
|
{
|
2001-08-25 20:04:15 +00:00
|
|
|
form_->changed();
|
2001-08-19 13:25:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void QURLDialog::closeEvent(QCloseEvent * e)
|
|
|
|
{
|
2001-08-25 20:04:15 +00:00
|
|
|
form_->slotWMHide();
|
2001-08-19 13:25:15 +00:00
|
|
|
e->accept();
|
|
|
|
}
|