1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-07-04 21:28:54 +03:00

The contextual menu now features a "show manual" entry.

This commit is contained in:
Ayla 2011-09-15 11:18:07 +02:00
parent 17bb938b5c
commit 5f69930d07
2 changed files with 17 additions and 0 deletions

View File

@ -1469,6 +1469,11 @@ void GMenu2X::activateRootUsb() {
}
}
*/
void GMenu2X::showManual() {
menu->selLinkApp()->showManual();
}
void GMenu2X::contextMenu() {
vector<MenuOption> voices;
{
@ -1476,6 +1481,16 @@ void GMenu2X::contextMenu() {
voices.push_back(opt);
}
{
LinkApp* app = menu->selLinkApp();
if (app && fileExists(app->getManual())) {
MenuOption opt = {tr.translate("Show manual of $1",menu->selLink()->getTitle().c_str(),NULL),
MakeDelegate(this, &GMenu2X::showManual),
};
voices.push_back(opt);
}
}
if (menu->selLinkApp()!=NULL) {
{
MenuOption opt = {tr.translate("Edit $1",menu->selLink()->getTitle().c_str(),NULL), MakeDelegate(this, &GMenu2X::editLink)};

View File

@ -160,6 +160,8 @@ private:
void deinit();
void toggleTvOut();
void showManual();
public:
GMenu2X();
~GMenu2X();