2 * \file QTexinfoDialog.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.
13 #include "QTexinfoDialog.h"
16 #include <qcheckbox.h>
17 #include <qcombobox.h>
19 #include <qpushbutton.h>
28 QTexinfoDialog::QTexinfoDialog(QTexinfo * form)
29 : QTexinfoDialogBase(0, 0, false, 0),
32 connect(closePB, SIGNAL(clicked()),
33 form, SLOT(slotClose()));
37 void QTexinfoDialog::change_adaptor()
43 void QTexinfoDialog::closeEvent(QCloseEvent * e)
50 void QTexinfoDialog::rescanClicked()
52 // build new *Files.lst
54 form_->updateStyles();
59 void QTexinfoDialog::viewClicked()
61 vector<string>::size_type const fitem = fileList->currentItem();
62 vector<string> const & data = form_->texdata_[form_->activeStyle];
63 string file = data[fitem];
64 if (!path->isChecked())
65 file = getTexFileFromList(data[fitem],
66 form_->controller().getFileType(form_->activeStyle));
67 form_->controller().viewFile(file);
71 void QTexinfoDialog::update()
73 switch (whatStyle->currentItem()) {
75 form_->updateStyles(ControlTexinfo::cls);
78 form_->updateStyles(ControlTexinfo::sty);
81 form_->updateStyles(ControlTexinfo::bst);
91 void QTexinfoDialog::enableViewPB()
93 viewPB->setEnabled(fileList->currentItem() > -1);
96 } // namespace frontend