2006-04-15 14:13:41 +00:00
|
|
|
/**
|
|
|
|
* \file QViewSourceDialog.C
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
|
|
|
* \author John Levon
|
|
|
|
* \author Bo Peng
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
|
|
|
|
#include "QViewSourceDialog.h"
|
|
|
|
#include "QViewSource.h"
|
|
|
|
|
|
|
|
#include <qpushbutton.h>
|
|
|
|
|
|
|
|
|
|
|
|
namespace lyx {
|
|
|
|
namespace frontend {
|
|
|
|
|
|
|
|
QViewSourceDialog::QViewSourceDialog(QViewSource * form)
|
|
|
|
: form_(form)
|
|
|
|
{
|
|
|
|
setupUi(this);
|
|
|
|
|
|
|
|
connect(closePB, SIGNAL(clicked()), form, SLOT(slotClose()));
|
2006-08-04 13:59:12 +00:00
|
|
|
connect(viewFullSourceCB, SIGNAL(toggled(bool)),
|
|
|
|
this, SLOT(slotUpdate()));
|
|
|
|
connect(autoUpdateCB, SIGNAL(toggled(bool)),
|
|
|
|
updatePB, SLOT(setDisabled(bool)));
|
|
|
|
connect(updatePB, SIGNAL(clicked()),
|
|
|
|
this, SLOT(slotUpdate()));
|
2006-04-15 14:13:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void QViewSourceDialog::closeEvent(QCloseEvent * e)
|
|
|
|
{
|
|
|
|
form_->slotWMHide();
|
|
|
|
e->accept();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2006-08-04 13:59:12 +00:00
|
|
|
void QViewSourceDialog::slotUpdate()
|
|
|
|
{
|
|
|
|
form_->update_source();
|
|
|
|
}
|
|
|
|
|
2006-04-15 14:13:41 +00:00
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|
2006-05-18 08:51:12 +00:00
|
|
|
|
|
|
|
#include "QViewSourceDialog_moc.cpp"
|