Ticket #6705: mythgame.missingsettings.2.diff
File mythgame.missingsettings.2.diff, 2.3 KB (added by , 15 years ago) |
---|
-
mythgame/mythgame/gameui.cpp
383 383 showMenuPopup->AddButton(tr("Remove Favorite")); 384 384 else 385 385 showMenuPopup->AddButton(tr("Make Favorite")); 386 showMenuPopup->AddButton(tr("Edit "));386 showMenuPopup->AddButton(tr("Edit Metadata")); 387 387 popupStack->AddScreen(showMenuPopup); 388 388 } 389 389 else … … 447 447 448 448 if (resultid == "showMenuPopup") 449 449 { 450 if (resulttext == tr("Edit ")) {450 if (resulttext == tr("Edit Metadata")) { 451 451 edit(); 452 452 } 453 453 else if (resulttext == tr("Show Information")) -
mythgame/mythgame/gamesettings.cpp
1 1 #include <mythtv/mythcontext.h> 2 2 #include <mythtv/mythdb.h> 3 #include <mythtv/mythdirs.h> 3 4 4 5 #include "gamesettings.h" 5 6 #include <qfile.h> … … 85 86 return gc; 86 87 } 87 88 89 HostLineEdit *GetFanartDir() 90 { 91 HostLineEdit *gc = new HostLineEdit("mythgame.fanartdir"); 92 gc->setLabel(QObject::tr("Directory where Game Fanart is stored")); 93 gc->setValue(GetConfDir() + "/MythGame/Fanart"); 94 gc->setHelpText(QObject::tr("This directory will be the default browse " 95 "location when assigning fanart.")); 96 return gc; 97 } 98 99 HostLineEdit *GetBoxartDir() 100 { 101 HostLineEdit *gc = new HostLineEdit("mythgame.boxartdir"); 102 gc->setLabel(QObject::tr("Directory where Game Boxart is stored")); 103 gc->setValue(GetConfDir() + "/MythGame/Boxart"); 104 gc->setHelpText(QObject::tr("This directory will be the default browse " 105 "location when assigning boxart.")); 106 return gc; 107 } 108 88 109 MythGameGeneralSettings::MythGameGeneralSettings() 89 110 { 90 111 VerticalConfigurationGroup *general = new VerticalConfigurationGroup(false); … … 95 116 general->addChild(GameRemovalPrompt()); 96 117 general->addChild(GameShowFileNames()); 97 118 general->addChild(GameTreeView()); 119 general->addChild(GetFanartDir()); 120 general->addChild(GetBoxartDir()); 98 121 addChild(general); 99 122 } 100 123