完善吸管图标与紧凑布局,按稳定ID分组显示通用色域和旧DJI机型矩阵

这个提交包含在:
mac 于 2026-11-16 17:55:32 +08:00 提交
1 父节点 dd9f9597bc
当前提交 876c5f1270
11 个文件已更改
+302 -67

没有与搜索条件相匹配的文件

@@ -34,3 +34,22 @@
NSData *pickAfter=[NSKeyedArchiver archivedDataWithRootObject:DYReadTools(pickHost,kCMTimeZero) requiringSecureCoding:YES error:nil];
run.record(@"hsl-picker-only-selects-no-grading-or-undo-write",[pickBefore isEqual:pickHost->_values]&&[pickTools isEqual:pickAfter]&&pickHost->_undoStarts==0);
}
// Menu headings must never shift persisted raw IDs. Exercise every selectable
// value through the real inspector action and refresh, including old DJI IDs.
{
DYDiagnosticManager *menuHost=[[[DYDiagnosticManager alloc]init]autorelease];DYCreateParameters(menuHost,nil);
DYInspector *menuEditor=[[[DYInspector alloc]initWithAPIManager:menuHost]autorelease];[menuEditor refresh];
NSDictionary *controls=[menuEditor valueForKey:@"controls"];
for(NSString *key in @[@"cminputGamut",@"cmworkingGamut",@"cmoutputGamut",@"cminputTransfer",@"cmworkingTransfer",@"cmoutputTransfer"]){
NSDictionary *record=nil;for(NSDictionary *r in controls.allValues)if([r[@"descriptor"][@"key"]isEqual:key])record=r;
NSDictionary *descriptor=record[@"descriptor"];NSPopUpButton *popup=record[@"popup"];NSArray *values=descriptor[@"values"];BOOL matches=popup&&values.count;
NSUInteger headings=0,selectable=0;for(NSMenuItem *item in popup.itemArray){if(item.separatorItem)continue;if(item.tag==-1){headings++;matches&=!item.enabled;}else selectable++;}
matches&=selectable==values.count&&headings==([key hasSuffix:@"Gamut"]?2:0);
for(NSNumber *value in values){
matches&=[popup selectItemWithTag:value.integerValue];[menuEditor performSelector:@selector(scalarChanged:) withObject:popup];
double stored=-1;[menuHost getFloatValue:&stored fromParameter:[descriptor[@"pid"]unsignedIntValue] atTime:kCMTimeZero];[menuEditor refresh];
matches&=stored==value.doubleValue&&popup.selectedItem.tag==value.integerValue;
}
run.record([@"cst-grouped-popup-retains-all-raw-ids-" stringByAppendingString:key],matches);
}
}