wip: replace workspace tabs with horizontal layer-driven editing and persistent four-up scopes

这个提交包含在:
mac 于 2026-11-05 09:48:46 +08:00 提交
1 父节点 57059390d1
当前提交 1396d5b7bf
18 个文件已更改
+207 -147

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

+4 -1
查看文件
@@ -2,6 +2,7 @@
// the recorded sibling source repositories; the adapter writes this host model.
#include "DYSpiderDisc.inc.h"
@interface DYSpiderPanel : DYFlippedView
@property(nonatomic) BOOL horizontalLayout;
@property(nonatomic,assign) id<DYGraphicDelegate> delegate;
- (void)setMesh:(NSData *)mesh linked:(BOOL)linked;
@end
@@ -30,7 +31,9 @@
}
- (void)dealloc{_disc.changed=nil;_disc.gesture=nil;_disc.selectionChanged=nil;[_disc release];[_hues release];[_saturation release];[_link release];[_status release];[super dealloc];}
- (void)setMesh:(NSData *)data linked:(BOOL)linked{auto m=DYSpiderMesh(data);_disc.meshData=[NSData dataWithBytes:&m length:sizeof(m)];_linked=linked;[_hues selectItemWithTag:m.hues];[_saturation selectItemWithTag:m.rings+1];_link.state=linked?NSControlStateValueOn:NSControlStateValueOff;}
- (void)layout{[super layout];CGFloat w=self.bounds.size.width;_disc.frame=NSMakeRect(0,0,w,300);
- (void)layout{[super layout];CGFloat w=self.bounds.size.width;
if(_horizontalLayout){CGFloat d=MIN(self.bounds.size.height,w-186),x=d+12,cw=w-x-6;_disc.frame=NSMakeRect(0,0,d,d);[[self viewWithTag:101]setFrame:NSMakeRect(x,7,48,18)];_hues.frame=NSMakeRect(x+58,2,cw-58,26);[[self viewWithTag:102]setFrame:NSMakeRect(x,37,48,18)];_saturation.frame=NSMakeRect(x+58,32,cw-58,26);_link.frame=NSMakeRect(x,64,cw,22);CGFloat bw=(cw-6)/2;for(int i=0;i<5;i++)[[self viewWithTag:201+i]setFrame:NSMakeRect(x+(i%2)*(bw+6),94+(i/2)*30,bw,26)];_status.frame=NSMakeRect(x,188,cw,MAX(24,self.bounds.size.height-190));return;}
_disc.frame=NSMakeRect(0,0,w,300);
[[self viewWithTag:101]setFrame:NSMakeRect(0,307,32,20)];_hues.frame=NSMakeRect(33,301,60,27);
[[self viewWithTag:102]setFrame:NSMakeRect(99,307,43,20)];_saturation.frame=NSMakeRect(142,301,60,27);_link.frame=NSMakeRect(MAX(205,w-61),304,61,23);
_status.frame=NSMakeRect(2,334,w-4,36);CGFloat gap=5,bw=(w-gap)/2;