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 #pragma implementation
18 #include "ControlExternal.h"
21 #include <qpushbutton.h>
22 #include <qfiledialog.h>
23 #include <qcombobox.h>
24 #include <qtextview.h>
25 #include <qlineedit.h>
27 #include "QExternalDialog.h"
28 #include "QExternal.h"
31 QExternalDialog::QExternalDialog(QExternal * form)
32 : QExternalDialogBase(0, 0, false, 0),
35 connect(okPB, SIGNAL(clicked()),
36 form, SLOT(slotOK()));
37 connect(closePB, SIGNAL(clicked()),
38 form, SLOT(slotClose()));
42 void QExternalDialog::show()
44 QExternalDialogBase::show();
49 void QExternalDialog::change_adaptor()
55 void QExternalDialog::closeEvent(QCloseEvent * e)
62 void QExternalDialog::editClicked()
65 form_->controller().editExternal();
69 void QExternalDialog::viewClicked()
72 form_->controller().viewExternal();
76 void QExternalDialog::updateClicked()
79 form_->controller().updateExternal();
83 void QExternalDialog::browseClicked()
86 QFileDialog::getOpenFileName(QString::null,
87 _("External material (*)"),
89 _("Select external material"));
91 fileED->setText(file.latin1());
97 void QExternalDialog::templateChanged()
99 externalTV->setText(form_->helpText().c_str());
101 updatePB->setEnabled(!form_->controller().params().templ.automaticProduction);