2 * \file QViewSourceDialog.C
3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
14 #include "QViewSourceDialog.h"
15 #include "QViewSource.h"
17 #include <QPushButton>
18 #include <QCloseEvent>
24 QViewSourceDialog::QViewSourceDialog(QViewSource * form)
29 connect(closePB, SIGNAL(clicked()), form, SLOT(slotClose()));
30 connect(viewFullSourceCB, SIGNAL(toggled(bool)),
31 this, SLOT(slotUpdate()));
32 connect(autoUpdateCB, SIGNAL(toggled(bool)),
33 updatePB, SLOT(setDisabled(bool)));
34 connect(updatePB, SIGNAL(clicked()),
35 this, SLOT(slotUpdate()));
39 void QViewSourceDialog::closeEvent(QCloseEvent * e)
46 void QViewSourceDialog::slotUpdate()
48 form_->update_source();
51 } // namespace frontend
54 #include "QViewSourceDialog_moc.cpp"