mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-23 00:43:09 +02:00
The contextual menu now features a "show manual" entry.
This commit is contained in:
parent
17bb938b5c
commit
5f69930d07
@ -1469,6 +1469,11 @@ void GMenu2X::activateRootUsb() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
void GMenu2X::showManual() {
|
||||||
|
menu->selLinkApp()->showManual();
|
||||||
|
}
|
||||||
|
|
||||||
void GMenu2X::contextMenu() {
|
void GMenu2X::contextMenu() {
|
||||||
vector<MenuOption> voices;
|
vector<MenuOption> voices;
|
||||||
{
|
{
|
||||||
@ -1476,6 +1481,16 @@ void GMenu2X::contextMenu() {
|
|||||||
voices.push_back(opt);
|
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) {
|
if (menu->selLinkApp()!=NULL) {
|
||||||
{
|
{
|
||||||
MenuOption opt = {tr.translate("Edit $1",menu->selLink()->getTitle().c_str(),NULL), MakeDelegate(this, &GMenu2X::editLink)};
|
MenuOption opt = {tr.translate("Edit $1",menu->selLink()->getTitle().c_str(),NULL), MakeDelegate(this, &GMenu2X::editLink)};
|
||||||
|
@ -160,6 +160,8 @@ private:
|
|||||||
void deinit();
|
void deinit();
|
||||||
void toggleTvOut();
|
void toggleTvOut();
|
||||||
|
|
||||||
|
void showManual();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
GMenu2X();
|
GMenu2X();
|
||||||
~GMenu2X();
|
~GMenu2X();
|
||||||
|
Loading…
Reference in New Issue
Block a user