本文整理汇总了C++中CGUIDialog::IsDialogRunning方法的典型用法代码示例。如果您正苦于以下问题:C++ CGUIDialog::IsDialogRunning方法的具体用法?C++ CGUIDialog::IsDialogRunning怎么用?C++ CGUIDialog::IsDialogRunning使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CGUIDialog
的用法示例。
在下文中一共展示了CGUIDialog::IsDialogRunning方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnMessage
bool CGUIDialogVideoOSD::OnMessage(CGUIMessage& message)
{
switch ( message.GetMessage() )
{
case GUI_MSG_VIDEO_MENU_STARTED:
{
// We have gone to the DVD menu, so close the OSD.
Close();
}
break;
case GUI_MSG_WINDOW_DEINIT: // fired when OSD is hidden
{
// Remove our subdialogs if visible
CGUIDialog *pDialog = (CGUIDialog *)g_windowManager.GetWindow(WINDOW_DIALOG_VIDEO_OSD_SETTINGS);
if (pDialog && pDialog->IsDialogRunning())
pDialog->Close(true);
pDialog = (CGUIDialog *)g_windowManager.GetWindow(WINDOW_DIALOG_AUDIO_OSD_SETTINGS);
if (pDialog && pDialog->IsDialogRunning()) pDialog->Close(true);
pDialog = (CGUIDialog *)g_windowManager.GetWindow(WINDOW_DIALOG_VIDEO_BOOKMARKS);
if (pDialog && pDialog->IsDialogRunning()) pDialog->Close(true);
pDialog = (CGUIDialog *)g_windowManager.GetWindow(WINDOW_DIALOG_PVR_OSD_CHANNELS);
if (pDialog && pDialog->IsDialogRunning()) pDialog->Close(true);
pDialog = (CGUIDialog *)g_windowManager.GetWindow(WINDOW_DIALOG_PVR_OSD_GUIDE);
if (pDialog && pDialog->IsDialogRunning()) pDialog->Close(true);
pDialog = (CGUIDialog *)g_windowManager.GetWindow(WINDOW_DIALOG_PVR_OSD_DIRECTOR);
if (pDialog && pDialog->IsDialogRunning()) pDialog->Close(true);
pDialog = (CGUIDialog *)g_windowManager.GetWindow(WINDOW_DIALOG_PVR_OSD_CUTTER);
if (pDialog && pDialog->IsDialogRunning()) pDialog->Close(true);
pDialog = (CGUIDialog *)g_windowManager.GetWindow(WINDOW_DIALOG_OSD_TELETEXT);
if (pDialog && pDialog->IsDialogRunning()) pDialog->Close(true);
}
break;
}
return CGUIDialog::OnMessage(message);
}
示例2: OnMessage
bool CGUIWindowOSD::OnMessage(CGUIMessage& message)
{
switch ( message.GetMessage() )
{
// Boxee section
case GUI_MSG_CLICKED:
{
unsigned int iControl = message.GetSenderId();
if (iControl == CONTROL_RATE_BUTTON)
{
CFileItem &item = g_application.CurrentFileItem();
bool bLike;
if (CGUIDialogBoxeeRate::ShowAndGetInput(bLike))
{
BoxeeUtils::Rate(&item, bLike);
g_application.m_guiDialogKaiToast.QueueNotification(CGUIDialogKaiToast::ICON_STAR, "", g_localizeStrings.Get(51034), 5000 , KAI_YELLOW_COLOR, KAI_GREY_COLOR);
}
}
else if (iControl == CONTROL_RECOMMEND_BUTTON)
{
CGUIDialogBoxeeShare *pFriends = (CGUIDialogBoxeeShare *)g_windowManager.GetWindow(WINDOW_DIALOG_BOXEE_SHARE);
pFriends->DoModal();
}
return true;
}
// end boxee section
case GUI_MSG_VIDEO_MENU_STARTED:
{
// We have gone to the DVD menu, so close the OSD.
Close();
}
case GUI_MSG_WINDOW_DEINIT: // fired when OSD is hidden
{
// Remove our subdialogs if visible
CGUIDialog *pDialog = (CGUIDialog *)g_windowManager.GetWindow(WINDOW_DIALOG_VIDEO_OSD_SETTINGS);
if (pDialog && pDialog->IsDialogRunning())
pDialog->Close(true);
pDialog = (CGUIDialog *)g_windowManager.GetWindow(WINDOW_DIALOG_AUDIO_OSD_SETTINGS);
if (pDialog && pDialog->IsDialogRunning()) pDialog->Close(true);
pDialog = (CGUIDialog *)g_windowManager.GetWindow(WINDOW_DIALOG_VIDEO_BOOKMARKS);
if (pDialog && pDialog->IsDialogRunning()) pDialog->Close(true);
pDialog = (CGUIDialog *)g_windowManager.GetWindow(WINDOW_DIALOG_OSD_TELETEXT);
if (pDialog && pDialog->IsDialogRunning()) pDialog->Close(true);
pDialog = (CGUIDialog *)g_windowManager.GetWindow(WINDOW_DIALOG_SUBTITLE_OSD_SETTINGS);
if (pDialog && pDialog->IsDialogRunning()) pDialog->Close(true);
}
break;
}
return CGUIDialog::OnMessage(message);
}
示例3: TriggerOSD
void CGameWindowFullScreen::TriggerOSD()
{
CGUIDialog *pOSD = GetOSD();
if (pOSD != nullptr)
{
if (!pOSD->IsDialogRunning())
pOSD->Open();
}
}
示例4: ToggleOSD
void CGameWindowFullScreen::ToggleOSD()
{
CGUIDialog *pOSD = GetOSD();
if (pOSD != nullptr)
{
if (pOSD->IsDialogRunning())
pOSD->Close();
else
pOSD->Open();
}
MarkDirtyRegion();
}
示例5: OnMessage
bool CGUIDialogVideoOSD::OnMessage(CGUIMessage& message)
{
switch ( message.GetMessage() )
{
case GUI_MSG_VIDEO_MENU_STARTED:
{
// We have gone to the DVD menu, so close the OSD.
Close();
}
break;
case GUI_MSG_WINDOW_DEINIT: // fired when OSD is hidden
{
// Remove our subdialogs if visible
CGUIDialog *pDialog = g_windowManager.GetDialog(WINDOW_DIALOG_AUDIO_DSP_OSD_SETTINGS);
if (pDialog && pDialog->IsDialogRunning())
pDialog->Close(true);
pDialog = g_windowManager.GetDialog(WINDOW_DIALOG_AUDIO_OSD_SETTINGS);
if (pDialog && pDialog->IsDialogRunning())
pDialog->Close(true);
}
break;
}
return CGUIDialog::OnMessage(message);
}
示例6: GetBool
bool CPlayerGUIInfo::GetBool(bool& value, const CGUIListItem *gitem, int contextWindow, const CGUIInfo &info) const
{
const CFileItem *item = nullptr;
if (gitem->IsFileItem())
item = static_cast<const CFileItem*>(gitem);
switch (info.m_info)
{
///////////////////////////////////////////////////////////////////////////////////////////////
// PLAYER_*
///////////////////////////////////////////////////////////////////////////////////////////////
case PLAYER_SHOWINFO:
value = m_playerShowInfo;
return true;
case PLAYER_DISPLAY_AFTER_SEEK:
value = GetDisplayAfterSeek();
return true;
case PLAYER_SHOWTIME:
value = m_playerShowTime;
return true;
case PLAYER_MUTED:
value = (g_application.IsMuted() || g_application.GetVolume(false) <= VOLUME_MINIMUM);
return true;
case PLAYER_HAS_MEDIA:
value = g_application.GetAppPlayer().IsPlaying();
return true;
case PLAYER_HAS_AUDIO:
value = g_application.GetAppPlayer().IsPlayingAudio();
return true;
case PLAYER_HAS_VIDEO:
value = g_application.GetAppPlayer().IsPlayingVideo();
return true;
case PLAYER_HAS_GAME:
value = g_application.GetAppPlayer().IsPlayingGame();
return true;
case PLAYER_PLAYING:
value = g_application.GetAppPlayer().GetPlaySpeed() == 1.0;
return true;
case PLAYER_PAUSED:
value = g_application.GetAppPlayer().IsPausedPlayback();
return true;
case PLAYER_REWINDING:
value = g_application.GetAppPlayer().GetPlaySpeed() < 0;
return true;
case PLAYER_FORWARDING:
value = g_application.GetAppPlayer().GetPlaySpeed() > 1.5;
return true;
case PLAYER_REWINDING_2x:
value = g_application.GetAppPlayer().GetPlaySpeed() == -2;
return true;
case PLAYER_REWINDING_4x:
value = g_application.GetAppPlayer().GetPlaySpeed() == -4;
return true;
case PLAYER_REWINDING_8x:
value = g_application.GetAppPlayer().GetPlaySpeed() == -8;
return true;
case PLAYER_REWINDING_16x:
value = g_application.GetAppPlayer().GetPlaySpeed() == -16;
return true;
case PLAYER_REWINDING_32x:
value = g_application.GetAppPlayer().GetPlaySpeed() == -32;
return true;
case PLAYER_FORWARDING_2x:
value = g_application.GetAppPlayer().GetPlaySpeed() == 2;
return true;
case PLAYER_FORWARDING_4x:
value = g_application.GetAppPlayer().GetPlaySpeed() == 4;
return true;
case PLAYER_FORWARDING_8x:
value = g_application.GetAppPlayer().GetPlaySpeed() == 8;
return true;
case PLAYER_FORWARDING_16x:
value = g_application.GetAppPlayer().GetPlaySpeed() == 16;
return true;
case PLAYER_FORWARDING_32x:
value = g_application.GetAppPlayer().GetPlaySpeed() == 32;
return true;
case PLAYER_CAN_PAUSE:
value = g_application.GetAppPlayer().CanPause();
return true;
case PLAYER_CAN_SEEK:
value = g_application.GetAppPlayer().CanSeek();
return true;
case PLAYER_SUPPORTS_TEMPO:
value = g_application.GetAppPlayer().SupportsTempo();
return true;
case PLAYER_IS_TEMPO:
{
value = (g_application.GetAppPlayer().GetPlayTempo() != 1.0 &&
g_application.GetAppPlayer().GetPlaySpeed() == 1.0);
return true;
}
case PLAYER_CACHING:
value = g_application.GetAppPlayer().IsCaching();
return true;
case PLAYER_SEEKBAR:
{
CGUIDialog *seekBar = CServiceBroker::GetGUI()->GetWindowManager().GetDialog(WINDOW_DIALOG_SEEK_BAR);
value = seekBar ? seekBar->IsDialogRunning() : false;
return true;
//.........这里部分代码省略.........