2 * \file QExternalDialog.C
3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
8 * Full author contact details are available in file CREDITS
14 #include "qt_helpers.h"
15 #include "ControlExternal.h"
18 #include <qpushbutton.h>
19 #include <qfiledialog.h>
20 #include <qcombobox.h>
21 #include <qtextview.h>
22 #include <qlineedit.h>
24 #include "QExternalDialog.h"
25 #include "QExternal.h"
28 QExternalDialog::QExternalDialog(QExternal * form)
29 : QExternalDialogBase(0, 0, false, 0),
32 connect(okPB, SIGNAL(clicked()),
33 form, SLOT(slotOK()));
34 connect(closePB, SIGNAL(clicked()),
35 form, SLOT(slotClose()));
39 void QExternalDialog::show()
41 QExternalDialogBase::show();
46 void QExternalDialog::change_adaptor()
52 void QExternalDialog::closeEvent(QCloseEvent * e)
59 void QExternalDialog::editClicked()
62 form_->controller().editExternal();
66 void QExternalDialog::viewClicked()
69 form_->controller().viewExternal();
73 void QExternalDialog::updateClicked()
76 form_->controller().updateExternal();
80 void QExternalDialog::browseClicked()
83 QFileDialog::getOpenFileName(QString::null,
84 qt_("External material (*)"),
86 qt_("Select external material"));
88 fileED->setText(file);
94 void QExternalDialog::templateChanged()
96 externalTV->setText(toqstr(form_->helpText()));
98 updatePB->setEnabled(!form_->controller().params().templ.automaticProduction);