mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 13:46:43 +00:00
9f5f309ea2
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14256 a592a061-630c-0410-9148-cb99ea01b6c8
67 lines
1.2 KiB
C
67 lines
1.2 KiB
C
/**
|
|
* \file QURLDialog.C
|
|
* 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 "UrlView.h"
|
|
|
|
#include <QLineEdit>
|
|
#include <QPushButton>
|
|
#include <QCloseEvent>
|
|
|
|
namespace lyx {
|
|
namespace frontend {
|
|
|
|
QURLDialog::QURLDialog(UrlView * form)
|
|
: form_(form)
|
|
{
|
|
setupUi(this);
|
|
|
|
connect(okPB, SIGNAL(clicked()),
|
|
form_, SLOT(slotOK()));
|
|
connect(closePB, SIGNAL(clicked()),
|
|
form_, SLOT(slotClose()));
|
|
|
|
connect( urlED, SIGNAL( textChanged(const QString&) ), this, SLOT( changed_adaptor() ) );
|
|
connect( hyperlinkCB, SIGNAL( clicked() ), this, SLOT( changed_adaptor() ) );
|
|
connect( nameED, SIGNAL( textChanged(const QString&) ), this, SLOT( changed_adaptor() ) );
|
|
}
|
|
|
|
|
|
QURLDialog::~QURLDialog()
|
|
{
|
|
}
|
|
|
|
|
|
void QURLDialog::show()
|
|
{
|
|
QDialog::show();
|
|
urlED->setFocus();
|
|
}
|
|
|
|
|
|
void QURLDialog::changed_adaptor()
|
|
{
|
|
form_->changed();
|
|
}
|
|
|
|
|
|
void QURLDialog::closeEvent(QCloseEvent * e)
|
|
{
|
|
form_->slotWMHide();
|
|
e->accept();
|
|
}
|
|
|
|
} // namespace frontend
|
|
} // namespace lyx
|
|
|
|
#include "QURLDialog_moc.cpp"
|