2001-08-19 13:25:15 +00:00
|
|
|
/**
|
|
|
|
* \file QURLDialog.C
|
2002-09-24 13:57:09 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
2001-08-19 13:25:15 +00:00
|
|
|
*
|
|
|
|
* \author John Levon
|
2002-09-24 13:57:09 +00:00
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
* Full author contact details are available in file CREDITS.
|
2001-08-19 13:25:15 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <config.h>
|
2002-03-21 21:21:28 +00:00
|
|
|
|
2002-06-19 03:38:44 +00:00
|
|
|
#include "QURLDialog.h"
|
2004-05-20 09:36:28 +00:00
|
|
|
#include "QURL.h"
|
2001-08-19 13:25:15 +00:00
|
|
|
|
2002-09-11 17:42:45 +00:00
|
|
|
#include <qlineedit.h>
|
2004-05-20 09:36:28 +00:00
|
|
|
#include <qpushbutton.h>
|
2002-10-20 01:48:28 +00:00
|
|
|
|
2004-05-19 15:11:37 +00:00
|
|
|
namespace lyx {
|
|
|
|
namespace frontend {
|
2002-10-20 01:48:28 +00:00
|
|
|
|
2001-08-25 20:04:15 +00:00
|
|
|
QURLDialog::QURLDialog(QURL * form)
|
2004-06-02 20:13:18 +00:00
|
|
|
: 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();
|
|
|
|
}
|
|
|
|
|
2002-10-20 01:48:28 +00:00
|
|
|
|
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();
|
|
|
|
}
|
2004-05-19 15:11:37 +00:00
|
|
|
|
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|