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.
15 #include "QTexinfoDialog.h"
19 #include <qpushbutton.h>
20 #include <qcombobox.h>
26 QTexinfoDialog::QTexinfoDialog(QTexinfo * form)
27 : QTexinfoDialogBase(0, 0, false, 0),
30 connect(closePB, SIGNAL(clicked()),
31 form, SLOT(slotClose()));
35 void QTexinfoDialog::change_adaptor()
41 void QTexinfoDialog::closeEvent(QCloseEvent * e)
48 void QTexinfoDialog::rescanClicked()
50 // build new *Files.lst
52 form_->updateStyles();
57 void QTexinfoDialog::viewClicked()
59 vector<string>::size_type const fitem = fileList->currentItem();
60 vector<string> const & data = form_->texdata_[form_->activeStyle];
61 form_->controller().viewFile(data[fitem]);
65 void QTexinfoDialog::update()
67 switch (whatStyle->currentItem()) {
69 form_->updateStyles(ControlTexinfo::cls);
72 form_->updateStyles(ControlTexinfo::sty);
75 form_->updateStyles(ControlTexinfo::bst);
85 void QTexinfoDialog::enableViewPB()
87 viewPB->setEnabled(fileList->currentItem() > -1);