void UEditorCompositeSection::InitSection(int SectionIndexIn) { SectionIndex = SectionIndexIn; if(UAnimMontage* Montage = Cast<UAnimMontage>(AnimObject)) { if(Montage->CompositeSections.IsValidIndex(SectionIndex)) { CompositeSection = Montage->CompositeSections[SectionIndex]; CopyMetaData(Montage->CompositeSections[SectionIndex], CompositeSection, this); } } }
bool UEditorCompositeSection::ApplyChangesToMontage() { if(UAnimMontage* Montage = Cast<UAnimMontage>(AnimObject)) { if(Montage->CompositeSections.IsValidIndex(SectionIndex)) { CompositeSection.OnChanged(CompositeSection.GetTime()); Montage->CompositeSections[SectionIndex] = CompositeSection; CopyMetaData(CompositeSection, Montage->CompositeSections[SectionIndex], Montage); return true; } } return false; }
void Account::CreateOutbound() { if (!(fOutbound = NewMailChain())) { (new BAlert( MDR_DIALECT_CHOICE ("E-mail","メール"), MDR_DIALECT_CHOICE ("Could not create outbound chain.","送信チェーンは作成できませんでした。"), MDR_DIALECT_CHOICE ("OK","了解")))->Go(); return; } fOutbound->SetChainDirection(outbound); BPath path,addOnPath; find_directory(B_USER_ADDONS_DIRECTORY,&addOnPath); BMessage msg; entry_ref ref; path = addOnPath; path.Append(kSystemFilterAddOnPath); path.Append(MDR_DIALECT_CHOICE ("Outbox", "送信箱")); if (!BEntry(path.Path()).Exists()) { find_directory(B_BEOS_ADDONS_DIRECTORY,&path); path.Append(kSystemFilterAddOnPath); path.Append(MDR_DIALECT_CHOICE ("Outbox", "送信箱")); } BEntry(path.Path()).GetRef(&ref); fOutbound->AddFilter(msg,ref); path = addOnPath; path.Append(kOutboundProtocolAddOnPath); path.Append("SMTP"); if (!BEntry(path.Path()).Exists()) { find_directory(B_BEOS_ADDONS_DIRECTORY,&path); path.Append(kOutboundProtocolAddOnPath); path.Append("SMTP"); } BEntry(path.Path()).GetRef(&ref); fOutbound->AddFilter(msg,ref); // set already made account settings CopyMetaData(fOutbound,fInbound); }
void Account::CreateInbound() { if (!(fInbound = NewMailChain())) { (new BAlert( MDR_DIALECT_CHOICE ("E-mail","メール"), MDR_DIALECT_CHOICE ("Could not create inbound chain.","受信チェーンは作成できませんでした。"), MDR_DIALECT_CHOICE ("OK","了解")))->Go(); return; } fInbound->SetChainDirection(inbound); BPath path,addOnPath; find_directory(B_USER_ADDONS_DIRECTORY,&addOnPath); BMessage msg; entry_ref ref; // Protocol path = addOnPath; path.Append(kInboundProtocolAddOnPath); path.Append("POP3"); if (!BEntry(path.Path()).Exists()) { find_directory(B_BEOS_ADDONS_DIRECTORY,&path); path.Append(kInboundProtocolAddOnPath); path.Append("POP3"); } BEntry(path.Path()).GetRef(&ref); fInbound->AddFilter(msg,ref); // Message Parser path = addOnPath; path.Append(kSystemFilterAddOnPath); path.Append("Message Parser"); if (!BEntry(path.Path()).Exists()) { find_directory(B_BEOS_ADDONS_DIRECTORY,&path); path.Append(kSystemFilterAddOnPath); path.Append("Message Parser"); } BEntry(path.Path()).GetRef(&ref); fInbound->AddFilter(msg,ref); // New Mail Notification path = addOnPath; path.Append(kSystemFilterAddOnPath); path.Append(MDR_DIALECT_CHOICE ("New mail notification", "着信通知方法")); if (!BEntry(path.Path()).Exists()) { find_directory(B_BEOS_ADDONS_DIRECTORY,&path); path.Append(kSystemFilterAddOnPath); path.Append(MDR_DIALECT_CHOICE ("New mail notification", "着信通知方法")); } BEntry(path.Path()).GetRef(&ref); fInbound->AddFilter(msg,ref); // Inbox path = addOnPath; path.Append(kSystemFilterAddOnPath); path.Append(MDR_DIALECT_CHOICE ("Inbox", "受信箱")); if (!BEntry(path.Path()).Exists()) { find_directory(B_BEOS_ADDONS_DIRECTORY,&path); path.Append(kSystemFilterAddOnPath); path.Append(MDR_DIALECT_CHOICE ("Inbox", "受信箱")); } BEntry(path.Path()).GetRef(&ref); fInbound->AddFilter(msg,ref); // set already made account settings CopyMetaData(fInbound,fOutbound); }