Show Biblatex files in the TeXInfo dialog

This commit is contained in:
Juergen Spitzmueller 2017-01-01 11:34:35 +01:00
parent 8239e66c94
commit 8add88ee49
2 changed files with 12 additions and 3 deletions

View File

@ -91,7 +91,7 @@ void GuiTexInfo::rescanClicked()
void GuiTexInfo::viewClicked()
{
// takes advantage of enum order
static QString const ext[] = { "cls", "sty", "bst", "bib" };
static QString const ext[] = { "cls", "sty", "bst", "bib", "bbx", "cbx" };
int const fitem = fileListLW->currentRow();
QStringList const & data = texdata_[activeStyle_];
QString file = data[fitem];
@ -118,7 +118,8 @@ void GuiTexInfo::enableViewPB()
void GuiTexInfo::updateStyles(TexFileType type)
{
static QString const filenames[] = {
"clsFiles.lst", "styFiles.lst", "bstFiles.lst", "bibFiles.lst"
"clsFiles.lst", "styFiles.lst", "bstFiles.lst", "bibFiles.lst",
"bbxFiles.lst", "cbxFiles.lst"
};
QString const filename = filenames[type];

View File

@ -28,7 +28,15 @@ public:
///
GuiTexInfo(GuiView & lv);
/// the file extensions. order matters in GuiTexInfo::fileType()
enum TexFileType { ClsType = 0, StyType, BstType, BibType, DummyLastType };
enum TexFileType {
ClsType = 0,
StyType,
BstType,
BibType,
BbxType,
CbxType,
DummyLastType
};
public Q_SLOTS:
///