diff options
author | xpc1000 <xpc1000@users.sourceforge.net> | 2010-10-03 21:18:12 +0400 |
---|---|---|
committer | xpc1000 <xpc1000@users.sourceforge.net> | 2010-10-03 21:18:12 +0400 |
commit | 902dac861c8e856f37afc3180c890fd18bdb747b (patch) | |
tree | 099a6c2d92c998d23120c942fae6d7202e4cec63 /src/apps/mplayerc/PlayerNavigationDialog.cpp | |
parent | 246c5f2fc332702a4cdd91860a41ccb1e1a5a83e (diff) |
Added EPG current event information for DVB
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@2664 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/apps/mplayerc/PlayerNavigationDialog.cpp')
-rw-r--r-- | src/apps/mplayerc/PlayerNavigationDialog.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/apps/mplayerc/PlayerNavigationDialog.cpp b/src/apps/mplayerc/PlayerNavigationDialog.cpp index 282bd0da2..f303c0b33 100644 --- a/src/apps/mplayerc/PlayerNavigationDialog.cpp +++ b/src/apps/mplayerc/PlayerNavigationDialog.cpp @@ -133,6 +133,7 @@ void CPlayerNavigationDialog::SetupAudioSwitcherSubMenu(CDVBChannel* pChannel) }
}
+ m_ButtonInfo.EnableWindow(pChannel->GetNowNextFlag());
m_ComboAudio.ResetContent();
for (int i=0; i < pChannel->GetAudioCount(); i++)
{
@@ -143,8 +144,7 @@ void CPlayerNavigationDialog::SetupAudioSwitcherSubMenu(CDVBChannel* pChannel) m_audios[i].Language = pChannel->GetAudio(i) -> Language;
}
- m_ComboAudio.SetCurSel(0); // TODO: managing default languages
-
+ m_ComboAudio.SetCurSel(pChannel->GetDefaultAudio());
}
void CPlayerNavigationDialog::UpdateElementList()
@@ -215,8 +215,10 @@ void CPlayerNavigationDialog::OnSelChangeComboAudio() void CPlayerNavigationDialog::OnButtonInfo()
{
- // TODO: Retrieve and show channel info
+ CWnd* TempWnd;
+ TempWnd = static_cast<CPlayerNavigationBar*> (m_pParent) -> m_pParent;
+ static_cast<CMainFrame*> (TempWnd) -> DisplayCurrentChannelInfo();
}
void CPlayerNavigationDialog::OnTvRadioStations()
|