1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-29 00:34:26 +03:00

GH-422 Prepare the workspace demo app such that we can reproduce the bug

This commit is contained in:
Tae Won Ha 2017-04-07 13:46:39 +02:00
parent 05f911fff8
commit fa005f3048
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44

View File

@ -29,7 +29,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
contentView.addSubview(workspace)
workspace.autoPinEdgesToSuperviewEdges()
workspace.append(tool: dummyTool(title: "Top-1", color: .yellow), location: .top)
// workspace.append(tool: dummyTool(title: "Top-1", color: .yellow), location: .top)
workspace.append(tool: dummyTool(title: "Right-1", color: .magenta), location: .right)
workspace.append(tool: dummyTool(title: "Right-2", color: .black), location: .right)
@ -44,14 +44,16 @@ class AppDelegate: NSObject, NSApplicationDelegate {
let tool = dummyTool(title: "Left-1", color: .blue, customToolbar: DummyView(.orange), customMenu: menuItems)
workspace.append(tool: tool, location: .left)
workspace.append(tool: dummyTool(title: "Left-2", color: .red), location: .left)
workspace.append(tool: dummyTool(title: "Left-3", color: .gray), location: .left)
workspace.append(tool: tool, location: .right)
// workspace.append(tool: dummyTool(title: "Left-2", color: .red), location: .left)
// workspace.append(tool: dummyTool(title: "Left-3", color: .gray), location: .left)
workspace.append(tool: dummyTool(title: "Bottom-1", color: .cyan), location: .bottom)
workspace.append(tool: dummyTool(title: "Bottom-2", color: .blue), location: .bottom)
// workspace.append(tool: dummyTool(title: "Bottom-1", color: .cyan), location: .bottom)
// workspace.append(tool: dummyTool(title: "Bottom-2", color: .blue), location: .bottom)
tool.toggle()
// FIXME: GH-422
}
fileprivate func dummyTool(title: String,