2 * \file QExternalDialog.C
3 * Copyright 2001 the LyX Team
4 * Read the file COPYING
6 * \author John Levon <moz@compsoc.man.ac.uk>
12 #include "ControlExternal.h"
15 #include <qpushbutton.h>
16 #include <qfiledialog.h>
17 #include <qcombobox.h>
18 #include <qtextview.h>
19 #include <qlineedit.h>
21 #include "QExternalDialog.h"
22 #include "QExternal.h"
24 QExternalDialog::QExternalDialog(QExternal * form)
25 : QExternalDialogBase(0, 0, false, 0),
28 connect(okPB, SIGNAL(clicked()),
29 form, SLOT(slotOK()));
30 connect(closePB, SIGNAL(clicked()),
31 form, SLOT(slotClose()));
35 void QExternalDialog::change_adaptor()
41 void QExternalDialog::closeEvent(QCloseEvent * e)
48 void QExternalDialog::editClicked()
51 form_->controller().editExternal();
55 void QExternalDialog::viewClicked()
58 form_->controller().viewExternal();
62 void QExternalDialog::updateClicked()
65 form_->controller().updateExternal();
69 void QExternalDialog::browseClicked()
71 QString file = QFileDialog::getOpenFileName(QString::null,
72 _("External material (*)"), this, 0, _("Select external material"));
74 fileED->setText(file.latin1());
80 void QExternalDialog::templateChanged()
82 externalTV->setText(form_->helpText().c_str());
84 updatePB->setEnabled(!form_->controller().params().templ.automaticProduction);