本文整理汇总了C++中CGUIDialogPictureInfo::SetPicture方法的典型用法代码示例。如果您正苦于以下问题:C++ CGUIDialogPictureInfo::SetPicture方法的具体用法?C++ CGUIDialogPictureInfo::SetPicture怎么用?C++ CGUIDialogPictureInfo::SetPicture使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CGUIDialogPictureInfo
的用法示例。
在下文中一共展示了CGUIDialogPictureInfo::SetPicture方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnInfo
void CGUIWindowPictures::OnInfo(int itemNumber)
{
CFileItemPtr item = (itemNumber >= 0 && itemNumber < m_vecItems->Size()) ? m_vecItems->Get(itemNumber) : CFileItemPtr();
if (!item || item->m_bIsFolder || item->IsZIP() || item->IsRAR() || item->IsCBZ() || item->IsCBR() || !item->IsPicture())
return;
CGUIDialogPictureInfo *pictureInfo = (CGUIDialogPictureInfo *)g_windowManager.GetWindow(WINDOW_DIALOG_PICTURE_INFO);
if (pictureInfo)
{
pictureInfo->SetPicture(item.get());
pictureInfo->DoModal();
}
}
示例2: OnInfo
void CGUIWindowPictures::OnInfo(int itemNumber)
{
CFileItemPtr item = (itemNumber >= 0 && itemNumber < m_vecItems->Size()) ? m_vecItems->Get(itemNumber) : CFileItemPtr();
if (!item)
return;
if (!m_vecItems->IsPlugin() && (item->IsPlugin() || item->IsScript()))
{
CGUIDialogAddonInfo::ShowForItem(item);
return;
}
if (item->m_bIsFolder || item->IsZIP() || item->IsRAR() || item->IsCBZ() || item->IsCBR() || !item->IsPicture())
return;
CGUIDialogPictureInfo *pictureInfo = (CGUIDialogPictureInfo *)g_windowManager.GetWindow(WINDOW_DIALOG_PICTURE_INFO);
if (pictureInfo)
{
pictureInfo->SetPicture(item.get());
pictureInfo->Open();
}
}
示例3: OnItemInfo
void CGUIWindowPictures::OnItemInfo(int itemNumber)
{
CFileItemPtr item = m_vecItems->Get(itemNumber);
if (!item)
return;
if (!m_vecItems->IsPlugin() && (item->IsPlugin() || item->IsScript()))
{
CGUIDialogAddonInfo::ShowForItem(item);
return;
}
if (item->m_bIsFolder || item->IsZIP() || item->IsRAR() || item->IsCBZ() || item->IsCBR() || !item->IsPicture())
return;
CGUIDialogPictureInfo *pictureInfo = CServiceBroker::GetGUI()->GetWindowManager().GetWindow<CGUIDialogPictureInfo>(WINDOW_DIALOG_PICTURE_INFO);
if (pictureInfo)
{
pictureInfo->SetPicture(item.get());
pictureInfo->Open();
}
}