Skip to content

Instantly share code, notes, and snippets.

@erichocean
Created January 19, 2011 00:24
Show Gist options
  • Save erichocean/785442 to your computer and use it in GitHub Desktop.
Save erichocean/785442 to your computer and use it in GitHub Desktop.
SproutCore-style page definition in Cocoa with Core Animation layers.
//
// MainWindow.objc
// PhotoBooth
//
// Copyright 2008 Erich Atlas Ocean. All rights reserved.
//
sc_require( "PhotoBooth" );
@synchronized( PB ) {
PB.mainWindow = [SCWindow window: [_DICT:
@"titleBinding", @"PB.windowTitle",
@"nowShowingBinding", @"PB.page",
@"startupPage", [SCPage page: [_DICT:
@"outlets", [_ARRAY: @"body", nil],
@"body", [SCImageView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 1920.0 ),
@"imageBinding", @"PB.startupImage",
nil]],
nil]],
@"attractPage", [SCPage page: [_DICT:
@"outlets", [_ARRAY: @"body", nil],
@"body", [SCQuickTimeView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 1920.0 ),
@"movieBinding", @"PB.attractLoop",
nil]],
nil]],
@"errorPage", [SCPage page: [_DICT:
@"outlets", [_ARRAY: @"body", nil],
@"body", [PBErrorView view: [_DICT:
@"frame", _RECT( 100.0, 100.0, 880.0, 1000.0 ),
@"messageBinding", @"PB.errorMessage",
nil]],
nil]],
@"licensingPage", [SCPage page: [_DICT:
@"outlets", [_ARRAY: @"body", nil],
@"body", [PBErrorView view: [_DICT:
@"frame", _RECT( 100.0, 100.0, 880.0, 1000.0 ),
@"message", @"Waiting for license confirmation...",
nil]],
nil]],
@"chooserPage", [SCPage page: [_DICT:
@"outlets", [_ARRAY: @"body", @"branding",nil],
@"body", [SCView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 1920.0 ),
@"rootLayer.contents", [SC.image get: @"PBChooserPage"],
@"outlets", [_ARRAY: @"single", @"fourUpTopLeft", @"fourUpTopRight", @"fourUpBottomLeft", @"fourUpBottomRight", @"movie", nil],
@"single", [PBOpenGLCaptureView view: [_DICT:
@"frame", _RECT( 26.0, 1085, 640.0, 480.0 ),
nil]],
@"fourUpTopLeft", [PBOpenGLCaptureView view: [_DICT:
@"frame", _RECT( 348.0, 802.0, 302.0, 234.0 ),
nil]],
@"fourUpTopRight", [PBOpenGLCaptureView view: [_DICT:
@"frame", _RECT( 665.0, 802.0, 302.0, 234.0 ),
nil]],
@"fourUpBottomLeft", [PBOpenGLCaptureView view: [_DICT:
@"frame", _RECT( 348.0, 556.0, 302.0, 234.0 ),
nil]],
@"fourUpBottomRight", [PBOpenGLCaptureView view: [_DICT:
@"frame", _RECT( 665.0, 556.0, 302.0, 234.0 ),
nil]],
@"movie", [PBOpenGLCaptureView view: [_DICT:
@"frame", _RECT( 56.0, 25.0, 640.0, 480.0 ),
nil]],
nil]],
@"branding", [SCImageView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 1920.0 ),
@"imageBinding", @"PB.brandingImage",
nil]],
nil]],
@"singleCapturePage", [SCPage page: [_DICT:
@"outlets", [_ARRAY: @"body", @"branding",nil],
@"body", [SCView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 1920.0 ),
@"rootLayer.contents", [SC.image get: @"PBSingleCapturePage"],
@"outlets", [_ARRAY: @"viewer", @"effects", @"overlay", nil],
@"viewer", [PBOpenGLCaptureView view: [_DICT:
@"frame", _RECT( 188.0, 894.0, 640.0, 480.0 ),
@"shaderTypeBinding", @"PB.effectIndex",
nil]],
@"effects", [SCScrollView view: [_DICT:
@"frame", _RECT( 300.0, 60.0, 640.0, 770.0 ),
@"outlets", [_ARRAY: @"chooser", nil],
@"chooser", [SCCarouselView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 640.0, 770.0 ),
@"isHorizontal", _NO,
@"visibleViewIndexBinding", @"PB.effectIndex",
@"outlets", [_ARRAY:
@"none", @"blur", @"brighten", @"colorInvert", @"dilation", @"edgeDection", @"erosion",
@"extractColor", @"fog", @"grayInvert", @"heatSig", @"saturation", @"sepia",
@"sharpen", @"sky", @"toon", nil],
@"none", [PBSingleCaptureEffectView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 640.0, 160.0 ),
@"shaderName", @"Normal",
@"shaderType", _INT( kShaderNone ),
nil]],
@"blur", [PBSingleCaptureEffectView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 640.0, 160.0 ),
@"shaderName", @"Blur",
@"shaderType", _INT( kShaderBlur ),
nil]],
@"brighten", [PBSingleCaptureEffectView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 640.0, 160.0 ),
@"shaderName", @"Brighten",
@"shaderType", _INT( kShaderBrighten ),
nil]],
@"colorInvert", [PBSingleCaptureEffectView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 640.0, 160.0 ),
@"shaderName", @"Invert Color",
@"shaderType", _INT( kShaderColorInvert ),
nil]],
@"dilation", [PBSingleCaptureEffectView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 640.0, 160.0 ),
@"shaderName", @"Comic Book",
@"shaderType", _INT( kShaderDilation ),
nil]],
@"edgeDection", [PBSingleCaptureEffectView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 640.0, 160.0 ),
@"shaderName", @"Edge Detection",
@"shaderType", _INT( kShaderEdgeDection ),
nil]],
@"erosion", [PBSingleCaptureEffectView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 640.0, 160.0 ),
@"shaderName", @"Erosion",
@"shaderType", _INT( kShaderErosion ),
nil]],
@"extractColor", [PBSingleCaptureEffectView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 640.0, 160.0 ),
@"shaderName", @"Distort",
@"shaderType", _INT( kShaderExtractColor ),
nil]],
@"fog", [PBSingleCaptureEffectView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 640.0, 160.0 ),
@"shaderName", @"Fog",
@"shaderType", _INT( kShaderFog ),
nil]],
@"grayInvert", [PBSingleCaptureEffectView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 640.0, 160.0 ),
@"shaderName", @"Dot Screen",
@"shaderType", _INT( kShaderGrayInvert ),
nil]],
@"heatSig", [PBSingleCaptureEffectView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 640.0, 160.0 ),
@"shaderName", @"Newspaper",
@"shaderType", _INT( kShaderHeatSig ),
nil]],
@"saturation", [PBSingleCaptureEffectView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 640.0, 160.0 ),
@"shaderName", @"Zoom Blur",
@"shaderType", _INT( kShaderSaturation ),
nil]],
@"sepia", [PBSingleCaptureEffectView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 640.0, 160.0 ),
@"shaderName", @"Sepia",
@"shaderType", _INT( kShaderSepia ),
nil]],
@"sharpen", [PBSingleCaptureEffectView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 640.0, 160.0 ),
@"shaderName", @"Sharpen",
@"shaderType", _INT( kShaderSharpen ),
nil]],
@"sky", [PBSingleCaptureEffectView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 640.0, 160.0 ),
@"shaderName", @"Sky",
@"shaderType", _INT( kShaderSky ),
nil]],
@"toon", [PBSingleCaptureEffectView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 640.0, 160.0 ),
@"shaderName", @"Toon",
@"shaderType", _INT( kShaderToon ),
nil]],
nil]],
nil]],
@"overlay", [SCView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 1920.0 ),
@"rootLayer.contents", [SC.image get: @"PBSingleCapturePageOverlay"],
nil]],
nil]],
@"branding", [SCImageView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 1920.0 ),
@"imageBinding", @"PB.brandingImage",
nil]],
nil]],
@"singleCaptureThreePage", [SCPage page: [_DICT:
@"outlets", [_ARRAY: @"body", @"branding",nil],
@"body", [SCView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 1920.0 ),
@"rootLayer.contents", [SC.image get: @"PBSingleCaptureThreePage"],
@"outlets", [_ARRAY: @"viewer", nil],
@"viewer", [PBOpenGLCaptureView view: [_DICT:
@"frame", _RECT( 188.0, 894.0, 640.0, 480.0 ),
@"shaderTypeBinding", @"PB.effectIndex",
nil]],
nil]],
@"branding", [SCImageView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 1920.0 ),
@"imageBinding", @"PB.brandingImage",
nil]],
nil]],
@"singleCaptureTwoPage", [SCPage page: [_DICT:
@"outlets", [_ARRAY: @"body", @"branding",nil],
@"body", [SCView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 1920.0 ),
@"rootLayer.contents", [SC.image get: @"PBSingleCaptureTwoPage"],
@"outlets", [_ARRAY: @"viewer", nil],
@"viewer", [PBOpenGLCaptureView view: [_DICT:
@"frame", _RECT( 188.0, 894.0, 640.0, 480.0 ),
@"shaderTypeBinding", @"PB.effectIndex",
nil]],
nil]],
@"branding", [SCImageView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 1920.0 ),
@"imageBinding", @"PB.brandingImage",
nil]],
nil]],
@"singleCaptureOnePage", [SCPage page: [_DICT:
@"outlets", [_ARRAY: @"body", @"branding",nil],
@"body", [SCView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 1920.0 ),
@"rootLayer.contents", [SC.image get: @"PBSingleCaptureOnePage"],
@"outlets", [_ARRAY: @"viewer", nil],
@"viewer", [PBOpenGLCaptureView view: [_DICT:
@"frame", _RECT( 188.0, 894.0, 640.0, 480.0 ),
@"shaderTypeBinding", @"PB.effectIndex",
nil]],
nil]],
@"branding", [SCImageView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 1920.0 ),
@"imageBinding", @"PB.brandingImage",
nil]],
nil]],
@"singlePrintPage", [SCPage page: [_DICT:
@"outlets", [_ARRAY: @"body", @"branding",nil],
@"body", [SCView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 1920.0 ),
@"rootLayer.contents", [SC.image get: @"PBSinglePrintPage"],
@"outlets", [_ARRAY: @"viewer", @"pictureFrame", nil],
@"viewer", [SCImageView view: [_DICT:
@"frame", _RECT( 188.0, 894.0, 640.0, 480.0 ),
@"imageBinding", @"PB.lastCaptureImage",
nil]],
@"pictureFrame", [SCImageView view: [_DICT:
@"frame", _RECT( 188.0, 878, 705.0, 510.0 ),
@"imageBinding", @"PB.singlePictureFrameImage",
nil]],
nil]],
@"branding", [SCImageView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 1920.0 ),
@"imageBinding", @"PB.brandingImage",
nil]],
nil]],
@"singleCopiesPage", [SCPage page: [_DICT:
@"outlets", [_ARRAY: @"body", @"branding",nil],
@"body", [SCView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 1920.0 ),
@"rootLayer.contents", [SC.image get: @"PBSingleCopiesPage"],
@"outlets", [_ARRAY: @"viewer", @"pictureFrame", nil],
@"viewer", [SCImageView view: [_DICT:
@"frame", _RECT( 188.0, 894.0, 640.0, 480.0 ),
@"imageBinding", @"PB.lastCaptureImage",
nil]],
@"pictureFrame", [SCImageView view: [_DICT:
@"frame", _RECT( 188.0, 878, 705.0, 510.0 ),
@"imageBinding", @"PB.singlePictureFrameImage",
nil]],
nil]],
@"branding", [SCImageView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 1920.0 ),
@"imageBinding", @"PB.brandingImage",
nil]],
nil]],
@"fourUpCapturePage", [SCPage page: [_DICT:
@"outlets", [_ARRAY: @"body", @"branding",nil],
@"body", [SCView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 1920.0 ),
@"rootLayer.contents", [SC.image get: @"PBFourUpCapturePage"],
@"outlets", [_ARRAY: @"viewer", @"effects", @"overlay", nil],
@"viewer", [SCView view: [_DICT:
@"frame", _RECT( 188.0, 894.0, 640.0, 480.0 ),
@"outlets", [_ARRAY: @"fourUpTopLeft", @"fourUpTopRight", @"fourUpBottomLeft", @"fourUpBottomRight", nil],
@"fourUpTopLeft", [PBOpenGLCaptureView view: [_DICT:
@"frame", _RECT( 0.0, 246.0, 302.0, 234.0 ),
@"shaderTypeBinding", @"PB.effectIndex",
nil]],
@"fourUpTopRight", [PBOpenGLCaptureView view: [_DICT:
@"frame", _RECT( 317.0, 246.0, 302.0, 234.0 ),
@"shaderTypeBinding", @"PB.effectIndex",
nil]],
@"fourUpBottomLeft", [PBOpenGLCaptureView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 302.0, 234.0 ),
@"shaderTypeBinding", @"PB.effectIndex",
nil]],
@"fourUpBottomRight", [PBOpenGLCaptureView view: [_DICT:
@"frame", _RECT( 317.0, 0.0, 302.0, 234.0 ),
@"shaderTypeBinding", @"PB.effectIndex",
nil]],
nil]],
@"effects", [SCScrollView view: [_DICT:
@"frame", _RECT( 300.0, 60.0, 640.0, 770.0 ),
@"outlets", [_ARRAY: @"chooser", nil],
@"chooser", [SCCarouselView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 640.0, 770.0 ),
@"isHorizontal", _NO,
@"visibleViewIndexBinding", @"PB.effectIndex",
@"outlets", [_ARRAY:
@"none", @"blur", @"brighten", @"colorInvert", @"dilation", @"edgeDection", @"erosion",
@"extractColor", @"fog", @"grayInvert", @"heatSig", @"saturation", @"sepia",
@"sharpen", @"sky", @"toon", nil],
@"none", [PBSingleCaptureEffectView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 640.0, 160.0 ),
@"shaderName", @"Normal",
@"shaderType", _INT( kShaderNone ),
nil]],
@"blur", [PBSingleCaptureEffectView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 640.0, 160.0 ),
@"shaderName", @"Blur",
@"shaderType", _INT( kShaderBlur ),
nil]],
@"brighten", [PBSingleCaptureEffectView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 640.0, 160.0 ),
@"shaderName", @"Brighten",
@"shaderType", _INT( kShaderBrighten ),
nil]],
@"colorInvert", [PBSingleCaptureEffectView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 640.0, 160.0 ),
@"shaderName", @"Invert Color",
@"shaderType", _INT( kShaderColorInvert ),
nil]],
@"dilation", [PBSingleCaptureEffectView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 640.0, 160.0 ),
@"shaderName", @"Comic Book",
@"shaderType", _INT( kShaderDilation ),
nil]],
@"edgeDection", [PBSingleCaptureEffectView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 640.0, 160.0 ),
@"shaderName", @"Edge Detection",
@"shaderType", _INT( kShaderEdgeDection ),
nil]],
@"erosion", [PBSingleCaptureEffectView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 640.0, 160.0 ),
@"shaderName", @"Erosion",
@"shaderType", _INT( kShaderErosion ),
nil]],
@"extractColor", [PBSingleCaptureEffectView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 640.0, 160.0 ),
@"shaderName", @"Distort",
@"shaderType", _INT( kShaderExtractColor ),
nil]],
@"fog", [PBSingleCaptureEffectView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 640.0, 160.0 ),
@"shaderName", @"Fog",
@"shaderType", _INT( kShaderFog ),
nil]],
@"grayInvert", [PBSingleCaptureEffectView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 640.0, 160.0 ),
@"shaderName", @"Dot Screen",
@"shaderType", _INT( kShaderGrayInvert ),
nil]],
@"heatSig", [PBSingleCaptureEffectView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 640.0, 160.0 ),
@"shaderName", @"Newspaper",
@"shaderType", _INT( kShaderHeatSig ),
nil]],
@"saturation", [PBSingleCaptureEffectView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 640.0, 160.0 ),
@"shaderName", @"Zoom Blur",
@"shaderType", _INT( kShaderSaturation ),
nil]],
@"sepia", [PBSingleCaptureEffectView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 640.0, 160.0 ),
@"shaderName", @"Sepia",
@"shaderType", _INT( kShaderSepia ),
nil]],
@"sharpen", [PBSingleCaptureEffectView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 640.0, 160.0 ),
@"shaderName", @"Sharpen",
@"shaderType", _INT( kShaderSharpen ),
nil]],
@"sky", [PBSingleCaptureEffectView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 640.0, 160.0 ),
@"shaderName", @"Sky",
@"shaderType", _INT( kShaderSky ),
nil]],
@"toon", [PBSingleCaptureEffectView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 640.0, 160.0 ),
@"shaderName", @"Toon",
@"shaderType", _INT( kShaderToon ),
nil]],
nil]],
nil]],
@"overlay", [SCView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 1920.0 ),
@"rootLayer.contents", [SC.image get: @"PBFourUpCapturePageOverlay"],
nil]],
nil]],
@"branding", [SCImageView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 1920.0 ),
@"imageBinding", @"PB.brandingImage",
nil]],
nil]],
@"fourUpCaptureThreePage", [SCPage page: [_DICT:
@"outlets", [_ARRAY: @"body", @"branding",nil],
@"body", [SCView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 1920.0 ),
@"rootLayer.contents", [SC.image get: @"PBFourUpCaptureThreePage"],
@"outlets", [_ARRAY: @"viewer", nil],
@"viewer", [SCView view: [_DICT:
@"frame", _RECT( 188.0, 894.0, 640.0, 480.0 ),
@"outlets", [_ARRAY: @"fourUpTopLeft", @"fourUpTopRight", @"fourUpBottomRight", nil],
@"fourUpTopLeft", [PBOpenGLCaptureView view: [_DICT:
@"frame", _RECT( 0.0, 246.0, 302.0, 234.0 ),
@"shaderTypeBinding", @"PB.effectIndex",
@"rootLayer.opacity", _FLOAT( 0.5 ),
nil]],
@"fourUpTopRight", [PBOpenGLCaptureView view: [_DICT:
@"frame", _RECT( 317.0, 246.0, 302.0, 234.0 ),
@"shaderTypeBinding", @"PB.effectIndex",
@"rootLayer.opacity", _FLOAT( 0.5 ),
nil]],
@"fourUpBottomRight", [PBOpenGLCaptureView view: [_DICT:
@"frame", _RECT( 317.0, 0.0, 302.0, 234.0 ),
@"shaderTypeBinding", @"PB.effectIndex",
@"rootLayer.opacity", _FLOAT( 0.5 ),
nil]],
nil]],
nil]],
@"branding", [SCImageView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 1920.0 ),
@"imageBinding", @"PB.brandingImage",
nil]],
nil]],
@"fourUpCaptureTwoPage", [SCPage page: [_DICT:
@"outlets", [_ARRAY: @"body", @"branding",nil],
@"body", [SCView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 1920.0 ),
@"rootLayer.contents", [SC.image get: @"PBFourUpCaptureTwoPage"],
@"outlets", [_ARRAY: @"viewer", nil],
@"viewer", [SCView view: [_DICT:
@"frame", _RECT( 188.0, 894.0, 640.0, 480.0 ),
@"outlets", [_ARRAY: @"fourUpTopLeft", @"fourUpTopRight", nil],
@"fourUpTopLeft", [PBOpenGLCaptureView view: [_DICT:
@"frame", _RECT( 0.0, 246.0, 302.0, 234.0 ),
@"shaderTypeBinding", @"PB.effectIndex",
@"rootLayer.opacity", _FLOAT( 0.5 ),
nil]],
@"fourUpTopRight", [PBOpenGLCaptureView view: [_DICT:
@"frame", _RECT( 317.0, 246.0, 302.0, 234.0 ),
@"shaderTypeBinding", @"PB.effectIndex",
@"rootLayer.opacity", _FLOAT( 0.5 ),
nil]],
nil]],
nil]],
@"branding", [SCImageView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 1920.0 ),
@"imageBinding", @"PB.brandingImage",
nil]],
nil]],
@"fourUpCaptureOnePage", [SCPage page: [_DICT:
@"outlets", [_ARRAY: @"body", @"branding",nil],
@"body", [SCView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 1920.0 ),
@"rootLayer.contents", [SC.image get: @"PBFourUpCaptureOnePage"],
@"outlets", [_ARRAY: @"viewer", nil],
@"viewer", [SCView view: [_DICT:
@"frame", _RECT( 188.0, 894.0, 640.0, 480.0 ),
@"outlets", [_ARRAY: @"fourUpTopLeft", nil],
@"fourUpTopLeft", [PBOpenGLCaptureView view: [_DICT:
@"frame", _RECT( 0.0, 246.0, 302.0, 234.0 ),
@"shaderTypeBinding", @"PB.effectIndex",
@"rootLayer.opacity", _FLOAT( 0.5 ),
nil]],
nil]],
nil]],
@"branding", [SCImageView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 1920.0 ),
@"imageBinding", @"PB.brandingImage",
nil]],
nil]],
@"fourUpCapturingTopLeftPage", [SCPage page: [_DICT:
@"outlets", [_ARRAY: @"body", @"branding",nil],
@"body", [SCView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 1920.0 ),
@"rootLayer.contents", [SC.image get: @"PBFourUpCapturingPage"],
@"outlets", [_ARRAY: @"viewer", nil],
@"viewer", [SCView view: [_DICT:
@"frame", _RECT( 188.0, 894.0, 640.0, 480.0 ),
@"outlets", [_ARRAY: @"fourUpTopLeft", @"fourUpTopRight", nil],
@"fourUpTopLeft", [SCImageView view: [_DICT:
@"frame", _RECT( 0.0, 246.0, 302.0, 234.0 ),
@"imageBinding", @"PB.lastTopLeftCaptureImage",
nil]],
@"fourUpTopRight", [PBOpenGLCaptureView view: [_DICT:
@"frame", _RECT( 317.0, 246.0, 302.0, 234.0 ),
@"shaderTypeBinding", @"PB.effectIndex",
@"rootLayer.opacity", _FLOAT( 0.5 ),
nil]],
nil]],
nil]],
@"branding", [SCImageView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 1920.0 ),
@"imageBinding", @"PB.brandingImage",
nil]],
nil]],
@"fourUpCapturingTopRightPage", [SCPage page: [_DICT:
@"outlets", [_ARRAY: @"body", @"branding",nil],
@"body", [SCView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 1920.0 ),
@"rootLayer.contents", [SC.image get: @"PBFourUpCapturingPage"],
@"outlets", [_ARRAY: @"viewer", nil],
@"viewer", [SCView view: [_DICT:
@"frame", _RECT( 188.0, 894.0, 640.0, 480.0 ),
@"outlets", [_ARRAY: @"fourUpTopLeft", @"fourUpTopRight", @"fourUpBottomRight", nil],
@"fourUpTopLeft", [SCImageView view: [_DICT:
@"frame", _RECT( 0.0, 246.0, 302.0, 234.0 ),
@"imageBinding", @"PB.lastTopLeftCaptureImage",
nil]],
@"fourUpTopRight", [SCImageView view: [_DICT:
@"frame", _RECT( 317.0, 246.0, 302.0, 234.0 ),
@"imageBinding", @"PB.lastTopRightCaptureImage",
nil]],
@"fourUpBottomRight", [PBOpenGLCaptureView view: [_DICT:
@"frame", _RECT( 317.0, 0.0, 302.0, 234.0 ),
@"shaderTypeBinding", @"PB.effectIndex",
@"rootLayer.opacity", _FLOAT( 0.5 ),
nil]],
nil]],
nil]],
@"branding", [SCImageView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 1920.0 ),
@"imageBinding", @"PB.brandingImage",
nil]],
nil]],
@"fourUpCapturingBottomRightPage", [SCPage page: [_DICT:
@"outlets", [_ARRAY: @"body", @"branding",nil],
@"body", [SCView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 1920.0 ),
@"rootLayer.contents", [SC.image get: @"PBFourUpCapturingPage"],
@"outlets", [_ARRAY: @"viewer", nil],
@"viewer", [SCView view: [_DICT:
@"frame", _RECT( 188.0, 894.0, 640.0, 480.0 ),
@"outlets", [_ARRAY: @"fourUpTopLeft", @"fourUpTopRight", @"fourUpBottomLeft", @"fourUpBottomRight", nil],
@"fourUpTopLeft", [SCImageView view: [_DICT:
@"frame", _RECT( 0.0, 246.0, 302.0, 234.0 ),
@"imageBinding", @"PB.lastTopLeftCaptureImage",
nil]],
@"fourUpTopRight", [SCImageView view: [_DICT:
@"frame", _RECT( 317.0, 246.0, 302.0, 234.0 ),
@"imageBinding", @"PB.lastTopRightCaptureImage",
nil]],
@"fourUpBottomLeft", [PBOpenGLCaptureView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 302.0, 234.0 ),
@"shaderTypeBinding", @"PB.effectIndex",
@"rootLayer.opacity", _FLOAT( 0.5 ),
nil]],
@"fourUpBottomRight", [SCImageView view: [_DICT:
@"frame", _RECT( 317.0, 0.0, 302.0, 234.0 ),
@"imageBinding", @"PB.lastBottomRightCaptureImage",
nil]],
nil]],
nil]],
@"branding", [SCImageView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 1920.0 ),
@"imageBinding", @"PB.brandingImage",
nil]],
nil]],
@"fourUpPrintPage", [SCPage page: [_DICT:
@"outlets", [_ARRAY: @"body", @"branding",nil],
@"body", [SCView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 1920.0 ),
@"rootLayer.contents", [SC.image get: @"PBFourUpPrintPage"],
@"outlets", [_ARRAY: @"viewer", @"pictureFrame", nil],
@"viewer", [SCView view: [_DICT:
@"frame", _RECT( 188.0, 894.0, 640.0, 480.0 ),
@"outlets", [_ARRAY: @"fourUpTopLeft", @"fourUpTopRight", @"fourUpBottomLeft", @"fourUpBottomRight", nil],
@"fourUpTopLeft", [SCImageView view: [_DICT:
@"frame", _RECT( 0.0, 246.0, 302.0, 234.0 ),
@"imageBinding", @"PB.lastTopLeftCaptureImage",
nil]],
@"fourUpTopRight", [SCImageView view: [_DICT:
@"frame", _RECT( 317.0, 246.0, 302.0, 234.0 ),
@"imageBinding", @"PB.lastTopRightCaptureImage",
nil]],
@"fourUpBottomLeft", [SCImageView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 302.0, 234.0 ),
@"imageBinding", @"PB.lastBottomLeftCaptureImage",
nil]],
@"fourUpBottomRight", [SCImageView view: [_DICT:
@"frame", _RECT( 317.0, 0.0, 302.0, 234.0 ),
@"imageBinding", @"PB.lastBottomRightCaptureImage",
nil]],
nil]],
@"pictureFrame", [SCImageView view: [_DICT:
@"frame", _RECT( 188.0, 878, 705.0, 510.0 ),
@"imageBinding", @"PB.fourUpPictureFrameImage",
nil]],
nil]],
@"branding", [SCImageView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 1920.0 ),
@"imageBinding", @"PB.brandingImage",
nil]],
nil]],
@"fourUpCopiesPage", [SCPage page: [_DICT:
@"outlets", [_ARRAY: @"body", @"branding",nil],
@"body", [SCView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 1920.0 ),
@"rootLayer.contents", [SC.image get: @"PBFourUpCopiesPage"],
@"outlets", [_ARRAY: @"viewer", @"pictureFrame", nil],
@"viewer", [SCView view: [_DICT:
@"frame", _RECT( 188.0, 894.0, 640.0, 480.0 ),
@"outlets", [_ARRAY: @"fourUpTopLeft", @"fourUpTopRight", @"fourUpBottomLeft", @"fourUpBottomRight", nil],
@"fourUpTopLeft", [SCImageView view: [_DICT:
@"frame", _RECT( 0.0, 246.0, 302.0, 234.0 ),
@"imageBinding", @"PB.lastTopLeftCaptureImage",
nil]],
@"fourUpTopRight", [SCImageView view: [_DICT:
@"frame", _RECT( 317.0, 246.0, 302.0, 234.0 ),
@"imageBinding", @"PB.lastTopRightCaptureImage",
nil]],
@"fourUpBottomLeft", [SCImageView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 302.0, 234.0 ),
@"imageBinding", @"PB.lastBottomLeftCaptureImage",
nil]],
@"fourUpBottomRight", [SCImageView view: [_DICT:
@"frame", _RECT( 317.0, 0.0, 302.0, 234.0 ),
@"imageBinding", @"PB.lastBottomRightCaptureImage",
nil]],
nil]],
@"pictureFrame", [SCImageView view: [_DICT:
@"frame", _RECT( 188.0, 878, 705.0, 510.0 ),
@"imageBinding", @"PB.fourUpPictureFrameImage",
nil]],
nil]],
@"branding", [SCImageView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 1920.0 ),
@"imageBinding", @"PB.brandingImage",
nil]],
nil]],
@"movieCapturePage", [SCPage page: [_DICT:
@"outlets", [_ARRAY: @"body", @"branding",nil],
@"body", [SCView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 1920.0 ),
@"rootLayer.contents", [SC.image get: @"PBMovieCapturePage"],
@"outlets", [_ARRAY: @"viewer", @"effects", @"overlay", nil],
@"viewer", [PBOpenGLCaptureView view: [_DICT:
@"frame", _RECT( 218.0, 890.0, 640.0, 480.0 ),
@"rootLayer.masksToBounds", _YES,
@"shaderTypeBinding", @"PB.effectIndex",
nil]],
@"effects", [SCScrollView view: [_DICT:
@"frame", _RECT( 300.0, 60.0, 640.0, 770.0 ),
@"outlets", [_ARRAY: @"chooser", nil],
@"chooser", [SCCarouselView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 640.0, 770.0 ),
@"isHorizontal", _NO,
@"visibleViewIndexBinding", @"PB.effectIndex",
@"outlets", [_ARRAY:
@"none", @"blur", @"brighten", @"colorInvert", @"dilation", @"edgeDection", @"erosion",
@"extractColor", @"fog", @"grayInvert", @"heatSig", @"saturation", @"sepia",
@"sharpen", @"sky", @"toon", nil],
@"none", [PBSingleCaptureEffectView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 640.0, 160.0 ),
@"shaderName", @"Normal",
@"shaderType", _INT( kShaderNone ),
nil]],
@"blur", [PBSingleCaptureEffectView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 640.0, 160.0 ),
@"shaderName", @"Blur",
@"shaderType", _INT( kShaderBlur ),
nil]],
@"brighten", [PBSingleCaptureEffectView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 640.0, 160.0 ),
@"shaderName", @"Brighten",
@"shaderType", _INT( kShaderBrighten ),
nil]],
@"colorInvert", [PBSingleCaptureEffectView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 640.0, 160.0 ),
@"shaderName", @"Invert Color",
@"shaderType", _INT( kShaderColorInvert ),
nil]],
@"dilation", [PBSingleCaptureEffectView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 640.0, 160.0 ),
@"shaderName", @"Comic Book",
@"shaderType", _INT( kShaderDilation ),
nil]],
@"edgeDection", [PBSingleCaptureEffectView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 640.0, 160.0 ),
@"shaderName", @"Edge Detection",
@"shaderType", _INT( kShaderEdgeDection ),
nil]],
@"erosion", [PBSingleCaptureEffectView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 640.0, 160.0 ),
@"shaderName", @"Erosion",
@"shaderType", _INT( kShaderErosion ),
nil]],
@"extractColor", [PBSingleCaptureEffectView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 640.0, 160.0 ),
@"shaderName", @"Distort",
@"shaderType", _INT( kShaderExtractColor ),
nil]],
@"fog", [PBSingleCaptureEffectView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 640.0, 160.0 ),
@"shaderName", @"Fog",
@"shaderType", _INT( kShaderFog ),
nil]],
@"grayInvert", [PBSingleCaptureEffectView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 640.0, 160.0 ),
@"shaderName", @"Dot Screen",
@"shaderType", _INT( kShaderGrayInvert ),
nil]],
@"heatSig", [PBSingleCaptureEffectView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 640.0, 160.0 ),
@"shaderName", @"Newspaper",
@"shaderType", _INT( kShaderHeatSig ),
nil]],
@"saturation", [PBSingleCaptureEffectView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 640.0, 160.0 ),
@"shaderName", @"Zoom Blur",
@"shaderType", _INT( kShaderSaturation ),
nil]],
@"sepia", [PBSingleCaptureEffectView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 640.0, 160.0 ),
@"shaderName", @"Sepia",
@"shaderType", _INT( kShaderSepia ),
nil]],
@"sharpen", [PBSingleCaptureEffectView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 640.0, 160.0 ),
@"shaderName", @"Sharpen",
@"shaderType", _INT( kShaderSharpen ),
nil]],
@"sky", [PBSingleCaptureEffectView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 640.0, 160.0 ),
@"shaderName", @"Sky",
@"shaderType", _INT( kShaderSky ),
nil]],
@"toon", [PBSingleCaptureEffectView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 640.0, 160.0 ),
@"shaderName", @"Toon",
@"shaderType", _INT( kShaderToon ),
nil]],
nil]],
nil]],
@"overlay", [SCView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 1920.0 ),
@"rootLayer.contents", [SC.image get: @"PBSingleCapturePageOverlay"],
nil]],
nil]],
@"branding", [SCImageView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 1920.0 ),
@"imageBinding", @"PB.brandingImage",
nil]],
nil]],
@"movieCaptureThreePage", [SCPage page: [_DICT:
@"outlets", [_ARRAY: @"body", @"branding",nil],
@"body", [SCView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 1920.0 ),
@"rootLayer.contents", [SC.image get: @"PBMovieCaptureThreePage"],
@"outlets", [_ARRAY: @"viewer", nil],
@"viewer", [PBOpenGLCaptureView view: [_DICT:
@"frame", _RECT( 218.0, 890.0, 640.0, 480.0 ),
@"rootLayer.masksToBounds", _YES,
@"shaderTypeBinding", @"PB.effectIndex",
nil]],
nil]],
@"branding", [SCImageView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 1920.0 ),
@"imageBinding", @"PB.brandingImage",
nil]],
nil]],
@"movieCaptureTwoPage", [SCPage page: [_DICT:
@"outlets", [_ARRAY: @"body", @"branding",nil],
@"body", [SCView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 1920.0 ),
@"rootLayer.contents", [SC.image get: @"PBMovieCaptureTwoPage"],
@"outlets", [_ARRAY: @"viewer", nil],
@"viewer", [PBOpenGLCaptureView view: [_DICT:
@"frame", _RECT( 218.0, 890.0, 640.0, 480.0 ),
@"rootLayer.masksToBounds", _YES,
@"shaderTypeBinding", @"PB.effectIndex",
nil]],
nil]],
@"branding", [SCImageView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 1920.0 ),
@"imageBinding", @"PB.brandingImage",
nil]],
nil]],
@"movieCaptureOnePage", [SCPage page: [_DICT:
@"outlets", [_ARRAY: @"body", @"branding",nil],
@"body", [SCView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 1920.0 ),
@"rootLayer.contents", [SC.image get: @"PBMovieCaptureOnePage"],
@"outlets", [_ARRAY: @"viewer", nil],
@"viewer", [PBOpenGLCaptureView view: [_DICT:
@"frame", _RECT( 218.0, 890.0, 640.0, 480.0 ),
@"rootLayer.masksToBounds", _YES,
@"shaderTypeBinding", @"PB.effectIndex",
nil]],
nil]],
@"branding", [SCImageView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 1920.0 ),
@"imageBinding", @"PB.brandingImage",
nil]],
nil]],
@"movieCapturingPage", [SCPage page: [_DICT:
@"outlets", [_ARRAY: @"body", @"branding",nil],
@"body", [SCView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 1920.0 ),
@"rootLayer.contents", [SC.image get: @"PBMovieCapturingPage"],
@"outlets", [_ARRAY: @"viewer", nil],
@"viewer", [PBOpenGLCaptureView view: [_DICT:
@"frame", _RECT( 218.0, 890.0, 640.0, 480.0 ),
@"rootLayer.masksToBounds", _YES,
@"shaderTypeBinding", @"PB.effectIndex",
nil]],
nil]],
@"branding", [SCImageView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 1920.0 ),
@"imageBinding", @"PB.brandingImage",
nil]],
nil]],
@"moviePlaybackPage", [SCPage page: [_DICT:
@"outlets", [_ARRAY: @"body", @"branding",nil],
@"body", [SCView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 1920.0 ),
@"rootLayer.contents", [SC.image get: @"PBMoviePlaybackPage"],
@"outlets", [_ARRAY: @"viewer", nil],
@"viewer", [PBMoviePlaybackView view: [_DICT:
@"frame", _RECT( 218.0, 890.0, 640.0, 480.0 ),
@"rootLayer.masksToBounds", _YES,
@"movieBinding", @"PB.lastMovie",
@"shaderTypeBinding", @"PB.lastMovieShaderType",
nil]],
nil]],
@"branding", [SCImageView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 1920.0 ),
@"imageBinding", @"PB.brandingImage",
nil]],
nil]],
@"mainPage", [SCPage page: [_DICT:
@"outlets", [_ARRAY: @"body", nil],
@"body", [PBMainView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 1920.0 ),
@"outlets", [_ARRAY: @"newButton", @"controlBar", @"viewer", @"activeRoll", @"inspector", nil],
@"newButton", [PBNewRollButton view: [_DICT:
@"frame", _RECT( 15.0, 15.0, 270.0, 90.0 ),
@"target", @"PB",
@"action", @"newRoll:",
nil]],
@"controlBar", [PBControlBar view: [_DICT:
@"frame", _RECT( 0.0, 660.0, 1080.0, 150.0 ),
@"outlets", [_ARRAY: @"effectsButton", @"captureMode", @"countdownPanel", @"captureButton", @"printButton", nil],
@"effectsButton", [PBEffectsButton view: [_DICT:
@"frame", _RECT( 795.0, 45.0, 270.0, 60.0 ),
@"target", @"PB",
@"action", @"effectsChooser:",
@"opacityBinding", @"PB.controlBarControlOpacity",
nil]],
@"captureMode", [PBCaptureModeButton view: [_DICT:
@"frame", _RECT( 15.0, 45.0, 270.0, 60.0 ),
@"opacityBinding", @"PB.controlBarControlOpacity",
nil]],
@"countdownPanel", [SCView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 150.0 ),
@"rootLayer.backgroundColor", BLACKCOLOR,
@"opacityBinding", @"PB.countdownPanelOpacity",
nil]],
@"captureButton", [PBRoundButton view: [_DICT:
@"frame", _RECT( 480.0, 15.0, 120.0, 120.0 ),
@"target", @"PB",
@"action", @"capture:",
@"rootLayer.backgroundColor", REDCOLOR,
@"imageLayer.contents", (id)PBCaptureCameraIcon,
nil]],
@"printButton", [PBRoundButton view: [_DICT:
@"frame", _RECT( 930.0, 15.0, 120.0, 120.0 ),
@"target", @"PB",
@"action", @"showPrintInspector:",
@"rootLayer.backgroundColor", BLUECOLOR,
@"imageLayer.contents", (id)PBPrintIcon,
nil]],
nil]],
@"viewer", [SCTabView view: [_DICT:
@"frame", _RECT( 0.0, 810.0, 1080.0, 780.0 ),
@"rootLayer.name", @"viewer",
@"rootLayer.backgroundColor", BLACKCOLOR, // FIXME: make this settable on the view
@"nowShowingBinding", @"PB.viewerTab",
@"outlets", [_ARRAY: @"captureTab", @"effectChooserTab", @"editorTab", nil],
@"captureTab", [PBCaptureView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 780.0 ),
@"rootLayer.name", @"capture",
@"visibleViewIndexBinding", @"PB.captureTab",
@"outlets", [_ARRAY: @"single", @"fourUp", @"movie", nil],
@"single", [PBSingleCaptureView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 780.0 ),
@"rootLayer.backgroundColor", GREENCOLOR,
@"captureSessionBinding", @"PB.captureSession",
nil]],
@"fourUp", [PBFourUpCaptureView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 780.0 ),
@"rootLayer.backgroundColor", REDCOLOR,
@"captureSessionBinding", @"PB.captureSession",
nil]],
@"movie", [PBMovieCaptureView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 780.0 ),
@"rootLayer.backgroundColor", BLUECOLOR,
@"captureSessionBinding", @"PB.captureSession",
nil]],
nil]],
@"effectChooserTab", [SCCarouselView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 780.0 ),
@"rootLayer.backgroundColor", GRAYCOLOR,
@"visibleViewIndexBinding", @"PB.effectTab",
@"outlets", [_ARRAY: @"first", @"second", @"third", nil],
@"first", [PBEffectsChooser view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 780.0 ),
@"rootLayer.backgroundColor", WHITECOLOR,
@"captureSessionBinding", @"PB.captureSession",
nil]],
@"second", [PBEffectsChooser view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 780.0 ),
@"rootLayer.backgroundColor", BLUECOLOR,
@"captureSessionBinding", @"PB.captureSession",
nil]],
@"third", [PBEffectsChooser view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 780.0 ),
@"rootLayer.backgroundColor", BLACKCOLOR,
@"captureSessionBinding", @"PB.captureSession",
nil]],
nil]],
@"editorTab", [PBEditView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 780.0 ),
@"rootLayer.backgroundColor", GRAYCOLOR,
@"outlets", [_ARRAY: @"image", @"tool", nil],
@"image", [PBImageView view: [_DICT:
@"frame", _RECT( 15.0, 15.0, 1050.0, 750.0 ),
@"rootLayer.backgroundColor", WHITECOLOR,
@"rootLayer.contents", PBIcons,
nil]],
@"tool", [PBToolView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 780.0 ),
@"rootLayer.name", @"tool",
@"nowShowing", @"transform",
@"outlets", [_ARRAY: @"transformTab", @"pencilTab", @"textTab", @"stampTab", nil],
@"transformTab", [PBTransformTool view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 780.0 ),
nil]],
@"pencilTab", [PBPencilTool view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 780.0 ),
nil]],
@"textTab", [PBTextTool view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 780.0 ),
nil]],
@"stampTab", [PBStampTool view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 1080.0, 780.0 ),
nil]],
nil]],
nil]],
nil]],
@"activeRoll", [PBRollView view: [_DICT:
@"frame", _RECT( 0.0, 120.0, 300.0, 540.0 ),
@"rootLayer.backgroundColor", REDCOLOR,
nil]],
@"inspector", [SCTabView view: [_DICT:
@"frame", _RECT( 300.0, 0.0, 780.0, 660.0 ),
@"nowShowing", @"transform",
@"outlets", [_ARRAY:
@"archivedTab", @"transformTab", @"pencilTab", @"textTab", @"adjustTab",
@"stampTab", @"frameTab", @"trashTab", @"printTab",
nil],
@"archivedTab", [SCTouchBrowserView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 780.0, 660.0 ),
@"header", [PBArchivedPager view],
@"content", [SCTouchScrollView view: [_DICT:
@"outlets", [_ARRAY: @"collection", nil],
@"collection", [SCTouchCollectionView view: [_DICT:
@"exampleView", [PBRollView class],
nil]],
nil]],
nil]],
@"transformTab", [SCTouchBrowserView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 780.0, 660.0 ),
@"startPage", @"move",
@"outlets", [_ARRAY: @"pathHeader", @"movePage", nil],
@"pathHeader", [PBPathView view: [_DICT:
@"size", _SIZE( 780.0, 60.0 ),
@"rootLayer.backgroundColor", BLUECOLOR,
nil]],
@"movePage", [SCTouchPageView view: [_DICT:
@"titleBinding", @"PB.windowTitle",
@"rootLayer.backgroundColor", GRAYCOLOR,
@"frame", _RECT( 0.0, 0.0, 780.0, 600.0 ),
@"outlets", [_ARRAY: @"enabledGroup", @"transformGroup", @"resetGroup", nil],
@"enabledGroup", [SCTouchControlGroupView view: [_DICT:
@"size", _SIZE( 780.0, 90.0 ),
@"outlets", [_ARRAY: @"inUse", nil],
@"inUse", [SCTouchToggleButtonView view: [_DICT:
@"label", @"Move",
nil]],
nil]],
@"transformGroup", [SCTouchControlGroupView view: [_DICT:
@"size", _SIZE( 780.0, 270.0 ),
@"outlets", [_ARRAY: @"scale", @"rotation", @"position", nil],
@"scale", [SCTouchSliderView view],
@"rotation", [SCTouchSliderView view],
@"position", [SCTouchPositionView view],
@"headerText", @"Click and drag on the picture to position and rotate it.",
nil]],
@"resetGroup", [SCTouchControlGroupView view: [_DICT:
@"size", _SIZE( 780.0, 90.0 ),
@"outlets", [_ARRAY: @"reset", nil],
@"reset", [SCTouchButtonView view: [_DICT:
@"title", @"Reset all transformations",
nil]],
nil]],
nil]],
nil]],
@"pencilTab", [SCTouchBrowserView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 780.0, 660.0 ),
@"header", [PBPathView view],
@"content", [SCTouchTabView view: [_DICT:
@"tabs", [_ARRAY:
[SCTouchPageView view: [_DICT:
@"title", @"Draw",
@"groups", [_ARRAY:
[SCTouchControlGroupView view: [_DICT:
@"outlets", [_ARRAY: @"inUse", nil],
@"inUse", [SCTouchToggleButtonView view: [_DICT:
@"label", @"Draw",
nil]],
nil]],
[SCTouchControlGroupView view: [_DICT:
@"outlets", [_ARRAY: @"brush", @"size", @"color", nil],
@"brush", [SCTouchListSelectionView view],
@"size", [SCTouchListSelectionView view],
@"color", [SCTouchListSelectionView view],
@"headerText", @"Click and drag on the picture to draw. Flip pen and press to erase.",
nil]],
[SCTouchControlGroupView view: [_DICT:
@"outlets", [_ARRAY: @"pressureSensitive", @"opacity", @"mode", nil],
@"pressureSensitive", [SCTouchToggleButtonView view],
@"opacity", [SCTouchSliderView view],
@"mode", [SCTouchListSelectionView view],
nil]],
[SCTouchControlGroupView view: [_DICT:
@"outlets", [_ARRAY: @"reset", nil],
@"reset", [SCTouchButtonView view: [_DICT:
@"title", @"Erase drawing layer",
nil]],
nil]],
nil],
nil]],
[SCTouchPageView view: [_DICT:
@"title", @"Brush",
@"groups", [_ARRAY:
[SCTouchSelectionListView view],
nil],
nil]],
[SCTouchPageView view: [_DICT:
@"title", @"Size",
@"groups", [_ARRAY:
[SCTouchSelectionListView view],
nil],
nil]],
[PBColorPage view],
[PBTouchColorPicker view], // must immediately follow PBColorPage
nil],
nil]],
nil]],
@"textTab", [SCTouchBrowserView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 780.0, 660.0 ),
@"header", [PBPathView view],
@"content", [SCTouchTabView view: [_DICT:
@"tabs", [_ARRAY:
[SCTouchPageView view: [_DICT:
@"title", @"Text",
@"groups", [_ARRAY:
[SCTouchControlGroupView view: [_DICT:
@"outlets", [_ARRAY: @"inUse", nil],
@"inUse", [SCTouchToggleButtonView view: [_DICT:
@"label", @"Text",
nil]],
nil]],
[SCTouchControlGroupView view: [_DICT:
@"outlets", [_ARRAY: @"font", @"style", @"size", @"alignment", @"color", @"opacity", @"blend", nil],
@"font", [SCTouchListSelectionView view],
@"style", [SCTouchSegmentView view],
@"size", [SCTouchSliderView view],
@"alignment", [SCTouchSegmentView view],
@"color", [SCTouchListSelectionView view],
@"opacity", [SCTouchSliderView view],
@"blend", [SCTouchListSelectionView view],
nil]],
[SCTouchControlGroupView view: [_DICT:
@"outlets", [_ARRAY: @"dropShadow", @"color", @"opacity", @"blur", @"offset", @"angle", nil],
@"dropShadow", [SCTouchToggleButtonView view],
@"color", [SCTouchListSelectionView view],
@"opacity", [SCTouchSliderView view],
@"blur", [SCTouchSliderView view],
@"offset", [SCTouchSliderView view],
@"angle", [SCTouchSliderView view],
nil]],
[SCTouchControlGroupView view: [_DICT:
@"outlets", [_ARRAY: @"tracking", @"lineSpacing", nil],
@"tracking", [SCTouchSliderView view],
@"lineSpacing", [SCTouchSliderView view],
nil]],
[SCTouchControlGroupView view: [_DICT:
@"outlets", [_ARRAY: @"reset", nil],
@"reset", [SCTouchButtonView view: [_DICT:
@"title", @"Erase text layer",
nil]],
nil]],
nil],
nil]],
[SCTouchPageView view: [_DICT:
@"title", @"Font",
@"groups", [_ARRAY:
[SCTouchSelectionListView view], // FIXME: this should have a font example view
nil],
nil]],
[SCTouchPageView view: [_DICT:
@"title", @"Blend Mode",
@"groups", [_ARRAY:
[SCTouchSelectionListView view],
nil],
nil]],
// font color
[PBColorPage view],
[PBTouchColorPicker view], // must immediately follow PBColorPage
// drop shadow color
[PBColorPage view],
[PBTouchColorPicker view], // must immediately follow PBColorPage
nil],
nil]],
nil]],
@"adjustTab", [SCTouchBrowserView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 780.0, 660.0 ),
@"header", [PBPathView view],
@"content", [SCTouchTabView view: [_DICT:
@"tabs", [_ARRAY:
[SCTouchPageView view: [_DICT:
@"title", @"Adjust",
@"groups", [_ARRAY:
[SCTouchControlGroupView view: [_DICT:
@"outlets", [_ARRAY: @"inUse", nil],
@"inUse", [SCTouchToggleButtonView view: [_DICT:
@"label", @"Adjust",
nil]],
nil]],
[SCTouchControlGroupView view: [_DICT:
@"outlets", [_ARRAY: @"brightness", @"contrast", nil],
@"brightness", [SCTouchSliderView view],
@"contrast", [SCTouchSliderView view],
@"headerText", @"Brightness and Contrast",
nil]],
[SCTouchControlGroupView view: [_DICT:
@"outlets", [_ARRAY: @"saturation", @"temperature", @"tint", nil],
@"saturation", [SCTouchSliderView view],
@"temperature", [SCTouchSliderView view],
@"tint", [SCTouchSliderView view],
@"headerText", @"Saturation, Temperature, and Tint",
nil]],
[SCTouchControlGroupView view: [_DICT:
@"outlets", [_ARRAY: @"sharpness", @"noise", nil],
@"sharpness", [SCTouchSliderView view],
@"noise", [SCTouchSliderView view],
@"headerText", @"Sharpness and Noise",
nil]],
[SCTouchControlGroupView view: [_DICT:
@"outlets", [_ARRAY: @"exposure", @"levels", nil],
@"exposure", [SCTouchSliderView view],
@"levels", [SCTouchButtonView view],
@"headerText", @"Exposure and Levels",
nil]],
[SCTouchControlGroupView view: [_DICT:
@"outlets", [_ARRAY: @"reset", nil],
@"reset", [SCTouchButtonView view: [_DICT:
@"title", @"Reset image adjustments",
nil]],
nil]],
nil],
nil]],
[SCTouchPageView view: [_DICT:
@"title", @"Levels",
@"groups", [_ARRAY:
[SCTouchControlGroupView view: [_DICT:
@"outlets", [_ARRAY: @"reset", nil],
@"reset", [SCTouchButtonView view: [_DICT:
@"title", @"Reset levels",
nil]],
nil]],
[SCTouchControlGroupView view: [_DICT:
@"outlets", [_ARRAY: @"levels", nil],
@"levels", [PBTouchLevels view],
nil]],
nil],
nil]],
nil],
nil]],
nil]],
@"stampTab", [SCTouchBrowserView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 780.0, 660.0 ),
@"header", [PBPathView view],
@"content", [SCTouchTabView view: [_DICT:
@"tabs", [_ARRAY:
[SCTouchPageView view: [_DICT:
@"title", @"Stamp",
@"groups", [_ARRAY:
[SCTouchControlGroupView view: [_DICT:
@"outlets", [_ARRAY: @"inUse", nil],
@"inUse", [SCTouchToggleButtonView view: [_DICT:
@"label", @"Stamp",
nil]],
nil]],
[SCTouchControlGroupView view: [_DICT:
@"outlets", [_ARRAY: @"stamp", @"scale", @"rotation", @"position", @"color", @"opacity", @"blend",nil],
@"stamp", [SCTouchListSelectionView view],
@"scale", [SCTouchSliderView view],
@"rotation", [SCTouchSliderView view],
@"position", [SCTouchPositionView view],
@"color", [SCTouchListSelectionView view],
@"opacity", [SCTouchSliderView view],
@"blend", [SCTouchListSelectionView view],
@"headerText", @"Click and drag on the stamp to position and rotate it.",
nil]],
[SCTouchControlGroupView view: [_DICT:
@"outlets", [_ARRAY: @"dropShadow", @"color", @"opacity", @"blur", @"offset", @"angle", nil],
@"dropShadow", [SCTouchToggleButtonView view],
@"color", [SCTouchListSelectionView view],
@"opacity", [SCTouchSliderView view],
@"blur", [SCTouchSliderView view],
@"offset", [SCTouchSliderView view],
@"angle", [SCTouchSliderView view],
nil]],
[SCTouchControlGroupView view: [_DICT:
@"outlets", [_ARRAY: @"reset", nil],
@"reset", [SCTouchButtonView view: [_DICT:
@"title", @"Reset stamp to default settings",
nil]],
nil]],
nil],
nil]],
[SCTouchPageView view: [_DICT:
@"title", @"Stamp",
@"groups", [_ARRAY:
[SCTouchSelectionListView view],
nil],
nil]],
[SCTouchPageView view: [_DICT:
@"title", @"Blend Mode",
@"groups", [_ARRAY:
[SCTouchSelectionListView view],
nil],
nil]],
// stamp color
[PBColorPage view],
[PBTouchColorPicker view], // must immediately follow PBColorPage
// drop shadow color
[PBColorPage view],
[PBTouchColorPicker view], // must immediately follow PBColorPage
nil],
nil]],
nil]],
@"frameTab", [SCTouchBrowserView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 780.0, 660.0 ),
@"header", [PBPathView view],
@"content", [SCTouchTabView view: [_DICT:
@"tabs", [_ARRAY:
[SCTouchPageView view: [_DICT:
@"title", @"Frame",
@"groups", [_ARRAY:
[SCTouchControlGroupView view: [_DICT:
@"outlets", [_ARRAY: @"inUse", nil],
@"inUse", [SCTouchToggleButtonView view: [_DICT:
@"label", @"Frame",
nil]],
nil]],
[SCTouchControlGroupView view: [_DICT:
@"outlets", [_ARRAY: @"shape", nil],
@"shape", [SCTouchListSelectionView view],
nil]],
[SCTouchControlGroupView view: [_DICT:
@"outlets", [_ARRAY: @"reset", nil],
@"reset", [SCTouchButtonView view: [_DICT:
@"title", @"Reset frame to default settings",
nil]],
nil]],
nil],
nil]],
[SCTouchPageView view: [_DICT:
@"title", @"Shape",
@"groups", [_ARRAY:
[SCTouchSelectionListView view],
nil],
nil]],
nil],
nil]],
nil]],
@"trashTab", [SCTouchBrowserView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 780.0, 660.0 ),
@"header", [PBPathView view],
@"content", [SCTouchTabView view: [_DICT:
@"tabs", [_ARRAY:
[SCTouchPageView view: [_DICT:
@"title", @"Trash",
@"groups", [_ARRAY:
[SCTouchControlGroupView view: [_DICT:
@"outlets", [_ARRAY: @"current", nil],
@"current", [SCTouchButtonView view: [_DICT:
@"title", @"Trash this photo or video", // FIXME: bind to the correctly formatted string
nil]],
nil]],
[SCTouchControlGroupView view: [_DICT:
@"outlets", [_ARRAY: @"roll", nil],
@"roll", [SCTouchButtonView view: [_DICT:
@"title", @"Trash the entire roll",
nil]],
nil]],
nil],
nil]],
nil],
nil]],
nil]],
@"printTab", [SCTouchBrowserView view: [_DICT:
@"frame", _RECT( 0.0, 0.0, 780.0, 660.0 ),
@"header", [PBPathView view],
@"content", [SCTouchTabView view: [_DICT:
@"tabs", [_ARRAY:
[SCTouchPageView view: [_DICT:
@"title", @"Print",
@"groups", [_ARRAY:
[SCTouchControlGroupView view: [_DICT:
@"outlets", [_ARRAY: @"copies", @"photos", nil],
@"copies", [SCTouchListSelectionView view],
@"photos", [SCTouchListSelectionView view],
nil]],
nil],
nil]],
[SCTouchPageView view: [_DICT:
@"title", @"Copies",
@"groups", [_ARRAY:
[SCTouchSelectionListView view],
nil],
nil]],
[SCTouchPageView view: [_DICT:
@"title", @"Photos",
@"groups", [_ARRAY:
[SCTouchSelectionListView view],
nil],
nil]],
nil],
nil]],
@"footer", [PBTouchPrintButton view],
nil]],
nil]],
nil]],
nil]],
nil]];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment