Also display the info about BibTeX databases in the TeX info panel.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40351 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Julien Rioux 2011-12-03 22:24:58 +00:00
parent 0c4e88b8a0
commit 43c09d7234
3 changed files with 8 additions and 3 deletions

View File

@ -92,7 +92,7 @@ void GuiTexInfo::rescanClicked()
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];
@ -119,7 +119,7 @@ void GuiTexInfo::enableViewPB()
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];

View File

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

View File

@ -138,6 +138,11 @@
<string>BibTeX styles</string>
</property>
</item>
<item>
<property name="text" >
<string>BibTeX databases</string>
</property>
</item>
</widget>
</item>
<item>