added menu to display missing helpers

This commit is contained in:
dockes
2008-10-08 16:15:22 +00:00
parent 990e534022
commit 2462b079fa
12 changed files with 118 additions and 42 deletions
+10
View File
@@ -118,6 +118,7 @@
<action name="fileToggleIndexingAction"/>
<separator/>
<action name="fileEraseDocHistoryAction"/>
<action name="showMissingHelpers_Action"/>
<separator/>
<action name="fileExitAction"/>
</item>
@@ -137,6 +138,7 @@
<separator/>
<item text="&amp;Help" name="helpMenu">
<action name="userManualAction"/>
<action name="showMissingHelpers_Action"/>
<separator/>
<action name="helpAbout_RecollAction"/>
</item>
@@ -227,6 +229,14 @@
<string>&amp;Erase document history</string>
</property>
</action>
<action>
<property name="name">
<cstring>showMissingHelpers_Action</cstring>
</property>
<property name="menuText">
<string>&amp;Show missing helpers</string>
</property>
</action>
<action>
<property name="name">
<cstring>helpAbout_RecollAction</cstring>
+15 -1
View File
@@ -1,5 +1,5 @@
#ifndef lint
static char rcsid[] = "@(#$Id: rclmain_w.cpp,v 1.55 2008-09-30 12:38:29 dockes Exp $ (C) 2005 J.F.Dockes";
static char rcsid[] = "@(#$Id: rclmain_w.cpp,v 1.56 2008-10-08 16:15:22 dockes Exp $ (C) 2005 J.F.Dockes";
#endif
/*
* This program is free software; you can redistribute it and/or modify
@@ -209,6 +209,8 @@ void RclMain::init()
this, SLOT(eraseDocHistory()));
connect(helpAbout_RecollAction, SIGNAL(activated()),
this, SLOT(showAboutDialog()));
connect(showMissingHelpers_Action, SIGNAL(activated()),
this, SLOT(showMissingHelpers()));
connect(userManualAction, SIGNAL(activated()), this, SLOT(startManual()));
connect(toolsDoc_HistoryAction, SIGNAL(activated()),
this, SLOT(showDocHistory()));
@@ -579,6 +581,18 @@ void RclMain::showAboutDialog()
"<br>" + "http://www.recoll.org";
QMessageBox::information(this, tr("About Recoll"), vstring.c_str());
}
void RclMain::showMissingHelpers()
{
string miss = rclconfig->getMissingHelperDesc();
QString msg = tr("External applications/commands needed and not found "
"for indexing your file types:\n\n");
if (!miss.empty()) {
msg += QString::fromUtf8(miss.c_str());
} else {
msg += tr("No helpers found missing");
}
QMessageBox::information(this, tr("Missing helper programs"), msg);
}
// If a preview (toplevel) window gets closed by the user, we need to
// clean up because there is no way to reopen it. And check the case
+1
View File
@@ -82,6 +82,7 @@ public slots:
virtual void showSortDialog();
virtual void showSpellDialog();
virtual void showAboutDialog();
virtual void showMissingHelpers();
virtual void startManual();
virtual void showDocHistory();
virtual void showExtIdxDialog();