2006-03-05 17:24:44 +00:00
|
|
|
|
/**
|
|
|
|
|
* \file QSendtoDialog.C
|
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
|
*
|
|
|
|
|
* \author J<EFBFBD>rgen Spitzm<EFBFBD>ller
|
|
|
|
|
*
|
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
|
|
|
|
|
|
#include "QSendtoDialog.h"
|
|
|
|
|
#include "QSendto.h"
|
|
|
|
|
|
2006-05-03 19:51:15 +00:00
|
|
|
|
#include <QPushButton>
|
2006-03-05 17:24:44 +00:00
|
|
|
|
#include <QCloseEvent>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace lyx {
|
|
|
|
|
namespace frontend {
|
|
|
|
|
|
|
|
|
|
QSendtoDialog::QSendtoDialog(QSendto * form)
|
|
|
|
|
: form_(form)
|
|
|
|
|
{
|
|
|
|
|
setupUi(this);
|
|
|
|
|
|
|
|
|
|
connect(okPB, SIGNAL(clicked()),
|
|
|
|
|
form, SLOT(slotOK()));
|
|
|
|
|
connect(applyPB, SIGNAL(clicked()),
|
|
|
|
|
form, SLOT(slotApply()));
|
|
|
|
|
connect(closePB, SIGNAL(clicked()),
|
|
|
|
|
form, SLOT(slotClose()));
|
|
|
|
|
|
2006-05-03 19:51:15 +00:00
|
|
|
|
connect( formatLW, SIGNAL( itemClicked(QListWidgetItem *) ),
|
|
|
|
|
this, SLOT( slotFormatHighlighted(QListWidgetItem *) ) );
|
|
|
|
|
connect( formatLW, SIGNAL( itemActivated(QListWidgetItem *) ),
|
|
|
|
|
this, SLOT( slotFormatSelected(QListWidgetItem *) ) );
|
|
|
|
|
connect( formatLW, SIGNAL( itemClicked(QListWidgetItem *) ),
|
|
|
|
|
this, SLOT( changed_adaptor() ) );
|
|
|
|
|
connect( commandCO, SIGNAL( textChanged(const QString&) ),
|
|
|
|
|
this, SLOT( changed_adaptor() ) );
|
2006-03-05 17:24:44 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void QSendtoDialog::changed_adaptor()
|
|
|
|
|
{
|
|
|
|
|
form_->changed();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void QSendtoDialog::closeEvent(QCloseEvent * e)
|
|
|
|
|
{
|
|
|
|
|
form_->slotWMHide();
|
|
|
|
|
e->accept();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} // namespace frontend
|
|
|
|
|
} // namespace lyx
|
2006-05-18 08:51:12 +00:00
|
|
|
|
|
|
|
|
|
#include "QSendtoDialog_moc.cpp"
|