Ticket #6705: mythgame.missingsettings.3.diff

File mythgame.missingsettings.3.diff, 2.7 KB (added by robert.mcnamara@…, 15 years ago)

One more missing setting: "gameimage" imagetype in the item details

  • mythgame/gameui.cpp

     
    383383                showMenuPopup->AddButton(tr("Remove Favorite"));
    384384            else
    385385                showMenuPopup->AddButton(tr("Make Favorite"));
    386             showMenuPopup->AddButton(tr("Edit"));
     386            showMenuPopup->AddButton(tr("Edit Metadata"));
    387387            popupStack->AddScreen(showMenuPopup);
    388388        }
    389389        else
     
    447447
    448448        if (resultid == "showMenuPopup")
    449449        {
    450             if (resulttext == tr("Edit")) {
     450            if (resulttext == tr("Edit Metadata")) {
    451451                edit();
    452452            }
    453453            else if (resulttext == tr("Show Information"))
  • mythgame/gamedetails.cpp

     
    7878    handleText("allsystems", m_romInfo->AllSystems());
    7979    handleImage("fanart", m_romInfo->Fanart());
    8080    handleImage("boxart", m_romInfo->Boxart());
     81    handleImage("gameimage", m_romInfo->ImagePath());
    8182
    8283    return true;
    8384}
  • mythgame/gamesettings.cpp

     
    11#include <mythtv/mythcontext.h>
    22#include <mythtv/mythdb.h>
     3#include <mythtv/mythdirs.h>
    34
    45#include "gamesettings.h"
    56#include <qfile.h>
     
    8586    return gc;
    8687}
    8788
     89HostLineEdit *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
     99HostLineEdit *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
    88109MythGameGeneralSettings::MythGameGeneralSettings()
    89110{
    90111    VerticalConfigurationGroup *general = new VerticalConfigurationGroup(false);
     
    95116    general->addChild(GameRemovalPrompt());
    96117    general->addChild(GameShowFileNames());
    97118    general->addChild(GameTreeView());
     119    general->addChild(GetFanartDir());
     120    general->addChild(GetBoxartDir());
    98121    addChild(general);
    99122}
    100123