本文整理汇总了C++中CKnownFile::HasProperAICHHashSet方法的典型用法代码示例。如果您正苦于以下问题:C++ CKnownFile::HasProperAICHHashSet方法的具体用法?C++ CKnownFile::HasProperAICHHashSet怎么用?C++ CKnownFile::HasProperAICHHashSet使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CKnownFile
的用法示例。
在下文中一共展示了CKnownFile::HasProperAICHHashSet方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnRightClick
void CSharedFilesCtrl::OnRightClick(wxListEvent& event)
{
long item_hit = CheckSelection(event);
if ( (m_menu == NULL) && (item_hit != -1)) {
m_menu = new wxMenu(_("Shared Files"));
wxMenu* prioMenu = new wxMenu();
prioMenu->AppendCheckItem(MP_PRIOVERYLOW, _("Very low"));
prioMenu->AppendCheckItem(MP_PRIOLOW, _("Low"));
prioMenu->AppendCheckItem(MP_PRIONORMAL, _("Normal"));
prioMenu->AppendCheckItem(MP_PRIOHIGH, _("High"));
prioMenu->AppendCheckItem(MP_PRIOVERYHIGH, _("Very High"));
prioMenu->AppendCheckItem(MP_POWERSHARE, _("Release"));
prioMenu->AppendCheckItem(MP_PRIOAUTO, _("Auto"));
m_menu->Append(0,_("Priority"),prioMenu);
m_menu->AppendSeparator();
CKnownFile* file = (CKnownFile*)GetItemData(item_hit);
if (file->GetFileComment().IsEmpty() && !file->GetFileRating()) {
m_menu->Append(MP_CMT, _("Add Comment/Rating"));
} else {
m_menu->Append(MP_CMT, _("Edit Comment/Rating"));
}
m_menu->AppendSeparator();
m_menu->Append(MP_RENAME, _("Rename"));
m_menu->AppendSeparator();
if (file->GetFileName().GetExt() == wxT("emulecollection")) {
m_menu->Append( MP_ADDCOLLECTION, _("Add files in collection to transfer list"));
m_menu->AppendSeparator();
}
m_menu->Append(MP_GETMAGNETLINK,_("Copy magnet &URI to clipboard"));
m_menu->Append(MP_GETED2KLINK,_("Copy eD2k &link to clipboard"));
m_menu->Append(MP_GETSOURCEED2KLINK,_("Copy eD2k link to clipboard (&Source)"));
m_menu->Append(MP_GETCRYPTSOURCEDED2KLINK,_("Copy eD2k link to clipboard (Source) (&With Crypt options)"));
m_menu->Append(MP_GETHOSTNAMESOURCEED2KLINK,_("Copy eD2k link to clipboard (&Hostname)"));
m_menu->Append(MP_GETHOSTNAMECRYPTSOURCEED2KLINK,_("Copy eD2k link to clipboard (Hostname) (With &Crypt options)"));
m_menu->Append(MP_GETAICHED2KLINK,_("Copy eD2k link to clipboard (&AICH info)"));
m_menu->Append(MP_WS,_("Copy feedback to clipboard"));
m_menu->Enable(MP_GETAICHED2KLINK, file->HasProperAICHHashSet());
m_menu->Enable(MP_GETHOSTNAMESOURCEED2KLINK, !thePrefs::GetYourHostname().IsEmpty());
m_menu->Enable(MP_GETHOSTNAMECRYPTSOURCEED2KLINK, !thePrefs::GetYourHostname().IsEmpty());
int priority = file->IsAutoUpPriority() ? PR_AUTO : file->GetUpPriority();
prioMenu->Check(MP_PRIOVERYLOW, priority == PR_VERYLOW);
prioMenu->Check(MP_PRIOLOW, priority == PR_LOW);
prioMenu->Check(MP_PRIONORMAL, priority == PR_NORMAL);
prioMenu->Check(MP_PRIOHIGH, priority == PR_HIGH);
prioMenu->Check(MP_PRIOVERYHIGH,priority == PR_VERYHIGH);
prioMenu->Check(MP_POWERSHARE, priority == PR_POWERSHARE);
prioMenu->Check(MP_PRIOAUTO, priority == PR_AUTO);
PopupMenu( m_menu, event.GetPoint() );
delete m_menu;
m_menu = NULL;
}
}