#include "FuncRequest.h"
-#include "support/debug.h"
#include "support/filetools.h"
-#include "support/foreach.h"
#include "support/FileName.h"
-#include "support/lstrings.h"
#include "qt_helpers.h"
#include <QPushButton>
#include <QStringList>
-#include <fstream>
-#include <algorithm>
-
using namespace std;
using namespace lyx::support;
void GuiTexInfo::viewClicked()
{
// takes advantage of enum order
- static QString const ext[] = { "cls", "sty", "bst" };
+ static QString const ext[] = { "cls", "sty", "bst", "bib" };
int const fitem = fileListLW->currentRow();
QStringList const & data = texdata_[activeStyle_];
QString file = data[fitem];
void GuiTexInfo::updateStyles(TexFileType type)
{
static QString const filenames[] = {
- "clsFiles.lst", "styFiles.lst", "bstFiles.lst"
+ "clsFiles.lst", "styFiles.lst", "bstFiles.lst", "bibFiles.lst"
};
QString const filename = filenames[type];
if (!pathCB->isChecked()) {
for (int i = 0; i != data.size(); ++i)
- data[i] = onlyFilename(data[i]);
+ data[i] = onlyFileName(data[i]);
}
// sort on filename only (no path)
data.sort();
fileListLW->clear();
- foreach (QString const & item, data)
+ for(QString const & item : data)
fileListLW->addItem(item);
activeStyle_ = type;
} // namespace lyx
-#include "GuiTexinfo_moc.cpp"
+#include "moc_GuiTexinfo.cpp"