Ticket #3442: show_cycle_visualizer.patch

File show_cycle_visualizer.patch, 2.9 KB (added by anonymous, 14 years ago)
  • mythplugins/mythmusic/mythmusic/globalsettings.cpp

     
    381381    return gc;
    382382};
    383383
     384static HostCheckBox *ShowVisualCycleOnSongChange()
     385{
     386    HostCheckBox *gc = new HostCheckBox("ShowVisualCycleOnSongChange");
     387    gc->setLabel(QObject::tr("Show the type of visualizer on each song instead of song information"));
     388    gc->setValue(false);
     389    gc->setHelpText(QObject::tr("Show the changed visualizer when the song "
     390                    "changes. Otherwise song information will be shown."));
     391    return gc;
     392};
     393
    384394static HostCheckBox *ShowAlbumArtOnSongChange()
    385395{
    386396    HostCheckBox *gc = new HostCheckBox("VisualAlbumArtOnSongChange");
     
    641651    connect(button, SIGNAL(pressed()), SLOT(showVisEditor()));
    642652
    643653    playersettings3->addChild(VisualCycleOnSongChange());
     654    playersettings3->addChild(ShowVisualCycleOnSongChange());
    644655    playersettings3->addChild(ShowAlbumArtOnSongChange());
    645656    playersettings3->addChild(VisualRandomize());
    646657    playersettings3->addChild(VisualModeDelay());
  • mythplugins/mythmusic/mythmusic/playbackbox.cpp

     
    9090    showrating = gContext->GetNumSetting("MusicShowRatings", 0);
    9191    listAsShuffled = gContext->GetNumSetting("ListAsShuffled", 0);
    9292    cycle_visualizer = gContext->GetNumSetting("VisualCycleOnSongChange", 0);
     93    show_cycle_visualizer = gContext->GetNumSetting("ShowVisualCycleOnSongChange", 0);
    9394    show_album_art = gContext->GetNumSetting("VisualAlbumArtOnSongChange", 0);
    9495    random_visualizer = gContext->GetNumSetting("VisualRandomize", 0);
    9596
     
    514515            else if (action == "SELECT")
    515516            {
    516517                music_tree_list->select();
    517                 if (visualizer_status > 0 && cycle_visualizer)
    518518                    CycleVisualizer();
    519519            }
    520520            else if (action == "REFRESH")
     
    13161316        mainvisual->setVisual("Blank");
    13171317        mainvisual->setVisual(visual_modes[current_visual]);
    13181318    }
    1319 
    1320     bannerEnable(tr("Visualization: ") + visual_modes[current_visual], 4000);
     1319    if (show_cycle_visualizer)
     1320    {
     1321        bannerEnable(tr("Visualization: ") + visual_modes[current_visual], 4000);
     1322    }
     1323    else
     1324    {
     1325        bannerEnable(curMeta, show_album_art);
     1326    }
    13211327}
    13221328
    13231329void PlaybackBoxMusic::setTrackOnLCD(Metadata *mdata)
    1324 -- mythplugins/mythmusic/mythmusic/playbackbox.h        2007-05-10 18:07:06.000000000 +0200
     1330++ mythplugins/mythmusic/mythmusic/playbackbox.h        2007-05-10 18:05:15.000000000 +0200
     
    195195    GenericTree *playlist_tree;
    196196
    197197    bool cycle_visualizer;
     198    bool show_cycle_visualizer;
    198199    bool random_visualizer;
    199200    bool show_album_art;
    200201    bool show_whole_tree;