Ticket #3668: mythtv_epg_volume.diff

File mythtv_epg_volume.diff, 2.7 KB (added by gnome42@…, 13 years ago)

Add volume controls to EPG

  • libs/libmythtv/tv_play.cpp

     
    271271            "favorites in the program guide.", "/");
    272272    REG_KEY("TV Frontend", "CHANUPDATE", "Switch channels without exiting "
    273273            "guide in Live TV mode.", "X");
     274    REG_KEY("TV Frontend", "VOLUMEDOWN", "Volume down", "[,{,F10");
     275    REG_KEY("TV Frontend", "VOLUMEUP", "Volume up", "],},F11");
     276    REG_KEY("TV Frontend", "MUTE", "Mute", "|,\\,F9");
    274277    REG_KEY("TV Frontend", "RANKINC", "Increase program or channel rank",
    275278            "Right");
    276279    REG_KEY("TV Frontend", "RANKDEC", "Decrease program or channel rank",
  • libs/libmythtv/tv_play.h

     
    189189
    190190    void SetIgnoreKeys(bool ignore) { ignoreKeys = ignore; }
    191191
     192    // Used by EPG
     193    void ChangeVolume(bool up);
     194    void ToggleMute(void);
     195
    192196  public slots:
    193197    void HandleOSDClosed(int osdType);
    194198
     
    232236    void PauseLiveTV(void);
    233237    void UnpauseLiveTV(void);
    234238
    235     void ChangeVolume(bool up);
    236     void ToggleMute(void);
    237239    void ToggleLetterbox(int letterboxMode = -1);
    238240
    239241    bool FillMenuTracks(OSDGenericTree*, uint type);
  • libs/libmythtv/guidegrid.cpp

     
    430430                toggleChannelFavorite();
    431431            else if (action == "CHANUPDATE")
    432432                channelUpdate();
     433            else if (action == "VOLUMEUP")
     434                volumeUpdate(true);
     435            else if (action == "VOLUMEDOWN")
     436                volumeUpdate(false);
     437            else if (action == "MUTE")
     438                toggleMute();
    433439            else
    434440                handled = false;
    435441        }
     
    17971803        m_player->EPGChannelUpdate(info.chanid, info.chanstr);
    17981804}
    17991805
     1806void GuideGrid::volumeUpdate(bool up)
     1807{
     1808    if (m_player)
     1809        m_player->ChangeVolume(up);
     1810}
     1811
     1812void GuideGrid::toggleMute(void)
     1813{
     1814    if (m_player)
     1815        m_player->ToggleMute();
     1816}
     1817
    18001818//
    18011819// jumpToChannel - Jason Parekh <jasonparekh@gmail.com> - 06/23/2004
    18021820//
  • libs/libmythtv/guidegrid.h

     
    7171
    7272    void showProgFinder();
    7373    void channelUpdate();
     74    void volumeUpdate(bool);
     75    void toggleMute();
    7476
    7577    void quickRecord();
    7678    void editRecording();