@STATIC1.0;p;14;SKAdjustment.jI;21;Foundation/CPObject.jI;20;Foundation/CPCoder.jI;19;AppKit/CGGeometry.jc;2072;


{var the_class = objj_allocateClassPair(CPObject, "SKLinearAdjustment"),
meta_class = _class_getMeta(the_class);the_class.ivars.splice(the_class.ivars.length, 0, new objj_ivar("_minimumValue"), new objj_ivar("_maximumValue"), new objj_ivar("_value"));
objj_registerClassPair(the_class);
objj_addClassForBundle(the_class, objj_getBundleWithPath(OBJJ_CURRENT_BUNDLE.path));
var class_methods = [];
class_methods[0] = new objj_method(sel_registerName("linearAdjustmentWithMinimumValue:maximumValue:"), function(self, _cmd, aMinimumPoint, aMaximumPoint)
{ with(self)
{
    return objj_msgSend(objj_msgSend(self, "alloc"), "initWithMinimumValue:maximumValue:", aMinimumPoint, aMaximumPoint);
}
});
var instance_methods = [];
instance_methods[0] = new objj_method(sel_registerName("initWithMinimumValue:maximumValue:"), function(self, _cmd, aMinimumPoint, aMaximumPoint)
{ with(self)
{
    self = objj_msgSendSuper({ receiver:self, super_class:objj_getClass("CPObject") }, "init");

    if (self)
    {
        _minimumValue = CGPointMakeCopy(aMinimumPoint);
        _maximumValue = CGPointMakeCopy(aMaximumPoint);
    }

    return self;
}
});
instance_methods[1] = new objj_method(sel_registerName("actualValueForProposedValue:"), function(self, _cmd, aValue)
{ with(self)
{
    return CGPointMake(MAX(MIN(aValue.x, _maximumValue.x), _minimumValue.x), MAX(MIN(aValue.y, _maximumValue.y), _minimumValue.y));
}
});
class_addMethods(the_class, instance_methods);
class_addMethods(meta_class, class_methods);
}

{
var the_class = objj_getClass("SKLinearAdjustment")
if(!the_class) objj_exception_throw(new objj_exception(OBJJClassNotFoundException, "*** Could not find definition for class \"SKLinearAdjustment\""));
var meta_class = _class_getMeta(the_class);var instance_methods = [];
instance_methods[0] = new objj_method(sel_registerName("copy"), function(self, _cmd)
{ with(self)
{
    return objj_msgSend(objj_msgSend(self, "class"), "linearAdjustmentWithMinimumValue:maximumValue:", _minimumValue, _maximumValue);
}
});
class_addMethods(the_class, instance_methods);
}

p;9;SKColor.jI;25;Foundation/CPDictionary.jI;21;Foundation/CPObject.jI;21;Foundation/CPString.jI;16;AppKit/CPColor.jc;44323;


SKColorAlphaAdjustmentName = "SKColorAlphaAdjustmentName";
SKColorAlphaModulationAdjustmentName = "SKColorAlphaModulationAdjustmentName";
SKColorAlphaOffsetAdjustmentName = "SKColorAlphaOffsetAdjustmentName";
SKColorBlueAdjustmentName = "SKColorBlueAdjustmentName";
SKColorBlueModulationAdjustmentName = "SKColorBlueModulationAdjustmentName";
SKColorBlueOffsetAdjustmentName = "SKColorBlueOffsetAdjustmentName";
SKColorComplementAdjustmentName = "SKColorComplementAdjustmentName";
SKColorGammaAdjustmentName = "SKColorGammaAdjustmentName";
SKColorGrayAdjustmentName = "SKColorGrayAdjustmentName";
SKColorGreenAdjustmentName = "SKColorGreenAdjustmentName";
SKColorGreenModulationAdjustmentName = "SKColorGreenModulationAdjustmentName";
SKColorGreenOffsetAdjustmentName = "SKColorGreenOffsetAdjustmentName";
SKColorHueAdjustmentName = "SKColorHueAdjustmentName";
SKColorHueModulationAdjustmentName = "SKColorHueModulationAdjustmentName";
SKColorHueOffsetAdjustmentName = "SKColorHueOffsetAdjustmentName";
SKColorInverseAdjustmentName = "SKColorInverseAdjustmentName";
SKColorInverseGammaAdjustmentName = "SKColorInverseGammaAdjustmentName";
SKColorLuminanceAdjustmentName = "SKColorLuminanceAdjustmentName";
SKColorLuminanceModulationAdjustmentName = "SKColorLuminanceModulationAdjustmentName";
SKColorLuminanceOffsetAdjustmentName = "SKColorLuminanceOffsetAdjustmentName";
SKColorRedAdjustmentName = "SKColorRedAdjustmentName";
SKColorRedModulationAdjustmentName = "SKColorRedModulationAdjustmentName";
SKColorRedOffsetAdjustmentName = "SKColorRedOffsetAdjustmentName";
SKColorSaturationAdjustmentName = "SKColorSaturationAdjustmentName";
SKColorSaturationModulationAdjustmentName = "SKColorSaturationModulationAdjustmentName";
SKColorSaturationOffsetAdjustmentName = "SKColorSaturationOffsetAdjustmentName";
SKColorShadeAdjustmentName = "SKColorShadeAdjustmentName";
SKColorTintAdjustmentName = "SKColorTintAdjustmentName";

var _CPColorWithRGBAComponent = function(aColor, aComponent, aValue, anAdjustment)
{
    var components = objj_msgSend(aColor, "components");

    if (anAdjustment == 0)
        components[aComponent] = aValue;
    else if (anAdjustment == 1)
        components[aComponent] *= aValue;
    else
        components[aComponent] += aValue;

    return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", components[0], components[1], components[2], components[3]);
}

{var the_class = objj_allocateClassPair(CPObject, "SKColor"),
meta_class = _class_getMeta(the_class);objj_registerClassPair(the_class);
objj_addClassForBundle(the_class, objj_getBundleWithPath(OBJJ_CURRENT_BUNDLE.path));
var class_methods = [];
class_methods[0] = new objj_method(sel_registerName("colorWithPresetName:adjustments:"), function(self, _cmd, aPresetName, adjustments)
{ with(self)
{
    var color = objj_msgSend(objj_msgSend(SKPresetColor, "alloc"), "initWithName:", aPresetName);

    if (objj_msgSend(adjustments, "count"))
        return objj_msgSend(objj_msgSend(SKCachingAdjustedColor, "alloc"), "initWithColor:adjustments:", color, adjustments);

    return color;
}
});
class_methods[1] = new objj_method(sel_registerName("colorWithSchemeColorKey:adjustments:"), function(self, _cmd, aColorKey, adjustments)
{ with(self)
{
    var color = objj_msgSend(objj_msgSend(SKSchemeColor, "alloc"), "initWithColorKey:", aColorKey);

    if (objj_msgSend(adjustments, "count"))
        return objj_msgSend(objj_msgSend(SKAdjustedColor, "alloc"), "initWithColor:adjustments:", color, adjustments);

    return color;
}
});
class_methods[2] = new objj_method(sel_registerName("colorWithColor:adjustments:"), function(self, _cmd, aColor, adjustments)
{ with(self)
{
    var color = objj_msgSend(objj_msgSend(SKConcreteColor, "alloc"), "initWithColor:", aColor);

    if (objj_msgSend(adjustments, "count"))
        return objj_msgSend(objj_msgSend(SKCachingAdjustedColor, "alloc"), "initWithColor:adjustments:", color, adjustments);

    return color;
}
});
var instance_methods = [];
instance_methods[0] = new objj_method(sel_registerName("adjustments"), function(self, _cmd)
{ with(self)
{
    return nil;
}
});
class_addMethods(the_class, instance_methods);
class_addMethods(meta_class, class_methods);
}

{var the_class = objj_allocateClassPair(SKColor, "SKAdjustedColor"),
meta_class = _class_getMeta(the_class);the_class.ivars.splice(the_class.ivars.length, 0, new objj_ivar("_color"), new objj_ivar("_adjustments"));
objj_registerClassPair(the_class);
objj_addClassForBundle(the_class, objj_getBundleWithPath(OBJJ_CURRENT_BUNDLE.path));
var instance_methods = [];
instance_methods[0] = new objj_method(sel_registerName("initWithColor:adjustments:"), function(self, _cmd, aColor, adjustments)
{ with(self)
{
    self = objj_msgSendSuper({ receiver:self, super_class:objj_getClass("SKColor") }, "init");

    if (self)
    {
        _color = aColor;
        _adjustments = adjustments;
    }

    return self;
}
});
instance_methods[1] = new objj_method(sel_registerName("adjustments"), function(self, _cmd)
{ with(self)
{
    return _adjustments;
}
});
instance_methods[2] = new objj_method(sel_registerName("colorForSlideMaster:"), function(self, _cmd, aSlideMaster)
{ with(self)
{
    var color = objj_msgSend(_color, "colorForSlideMaster:", aSlideMaster),
        adjustmentName = nil,
        adjustmentNames = objj_msgSend(_adjustments, "keyEnumerator");

    while (adjustmentName = objj_msgSend(adjustmentNames, "nextObject"))
    {
        var value = objj_msgSend(_adjustments, "objectForKey:", adjustmentName);

        switch (adjustmentName)
        {
            case SKColorAlphaAdjustmentName: color = _CPColorWithRGBAComponent(color, 3, value, 0);
                                                        break;
            case SKColorAlphaModulationAdjustmentName: color = _CPColorWithRGBAComponent(color, 3, value, 1);
                                                        break;
            case SKColorAlphaOffsetAdjustmentName: color = _CPColorWithRGBAComponent(color, 3, value, 2);
                                                        break;
            case SKColorBlueAdjustmentName: color = _CPColorWithRGBAComponent(color, 2, value, 0);
                                                        break;
            case SKColorBlueModulationAdjustmentName: color = _CPColorWithRGBAComponent(color, 2, value, 1);
                                                        break;
            case SKColorBlueOffsetAdjustmentName: color = _CPColorWithRGBAComponent(color, 2, value, 2);
                                                        break;




            case SKColorGreenAdjustmentName: color = _CPColorWithRGBAComponent(color, 1, value, 0);
                                                        break;
            case SKColorGreenModulationAdjustmentName: color = _CPColorWithRGBAComponent(color, 1, value, 1);
                                                        break;
            case SKColorGreenOffsetAdjustmentName: color = _CPColorWithRGBAComponent(color, 1, value, 2);
                                                        break;



            case SKColorInverseAdjustmentName: var components = objj_msgSend(color, "components");
                                                        color = objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 1.0-components[0], 1.0-components[1], 1.0-components[2], components[3]);
                                                        break;




            case SKColorRedAdjustmentName: color = _CPColorWithRGBAComponent(color, 0, value, 0);
                                                        break;
            case SKColorRedModulationAdjustmentName: color = _CPColorWithRGBAComponent(color, 0, value, 1);
                                                        break;
            case SKColorRedOffsetAdjustmentName: color = _CPColorWithRGBAComponent(color, 0, value, 2);
                                                        break;





        }
    }

    return color;
}
});
class_addMethods(the_class, instance_methods);
}

{var the_class = objj_allocateClassPair(SKAdjustedColor, "SKCachingAdjustedColor"),
meta_class = _class_getMeta(the_class);the_class.ivars.splice(the_class.ivars.length, 0, new objj_ivar("_cachedColor"));
objj_registerClassPair(the_class);
objj_addClassForBundle(the_class, objj_getBundleWithPath(OBJJ_CURRENT_BUNDLE.path));
var instance_methods = [];
instance_methods[0] = new objj_method(sel_registerName("colorForSlideMaster:"), function(self, _cmd, aSlideMaster)
{ with(self)
{
    if (!_cachedColor)
        _cachedColor = objj_msgSendSuper({ receiver:self, super_class:objj_getClass("SKAdjustedColor") }, "colorForSlideMaster:", aSlideMaster);

    return _cachedColor;
}
});
class_addMethods(the_class, instance_methods);
}

{var the_class = objj_allocateClassPair(SKColor, "SKConcreteColor"),
meta_class = _class_getMeta(the_class);the_class.ivars.splice(the_class.ivars.length, 0, new objj_ivar("_color"));
objj_registerClassPair(the_class);
objj_addClassForBundle(the_class, objj_getBundleWithPath(OBJJ_CURRENT_BUNDLE.path));
var instance_methods = [];
instance_methods[0] = new objj_method(sel_registerName("initWithColor:"), function(self, _cmd, aColor)
{ with(self)
{
    self = objj_msgSendSuper({ receiver:self, super_class:objj_getClass("SKColor") }, "init");

    if (self)
        _color = aColor;

    return self;
}
});
instance_methods[1] = new objj_method(sel_registerName("colorForSlideMaster:"), function(self, _cmd, aSlideMaster)
{ with(self)
{
    return _color;
}
});
class_addMethods(the_class, instance_methods);
}

var SKConcreteColorColorKey = "SKConcreteColorColorKey";

{
var the_class = objj_getClass("SKConcreteColor")
if(!the_class) objj_exception_throw(new objj_exception(OBJJClassNotFoundException, "*** Could not find definition for class \"SKConcreteColor\""));
var meta_class = _class_getMeta(the_class);var instance_methods = [];
instance_methods[0] = new objj_method(sel_registerName("initWithCoder:"), function(self, _cmd, aCoder)
{ with(self)
{
    self = objj_msgSendSuper({ receiver:self, super_class:objj_getClass("SKColor") }, "init");

    if (self)
        _color = objj_msgSend(aCoder, "decodeObjectForKey:", SKConcreteColorColorKey);

    return self;
}
});
instance_methods[1] = new objj_method(sel_registerName("encodeWithCoder:"), function(self, _cmd, aCoder)
{ with(self)
{
    objj_msgSend(aCoder, "encodeObject:forKey:", _color, SKConcreteColorColorKey);
}
});
class_addMethods(the_class, instance_methods);
}



SKAliceBluePresetColorName = "SKAliceBluePresetColorName";
SKAntiqueWhitePresetColorName = "SKAntiqueWhitePresetColorName";
SKAquaPresetColorName = "SKAquaPresetColorName";
SKAquamarinePresetColorName = "SKAquamarinePresetColorName";
SKAzurePresetColorName = "SKAzurePresetColorName";
SKBeigePresetColorName = "SKBeigePresetColorName";
SKBisquePresetColorName = "SKBisquePresetColorName";
SKBlackPresetColorName = "SKBlackPresetColorName";
SKBlanchedAlmondPresetColorName = "SKBlanchedAlmondPresetColorName";
SKBluePresetColorName = "SKBluePresetColorName";
SKBlueVioletPresetColorName = "SKBlueVioletPresetColorName";
SKBrownPresetColorName = "SKBrownPresetColorName";
SKBurlyWoodPresetColorName = "SKBurlyWoodPresetColorName";
SKCadetBluePresetColorName = "SKCadetBluePresetColorName";
SKChartreusePresetColorName = "SKChartreusePresetColorName";
SKChocolatePresetColorName = "SKChocolatePresetColorName";
SKCoralPresetColorName = "SKCoralPresetColorName";
SKCornflowerBluePresetColorName = "SKCornflowerBluePresetColorName";
SKCornsilkPresetColorName = "SKCornsilkPresetColorName";
SKCrimsonPresetColorName = "SKCrimsonPresetColorName";
SKCyanPresetColorName = "SKCyanPresetColorName";
SKDeepPinkPresetColorName = "SKDeepPinkPresetColorName";
SKDeepSkyBluePresetColorName = "SKDeepSkyBluePresetColorName";
SKDimGrayPresetColorName = "SKDimGrayPresetColorName";
SKDarkBluePresetColorName = "SKDarkBluePresetColorName";
SKDarkCyanPresetColorName = "SKDarkCyanPresetColorName";
SKDarkGoldenrodPresetColorName = "SKDarkGoldenrodPresetColorName";
SKDarkGrayPresetColorName = "SKDarkGrayPresetColorName";
SKDarkGreenPresetColorName = "SKDarkGreenPresetColorName";
SKDarkKhakiPresetColorName = "SKDarkKhakiPresetColorName";
SKDarkMagentaPresetColorName = "SKDarkMagentaPresetColorName";
SKDarkOliveGreenPresetColorName = "SKDarkOliveGreenPresetColorName";
SKDarkOrangePresetColorName = "SKDarkOrangePresetColorName";
SKDarkOrchidPresetColorName = "SKDarkOrchidPresetColorName";
SKDarkRedPresetColorName = "SKDarkRedPresetColorName";
SKDarkSalmonPresetColorName = "SKDarkSalmonPresetColorName";
SKDarkSeaGreenPresetColorName = "SKDarkSeaGreenPresetColorName";
SKDarkSlateBluePresetColorName = "SKDarkSlateBluePresetColorName";
SKDarkSlateGrayPresetColorName = "SKDarkSlateGrayPresetColorName";
SKDarkTurquoisePresetColorName = "SKDarkTurquoisePresetColorName";
SKDarkVioletPresetColorName = "SKDarkVioletPresetColorName";
SKDodgerBluePresetColorName = "SKDodgerBluePresetColorName";
SKFirebrickPresetColorName = "SKFirebrickPresetColorName";
SKFloralWhitePresetColorName = "SKFloralWhitePresetColorName";
SKForestGreenPresetColorName = "SKForestGreenPresetColorName";
SKFuchsiaPresetColorName = "SKFuchsiaPresetColorName";
SKGainsboroPresetColorName = "SKGainsboroPresetColorName";
SKGhostWhitePresetColorName = "SKGhostWhitePresetColorName";
SKGoldPresetColorName = "SKGoldPresetColorName";
SKGoldenrodPresetColorName = "SKGoldenrodPresetColorName";
SKGrayPresetColorName = "SKGrayPresetColorName";
SKGreenPresetColorName = "SKGreenPresetColorName";
SKGreenYellowPresetColorName = "SKGreenYellowPresetColorName";
SKHoneydewPresetColorName = "SKHoneydewPresetColorName";
SKHotPinkPresetColorName = "SKHotPinkPresetColorName";
SKIndianRedPresetColorName = "SKIndianRedPresetColorName";
SKIndigoPresetColorName = "SKIndigoPresetColorName";
SKIvoryPresetColorName = "SKIvoryPresetColorName";
SKKhakiPresetColorName = "SKKhakiPresetColorName";
SKLavenderPresetColorName = "SKLavenderPresetColorName";
SKLavenderBlushPresetColorName = "SKLavenderBlushPresetColorName";
SKLawnGreenPresetColorName = "SKLawnGreenPresetColorName";
SKLemonChiffonPresetColorName = "SKLemonChiffonPresetColorName";
SKLimePresetColorName = "SKLimePresetColorName";
SKLimeGreenPresetColorName = "SKLimeGreenPresetColorName";
SKLinenPresetColorName = "SKLinenPresetColorName";
SKLightBluePresetColorName = "SKLightBluePresetColorName";
SKLightCoralPresetColorName = "SKLightCoralPresetColorName";
SKLightCyanPresetColorName = "SKLightCyanPresetColorName";
SKLightGoldenrodYellowPresetColorName = "SKLightGoldenrodYellowPresetColorName";
SKLightGrayPresetColorName = "SKLightGrayPresetColorName";
SKLightGreenPresetColorName = "SKLightGreenPresetColorName";
SKLightPinkPresetColorName = "SKLightPinkPresetColorName";
SKLightSalmonPresetColorName = "SKLightSalmonPresetColorName";
SKLightSeaGreenPresetColorName = "SKLightSeaGreenPresetColorName";
SKLightSkyBluePresetColorName = "SKLightSkyBluePresetColorName";
SKLightSlateGrayPresetColorName = "SKLightSlateGrayPresetColorName";
SKLightSteelBluePresetColorName = "SKLightSteelBluePresetColorName";
SKLightYellowPresetColorName = "SKLightYellowPresetColorName";
SKMagentaPresetColorName = "SKMagentaPresetColorName";
SKMaroonPresetColorName = "SKMaroonPresetColorName";
SKMediumAquamarinePresetColorName = "SKMediumAquamarinePresetColorName";
SKMediumBluePresetColorName = "SKMediumBluePresetColorName";
SKMediumOrchidPresetColorName = "SKMediumOrchidPresetColorName";
SKMediumPurplePresetColorName = "SKMediumPurplePresetColorName";
SKMediumSeaGreenPresetColorName = "SKMediumSeaGreenPresetColorName";
SKMediumSlateBluePresetColorName = "SKMediumSlateBluePresetColorName";
SKMediumSpringGreenPresetColorName = "SKMediumSpringGreenPresetColorName";
SKMediumTurquoisePresetColorName = "SKMediumTurquoisePresetColorName";
SKMediumVioletRedPresetColorName = "SKMediumVioletRedPresetColorName";
SKMidnightBluePresetColorName = "SKMidnightBluePresetColorName";
SKMintCreamPresetColorName = "SKMintCreamPresetColorName";
SKMistyRosePresetColorName = "SKMistyRosePresetColorName";
SKMoccasinPresetColorName = "SKMoccasinPresetColorName";
SKNavajoWhitePresetColorName = "SKNavajoWhitePresetColorName";
SKNavyPresetColorName = "SKNavyPresetColorName";
SKOldLacePresetColorName = "SKOldLacePresetColorName";
SKOlivePresetColorName = "SKOlivePresetColorName";
SKOliveDrabPresetColorName = "SKOliveDrabPresetColorName";
SKOrangePresetColorName = "SKOrangePresetColorName";
SKOrangeRedPresetColorName = "SKOrangeRedPresetColorName";
SKOrchidPresetColorName = "SKOrchidPresetColorName";
SKPaleGoldenrodPresetColorName = "SKPaleGoldenrodPresetColorName";
SKPaleGreenPresetColorName = "SKPaleGreenPresetColorName";
SKPaleTurquoisePresetColorName = "SKPaleTurquoisePresetColorName";
SKPaleVioletRedPresetColorName = "SKPaleVioletRedPresetColorName";
SKPapayaWhipPresetColorName = "SKPapayaWhipPresetColorName";
SKPeachPuffPresetColorName = "SKPeachPuffPresetColorName";
SKPeruPresetColorName = "SKPeruPresetColorName";
SKPinkPresetColorName = "SKPinkPresetColorName";
SKPlumPresetColorName = "SKPlumPresetColorName";
SKPowderBluePresetColorName = "SKPowderBluePresetColorName";
SKPurplePresetColorName = "SKPurplePresetColorName";
SKRedPresetColorName = "SKRedPresetColorName";
SKRosyBrownPresetColorName = "SKRosyBrownPresetColorName";
SKRoyalBluePresetColorName = "SKRoyalBluePresetColorName";
SKSaddleBrownPresetColorName = "SKSaddleBrownPresetColorName";
SKSalmonPresetColorName = "SKSalmonPresetColorName";
SKSandyBrownPresetColorName = "SKSandyBrownPresetColorName";
SKSeaGreenPresetColorName = "SKSeaGreenPresetColorName";
SKSeaShellPresetColorName = "SKSeaShellPresetColorName";
SKSiennaPresetColorName = "SKSiennaPresetColorName";
SKSilverPresetColorName = "SKSilverPresetColorName";
SKSkyBluePresetColorName = "SKSkyBluePresetColorName";
SKSlateBluePresetColorName = "SKSlateBluePresetColorName";
SKSlateGrayPresetColorName = "SKSlateGrayPresetColorName";
SKSnowPresetColorName = "SKSnowPresetColorName";
SKSpringGreenPresetColorName = "SKSpringGreenPresetColorName";
SKSteelBluePresetColorName = "SKSteelBluePresetColorName";
SKTanPresetColorName = "SKTanPresetColorName";
SKTealPresetColorName = "SKTealPresetColorName";
SKThistlePresetColorName = "SKThistlePresetColorName";
SKTomatoPresetColorName = "SKTomatoPresetColorName";
SKTurquoisePresetColorName = "SKTurquoisePresetColorName";
SKVioletPresetColorName = "SKVioletPresetColorName";
SKWheatPresetColorName = "SKWheatPresetColorName";
SKWhitePresetColorName = "SKWhitePresetColorName";
SKWhiteSmokePresetColorName = "SKWhiteSmokePresetColorName";
SKYellowPresetColorName = "SKYellowPresetColorName";
SKYellowGreenPresetColorName = "SKYellowGreenPresetColorName";

var SKPresetColors = nil;

{var the_class = objj_allocateClassPair(SKColor, "SKPresetColor"),
meta_class = _class_getMeta(the_class);the_class.ivars.splice(the_class.ivars.length, 0, new objj_ivar("_name"));
objj_registerClassPair(the_class);
objj_addClassForBundle(the_class, objj_getBundleWithPath(OBJJ_CURRENT_BUNDLE.path));
var instance_methods = [];
instance_methods[0] = new objj_method(sel_registerName("initWithName:"), function(self, _cmd, aName)
{ with(self)
{
    if (!SKPresetColors)
        SKPresetColors = objj_msgSend(CPDictionary, "dictionary");

    else
    {
        var color = objj_msgSend(SKPresetColors, "objectForKey:", aName);

        if (color)
            return color;
    }

    self = objj_msgSendSuper({ receiver:self, super_class:objj_getClass("SKColor") }, "init");

    if (self)
        _name = aName;

    objj_msgSend(SKPresetColors, "setObject:forKey:", self, aName);

    return self;
}
});
instance_methods[1] = new objj_method(sel_registerName("colorForSlideMaster:"), function(self, _cmd, aSlideMaster)
{ with(self)
{
    switch (_name)
    {
        case SKAliceBluePresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 240.0/255.0, 248.0/255.0, 255.0/255.0, 1.0);
        case SKAntiqueWhitePresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 250.0/255.0, 235.0/255.0, 215.0/255.0, 1.0);
        case SKAquaPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 0.0/255.0, 255.0/255.0, 255.0/255.0, 1.0);
        case SKAquamarinePresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 127.0/255.0, 255.0/255.0, 212.0/255.0, 1.0);
        case SKAzurePresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 240.0/255.0, 255.0/255.0, 255.0/255.0, 1.0);
        case SKBeigePresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 245.0/255.0, 245.0/255.0, 220.0/255.0, 1.0);
        case SKBisquePresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 255.0/255.0, 228.0/255.0, 196.0/255.0, 1.0);
        case SKBlackPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 0.0/255.0, 0.0/255.0, 0.0/255.0, 1.0);
        case SKBlanchedAlmondPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 255.0/255.0, 235.0/255.0, 205.0/255.0, 1.0);
        case SKBluePresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 0.0/255.0, 0.0/255.0, 255.0/255.0, 1.0);
        case SKBlueVioletPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 138.0/255.0, 43.0/255.0, 226.0/255.0, 1.0);
        case SKBrownPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 165.0/255.0, 42.0/255.0, 42.0/255.0, 1.0);
        case SKBurlyWoodPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 222.0/255.0, 184.0/255.0, 135.0/255.0, 1.0);
        case SKCadetBluePresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 95.0/255.0, 158.0/255.0, 160.0/255.0, 1.0);
        case SKChartreusePresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 127.0/255.0, 255.0/255.0, 0.0/255.0, 1.0);
        case SKChocolatePresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 210.0/255.0, 105.0/255.0, 30.0/255.0, 1.0);
        case SKCoralPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 255.0/255.0, 127.0/255.0, 80.0/255.0, 1.0);
        case SKCornflowerBluePresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 100.0/255.0, 149.0/255.0, 237.0/255.0, 1.0);
        case SKCornsilkPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 255.0/255.0, 248.0/255.0, 220.0/255.0, 1.0);
        case SKCrimsonPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 220.0/255.0, 20.0/255.0, 60.0/255.0, 1.0);
        case SKCyanPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 0.0/255.0, 255.0/255.0, 255.0/255.0, 1.0);
        case SKDeepPinkPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 255.0/255.0, 20.0/255.0, 147.0/255.0, 1.0);
        case SKDeepSkyBluePresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 0.0/255.0, 191.0/255.0, 255.0/255.0, 1.0);
        case SKDimGrayPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 105.0/255.0, 105.0/255.0, 105.0/255.0, 1.0);
        case SKDarkBluePresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 0.0/255.0, 0.0/255.0, 139.0/255.0, 1.0);
        case SKDarkCyanPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 0.0/255.0, 139.0/255.0, 139.0/255.0, 1.0);
        case SKDarkGoldenrodPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 184.0/255.0, 134.0/255.0, 11.0/255.0, 1.0);
        case SKDarkGrayPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 169.0/255.0, 169.0/255.0, 169.0/255.0, 1.0);
        case SKDarkGreenPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 0.0/255.0, 100.0/255.0, 0.0/255.0, 1.0);
        case SKDarkKhakiPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 189.0/255.0, 183.0/255.0, 107.0/255.0, 1.0);
        case SKDarkMagentaPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 139.0/255.0, 0.0/255.0, 139.0/255.0, 1.0);
        case SKDarkOliveGreenPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 85.0/255.0, 107.0/255.0, 47.0/255.0, 1.0);
        case SKDarkOrangePresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 255.0/255.0, 140.0/255.0, 0.0/255.0, 1.0);
        case SKDarkOrchidPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 153.0/255.0, 50.0/255.0, 204.0/255.0, 1.0);
        case SKDarkRedPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 139.0/255.0, 0.0/255.0, 0.0/255.0, 1.0);
        case SKDarkSalmonPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 233.0/255.0, 150.0/255.0, 122.0/255.0, 1.0);
        case SKDarkSeaGreenPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 143.0/255.0, 188.0/255.0, 139.0/255.0, 1.0);
        case SKDarkSlateBluePresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 72.0/255.0, 61.0/255.0, 139.0/255.0, 1.0);
        case SKDarkSlateGrayPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 47.0/255.0, 79.0/255.0, 79.0/255.0, 1.0);
        case SKDarkTurquoisePresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 0.0/255.0, 206.0/255.0, 209.0/255.0, 1.0);
        case SKDarkVioletPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 148.0/255.0, 0.0/255.0, 211.0/255.0, 1.0);
        case SKDodgerBluePresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 30.0/255.0, 144.0/255.0, 255.0/255.0, 1.0);
        case SKFirebrickPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 178.0/255.0, 34.0/255.0, 34.0/255.0, 1.0);
        case SKFloralWhitePresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 255.0/255.0, 250.0/255.0, 240.0/255.0, 1.0);
        case SKForestGreenPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 34.0/255.0, 139.0/255.0, 34.0/255.0, 1.0);
        case SKFuchsiaPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 255.0/255.0, 0.0/255.0, 255.0/255.0, 1.0);
        case SKGainsboroPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 220.0/255.0, 220.0/255.0, 220.0/255.0, 1.0);
        case SKGhostWhitePresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 248.0/255.0, 248.0/255.0, 255.0/255.0, 1.0);
        case SKGoldPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 255.0/255.0, 215.0/255.0, 0.0/255.0, 1.0);
        case SKGoldenrodPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 218.0/255.0, 165.0/255.0, 32.0/255.0, 1.0);
        case SKGrayPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 128.0/255.0, 128.0/255.0, 128.0/255.0, 1.0);
        case SKGreenPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 0.0/255.0, 128.0/255.0, 0.0/255.0, 1.0);
        case SKGreenYellowPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 173.0/255.0, 255.0/255.0, 47.0/255.0, 1.0);
        case SKHoneydewPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 240.0/255.0, 255.0/255.0, 240.0/255.0, 1.0);
        case SKHotPinkPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 255.0/255.0, 105.0/255.0, 180.0/255.0, 1.0);
        case SKIndianRedPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 205.0/255.0, 92.0/255.0, 92.0/255.0, 1.0);
        case SKIndigoPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 75.0/255.0, 0.0/255.0, 130.0/255.0, 1.0);
        case SKIvoryPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 255.0/255.0, 255.0/255.0, 240.0/255.0, 1.0);
        case SKKhakiPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 240.0/255.0, 230.0/255.0, 140.0/255.0, 1.0);
        case SKLavenderPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 230.0/255.0, 230.0/255.0, 250.0/255.0, 1.0);
        case SKLavenderBlushPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 255.0/255.0, 240.0/255.0, 245.0/255.0, 1.0);
        case SKLawnGreenPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 124.0/255.0, 252.0/255.0, 0.0/255.0, 1.0);
        case SKLemonChiffonPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 255.0/255.0, 250.0/255.0, 205.0/255.0, 1.0);
        case SKLimePresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 0.0/255.0, 255.0/255.0, 0.0/255.0, 1.0);
        case SKLimeGreenPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 50.0/255.0, 205.0/255.0, 50.0/255.0, 1.0);
        case SKLinenPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 250.0/255.0, 240.0/255.0, 230.0/255.0, 1.0);
        case SKLightBluePresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 173.0/255.0, 216.0/255.0, 230.0/255.0, 1.0);
        case SKLightCoralPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 240.0/255.0, 128.0/255.0, 128.0/255.0, 1.0);
        case SKLightCyanPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 224.0/255.0, 255.0/255.0, 255.0/255.0, 1.0);
        case SKLightGoldenrodYellowPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 250.0/255.0, 250.0/255.0, 120.0/255.0, 1.0);
        case SKLightGrayPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 211.0/255.0, 211.0/255.0, 211.0/255.0, 1.0);
        case SKLightGreenPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 144.0/255.0, 238.0/255.0, 144.0/255.0, 1.0);
        case SKLightPinkPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 255.0/255.0, 182.0/255.0, 193.0/255.0, 1.0);
        case SKLightSalmonPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 255.0/255.0, 160.0/255.0, 122.0/255.0, 1.0);
        case SKLightSeaGreenPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 32.0/255.0, 178.0/255.0, 170.0/255.0, 1.0);
        case SKLightSkyBluePresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 135.0/255.0, 206.0/255.0, 250.0/255.0, 1.0);
        case SKLightSlateGrayPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 119.0/255.0, 136.0/255.0, 153.0/255.0, 1.0);
        case SKLightSteelBluePresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 176.0/255.0, 196.0/255.0, 222.0/255.0, 1.0);
        case SKLightYellowPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 255.0/255.0, 255.0/255.0, 224.0/255.0, 1.0);
        case SKMagentaPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 255.0/255.0, 0.0/255.0, 255.0/255.0, 1.0);
        case SKMaroonPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 128.0/255.0, 0.0/255.0, 0.0/255.0, 1.0);
        case SKMediumAquamarinePresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 102.0/255.0, 205.0/255.0, 170.0/255.0, 1.0);
        case SKMediumBluePresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 0.0/255.0, 0.0/255.0, 205.0/255.0, 1.0);
        case SKMediumOrchidPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 186.0/255.0, 85.0/255.0, 211.0/255.0, 1.0);
        case SKMediumPurplePresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 147.0/255.0, 112.0/255.0, 219.0/255.0, 1.0);
        case SKMediumSeaGreenPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 60.0/255.0, 179.0/255.0, 113.0/255.0, 1.0);
        case SKMediumSlateBluePresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 123.0/255.0, 104.0/255.0, 238.0/255.0, 1.0);
        case SKMediumSpringGreenPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 0.0/255.0, 250.0/255.0, 154.0/255.0, 1.0);
        case SKMediumTurquoisePresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 72.0/255.0, 209.0/255.0, 204.0/255.0, 1.0);
        case SKMediumVioletRedPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 199.0/255.0, 21.0/255.0, 133.0/255.0, 1.0);
        case SKMidnightBluePresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 25.0/255.0, 25.0/255.0, 112.0/255.0, 1.0);
        case SKMintCreamPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 245.0/255.0, 255.0/255.0, 250.0/255.0, 1.0);
        case SKMistyRosePresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 255.0/255.0, 228.0/255.0, 225.0/255.0, 1.0);
        case SKMoccasinPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 255.0/255.0, 228.0/255.0, 181.0/255.0, 1.0);
        case SKNavajoWhitePresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 255.0/255.0, 222.0/255.0, 173.0/255.0, 1.0);
        case SKNavyPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 0.0/255.0, 0.0/255.0, 128.0/255.0, 1.0);
        case SKOldLacePresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 253.0/255.0, 245.0/255.0, 230.0/255.0, 1.0);
        case SKOlivePresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 128.0/255.0, 128.0/255.0, 0.0/255.0, 1.0);
        case SKOliveDrabPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 107.0/255.0, 142.0/255.0, 35.0/255.0, 1.0);
        case SKOrangePresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 255.0/255.0, 165.0/255.0, 0.0/255.0, 1.0);
        case SKOrangeRedPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 255.0/255.0, 69.0/255.0, 0.0/255.0, 1.0);
        case SKOrchidPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 218.0/255.0, 112.0/255.0, 214.0/255.0, 1.0);
        case SKPaleGoldenrodPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 238.0/255.0, 232.0/255.0, 170.0/255.0, 1.0);
        case SKPaleGreenPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 152.0/255.0, 251.0/255.0, 152.0/255.0, 1.0);
        case SKPaleTurquoisePresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 175.0/255.0, 238.0/255.0, 238.0/255.0, 1.0);
        case SKPaleVioletRedPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 219.0/255.0, 112.0/255.0, 147.0/255.0, 1.0);
        case SKPapayaWhipPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 255.0/255.0, 239.0/255.0, 213.0/255.0, 1.0);
        case SKPeachPuffPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 255.0/255.0, 218.0/255.0, 185.0/255.0, 1.0);
        case SKPeruPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 205.0/255.0, 133.0/255.0, 63.0/255.0, 1.0);
        case SKPinkPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 255.0/255.0, 192.0/255.0, 203.0/255.0, 1.0);
        case SKPlumPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 221.0/255.0, 160.0/255.0, 221.0/255.0, 1.0);
        case SKPowderBluePresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 176.0/255.0, 224.0/255.0, 230.0/255.0, 1.0);
        case SKPurplePresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 128.0/255.0, 0.0/255.0, 128.0/255.0, 1.0);
        case SKRedPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 255.0/255.0, 0.0/255.0, 0.0/255.0, 1.0);
        case SKRosyBrownPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 188.0/255.0, 143.0/255.0, 143.0/255.0, 1.0);
        case SKRoyalBluePresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 65.0/255.0, 105.0/255.0, 225.0/255.0, 1.0);
        case SKSaddleBrownPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 139.0/255.0, 69.0/255.0, 19.0/255.0, 1.0);
        case SKSalmonPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 250.0/255.0, 128.0/255.0, 114.0/255.0, 1.0);
        case SKSandyBrownPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 244.0/255.0, 164.0/255.0, 96.0/255.0, 1.0);
        case SKSeaGreenPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 46.0/255.0, 139.0/255.0, 87.0/255.0, 1.0);
        case SKSeaShellPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 255.0/255.0, 245.0/255.0, 238.0/255.0, 1.0);
        case SKSiennaPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 160.0/255.0, 82.0/255.0, 45.0/255.0, 1.0);
        case SKSilverPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 192.0/255.0, 192.0/255.0, 192.0/255.0, 1.0);
        case SKSkyBluePresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 135.0/255.0, 206.0/255.0, 235.0/255.0, 1.0);
        case SKSlateBluePresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 106.0/255.0, 90.0/255.0, 205.0/255.0, 1.0);
        case SKSlateGrayPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 112.0/255.0, 128.0/255.0, 144.0/255.0, 1.0);
        case SKSnowPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 255.0/255.0, 250.0/255.0, 250.0/255.0, 1.0);
        case SKSpringGreenPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 0.0/255.0, 255.0/255.0, 127.0/255.0, 1.0);
        case SKSteelBluePresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 70.0/255.0, 130.0/255.0, 180.0/255.0, 1.0);
        case SKTanPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 210.0/255.0, 180.0/255.0, 140.0/255.0, 1.0);
        case SKTealPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 0.0/255.0, 128.0/255.0, 128.0/255.0, 1.0);
        case SKThistlePresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 216.0/255.0, 191.0/255.0, 216.0/255.0, 1.0);
        case SKTomatoPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 255.0/255.0, 99.0/255.0, 71.0/255.0, 1.0);
        case SKTurquoisePresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 64.0/255.0, 224.0/255.0, 208.0/255.0, 1.0);
        case SKVioletPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 238.0/255.0, 130.0/255.0, 238.0/255.0, 1.0);
        case SKWheatPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 245.0/255.0, 222.0/255.0, 179.0/255.0, 1.0);
        case SKWhitePresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 255.0/255.0, 255.0/255.0, 255.0/255.0, 1.0);
        case SKWhiteSmokePresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 245.0/255.0, 245.0/255.0, 245.0/255.0, 1.0);
        case SKYellowPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 255.0/255.0, 255.0/255.0, 0.0/255.0, 1.0);
        case SKYellowGreenPresetColorName: return objj_msgSend(CPColor, "colorWithCalibratedRed:green:blue:alpha:", 154.0/255.0, 205.0/255.0, 50.0/255.0, 1.0);
    }

    return nil;
}
});
class_addMethods(the_class, instance_methods);
}

var SKPresetColorNameKey = "SKPresetColorNameKey";

{
var the_class = objj_getClass("SKPresetColor")
if(!the_class) objj_exception_throw(new objj_exception(OBJJClassNotFoundException, "*** Could not find definition for class \"SKPresetColor\""));
var meta_class = _class_getMeta(the_class);var instance_methods = [];
instance_methods[0] = new objj_method(sel_registerName("initWithCoder:"), function(self, _cmd, aCoder)
{ with(self)
{
    self = objj_msgSendSuper({ receiver:self, super_class:objj_getClass("SKColor") }, "init");

    if (self)
        _name = objj_msgSend(aCoder, "decodeObjectForKey:", SKPresetColorNameKey);

    return self;
}
});
instance_methods[1] = new objj_method(sel_registerName("encodeWithCoder:"), function(self, _cmd, aCoder)
{ with(self)
{
    objj_msgSend(aCoder, "encodeObject:forKey:", _name, SKPresetColorNameKey);
}
});
class_addMethods(the_class, instance_methods);
}

var SKSchemeColors = nil;

{var the_class = objj_allocateClassPair(SKColor, "SKSchemeColor"),
meta_class = _class_getMeta(the_class);the_class.ivars.splice(the_class.ivars.length, 0, new objj_ivar("_colorKey"));
objj_registerClassPair(the_class);
objj_addClassForBundle(the_class, objj_getBundleWithPath(OBJJ_CURRENT_BUNDLE.path));
var instance_methods = [];
instance_methods[0] = new objj_method(sel_registerName("initWithColorKey:"), function(self, _cmd, aColorKey)
{ with(self)
{
    if (!SKSchemeColors)
        SKSchemeColors = objj_msgSend(CPDictionary, "dictionary");

    else
    {
        var color = objj_msgSend(SKSchemeColors, "objectForKey:", aColorKey);

        if (color)
            return color;
    }

    self = objj_msgSendSuper({ receiver:self, super_class:objj_getClass("SKColor") }, "init");

    if (self)
        _colorKey = aColorKey;

    objj_msgSend(SKSchemeColors, "setObject:forKey:", self, aColorKey);

    return self;
}
});
instance_methods[1] = new objj_method(sel_registerName("colorForSlideMaster:"), function(self, _cmd, aSlideMaster)
{ with(self)
{
    var colorKey = objj_msgSend(aSlideMaster, "colorKeyMappedByColorKey:", _colorKey);

    return objj_msgSend(objj_msgSend(objj_msgSend(aSlideMaster, "theme"), "schemeColorForKey:", colorKey), "colorForSlideMaster:", aSlideMaster);
}
});
class_addMethods(the_class, instance_methods);
}

p;12;SKEditable.jI;21;Foundation/CPObject.jI;25;Foundation/CPDictionary.jI;33;Foundation/CPNotificationCenter.jI;26;Foundation/CPUndoManager.jc;3011;


{var the_class = objj_allocateClassPair(CPObject, "SKEditable"),
meta_class = _class_getMeta(the_class);the_class.ivars.splice(the_class.ivars.length, 0, new objj_ivar("_undoManager"), new objj_ivar("_isEditing"), new objj_ivar("_didRegisterUndo"), new objj_ivar("_editingNotifications"));
objj_registerClassPair(the_class);
objj_addClassForBundle(the_class, objj_getBundleWithPath(OBJJ_CURRENT_BUNDLE.path));
var instance_methods = [];
instance_methods[0] = new objj_method(sel_registerName("setUndoManager:"), function(self, _cmd, anUndoManager)
{ with(self)
{
    _undoManager = anUndoManager;
}
});
instance_methods[1] = new objj_method(sel_registerName("undoManager"), function(self, _cmd)
{ with(self)
{
    return _undoManager;
}
});
instance_methods[2] = new objj_method(sel_registerName("beginEditing"), function(self, _cmd)
{ with(self)
{
    _isEditing = YES;
    _didRegisterUndo = NO;

    _editingNotifications = objj_msgSend(CPDictionary, "dictionary");
}
});
instance_methods[3] = new objj_method(sel_registerName("endEditing"), function(self, _cmd)
{ with(self)
{
    var notification = nil,
        notifications = objj_msgSend(_editingNotifications, "objectEnumerator"),
        defaultCenter = objj_msgSend(CPNotificationCenter, "defaultCenter");

    while (notification = objj_msgSend(notifications, "nextObject"))
        objj_msgSend(defaultCenter, "postNotification:", notification);

    if (_didRegisterUndo)
        objj_msgSend(self, "registerEditingUndoWithSelector:object:", sel_registerName("beginEditing"), nil);

    _isEditing = NO;
}
});
instance_methods[4] = new objj_method(sel_registerName("isEditing"), function(self, _cmd)
{ with(self)
{
    return _isEditing;
}
});
instance_methods[5] = new objj_method(sel_registerName("registerEditingNotification:"), function(self, _cmd, aNotification)
{ with(self)
{
    if (!_isEditing)
        return;

    objj_msgSend(_editingNotifications, "setObject:forKey:", aNotification, objj_msgSend(aNotification, "name"));
}
});
instance_methods[6] = new objj_method(sel_registerName("registerEditingUndoWithSelector:object:"), function(self, _cmd, aSelector, anObject)
{ with(self)
{
    if (!_isEditing)
        return;

    if (!_didRegisterUndo)
    {
        objj_msgSend(_undoManager, "registerUndoWithTarget:selector:object:", self, sel_registerName("endEditing"), nil);

        _didRegisterUndo = YES;
    }

    objj_msgSend(_undoManager, "registerUndoWithTarget:selector:object:", self, aSelector, anObject);
}
});
instance_methods[7] = new objj_method(sel_registerName("prepareWithInvocationTarget:"), function(self, _cmd, aTarget)
{ with(self)
{
    if (!_isEditing)
        return nil;

    if (!_didRegisterUndo)
    {
        objj_msgSend(_undoManager, "registerUndoWithTarget:selector:object:", self, sel_registerName("endEditing"), nil);

        _didRegisterUndo = YES;
    }

    return objj_msgSend(_undoManager, "prepareWithInvocationTarget:", aTarget);
}
});
class_addMethods(the_class, instance_methods);
}

p;8;SKFill.jI;20;Foundation/CPCoder.jI;21;Foundation/CPObject.jI;21;Foundation/CPString.jI;16;AppKit/CPImage.ji;9;SKColor.jc;5990;


SKFillDidLoadNotification = "SKFillDidLoadNotification";

{var the_class = objj_allocateClassPair(CPObject, "SKFill"),
meta_class = _class_getMeta(the_class);objj_registerClassPair(the_class);
objj_addClassForBundle(the_class, objj_getBundleWithPath(OBJJ_CURRENT_BUNDLE.path));
var class_methods = [];
class_methods[0] = new objj_method(sel_registerName("solidFillWithColor:"), function(self, _cmd, aColor)
{ with(self)
{
    return objj_msgSend(objj_msgSend(SKSolidFill, "alloc"), "initWithColor:", aColor);
}
});
class_methods[1] = new objj_method(sel_registerName("pictureFillWithImage:tile:"), function(self, _cmd, anImage, aTile)
{ with(self)
{
    return objj_msgSend(objj_msgSend(SKPictureFill, "alloc"), "initWithImage:tile:", anImage, aTile);
}
});
var instance_methods = [];
instance_methods[0] = new objj_method(sel_registerName("isLoaded"), function(self, _cmd)
{ with(self)
{
    return YES;
}
});
class_addMethods(the_class, instance_methods);
class_addMethods(meta_class, class_methods);
}

{var the_class = objj_allocateClassPair(SKFill, "SKSolidFill"),
meta_class = _class_getMeta(the_class);the_class.ivars.splice(the_class.ivars.length, 0, new objj_ivar("_color"));
objj_registerClassPair(the_class);
objj_addClassForBundle(the_class, objj_getBundleWithPath(OBJJ_CURRENT_BUNDLE.path));
var instance_methods = [];
instance_methods[0] = new objj_method(sel_registerName("initWithColor:"), function(self, _cmd, aColor)
{ with(self)
{
    self = objj_msgSendSuper({ receiver:self, super_class:objj_getClass("SKFill") }, "init");

    if (self)
        _color = aColor;

    return self;
}
});
instance_methods[1] = new objj_method(sel_registerName("color"), function(self, _cmd)
{ with(self)
{
    return _color;
}
});
class_addMethods(the_class, instance_methods);
}

var SKSolidFillColorKey = "SKSolidFillColorKey";

{
var the_class = objj_getClass("SKSolidFill")
if(!the_class) objj_exception_throw(new objj_exception(OBJJClassNotFoundException, "*** Could not find definition for class \"SKSolidFill\""));
var meta_class = _class_getMeta(the_class);var instance_methods = [];
instance_methods[0] = new objj_method(sel_registerName("initWithCoder:"), function(self, _cmd, aCoder)
{ with(self)
{
    self = objj_msgSendSuper({ receiver:self, super_class:objj_getClass("SKFill") }, "init");

    if (self)
        _color = objj_msgSend(aCoder, "decodeObjectForKey:", SKSolidFillColorKey);

    return self;
}
});
instance_methods[1] = new objj_method(sel_registerName("encodeWithCoder:"), function(self, _cmd, aCoder)
{ with(self)
{
    objj_msgSend(aCoder, "encodeObject:forKey:", _color, SKSolidFillColorKey);
}
});
class_addMethods(the_class, instance_methods);
}

{var the_class = objj_allocateClassPair(SKFill, "SKPictureFill"),
meta_class = _class_getMeta(the_class);the_class.ivars.splice(the_class.ivars.length, 0, new objj_ivar("_image"), new objj_ivar("_tile"), new objj_ivar("_opacity"));
objj_registerClassPair(the_class);
objj_addClassForBundle(the_class, objj_getBundleWithPath(OBJJ_CURRENT_BUNDLE.path));
var instance_methods = [];
instance_methods[0] = new objj_method(sel_registerName("initWithImage:tile:"), function(self, _cmd, anImage, aTile)
{ with(self)
{
    self = objj_msgSendSuper({ receiver:self, super_class:objj_getClass("SKFill") }, "init");

    if (self)
    {
        _image = anImage;
        _tile = aTile;

        if (objj_msgSend(_image, "loadStatus") != CPImageLoadStatusCompleted)
        {
            _image = objj_msgSend(objj_msgSend(CPImage, "alloc"), "initByReferencingFile:size:", objj_msgSend(_image, "filename"), CGSizeMakeCopy(objj_msgSend(_image, "size")));
            objj_msgSend(_image, "setDelegate:", self);
        }
    }

    return self;
}
});
instance_methods[1] = new objj_method(sel_registerName("isLoaded"), function(self, _cmd)
{ with(self)
{
    return objj_msgSend(_image, "loadStatus") == CPImageLoadStatusCompleted;
}
});
instance_methods[2] = new objj_method(sel_registerName("load"), function(self, _cmd)
{ with(self)
{
    if (objj_msgSend(_image, "loadStatus") == CPImageLoadStatusInitialized)
        objj_msgSend(_image, "load");
}
});
instance_methods[3] = new objj_method(sel_registerName("imageDidLoad:"), function(self, _cmd, anImage)
{ with(self)
{
    objj_msgSend(objj_msgSend(CPNotificationCenter, "defaultCenter"), "postNotificationName:object:", SKFillDidLoadNotification, self);
}
});
instance_methods[4] = new objj_method(sel_registerName("image"), function(self, _cmd)
{ with(self)
{
    return _image;
}
});
instance_methods[5] = new objj_method(sel_registerName("tile"), function(self, _cmd)
{ with(self)
{
    return _tile;
}
});
instance_methods[6] = new objj_method(sel_registerName("opacity"), function(self, _cmd)
{ with(self)
{
    return _opacity;
}
});
instance_methods[7] = new objj_method(sel_registerName("setOpacity:"), function(self, _cmd, anOpacity)
{ with(self)
{
    _opacity = anOpacity;
}
});
class_addMethods(the_class, instance_methods);
}

var SKPictureFillImageKey = "SKPictureFillImageKey",
    SKPictureFillTileKey = "SKPictureFillTileKey";

{
var the_class = objj_getClass("SKPictureFill")
if(!the_class) objj_exception_throw(new objj_exception(OBJJClassNotFoundException, "*** Could not find definition for class \"SKPictureFill\""));
var meta_class = _class_getMeta(the_class);var instance_methods = [];
instance_methods[0] = new objj_method(sel_registerName("initWithCoder:"), function(self, _cmd, aCoder)
{ with(self)
{
    return objj_msgSend(self, "initWithImage:tile:", objj_msgSend(aCoder, "decodeObjectForKey:", SKPictureFillImageKey), objj_msgSend(aCoder, "decodeObjectForKey:", SKPictureFillTileKey));
}
});
instance_methods[1] = new objj_method(sel_registerName("encodeWithCoder:"), function(self, _cmd, aCoder)
{ with(self)
{
    objj_msgSend(aCoder, "encodeObject:forKey:", _image, SKPictureFillImageKey);
    objj_msgSend(aCoder, "encodeObject:forKey:", _tile, SKPictureFillTileKey);
}
});
class_addMethods(the_class, instance_methods);
}

p;15;SKFillDrawing.jI;18;AppKit/CGContext.ji;8;SKFill.jc;1587;


{
var the_class = objj_getClass("SKSolidFill")
if(!the_class) objj_exception_throw(new objj_exception(OBJJClassNotFoundException, "*** Could not find definition for class \"SKSolidFill\""));
var meta_class = _class_getMeta(the_class);var instance_methods = [];
instance_methods[0] = new objj_method(sel_registerName("fillPathInLayer:Context:"), function(self, _cmd, aLayer, aContext)
{ with(self)
{
    CGContextSetFillColor(aContext, objj_msgSend(objj_msgSend(self, "color"), "colorForSlideMaster:", objj_msgSend(aLayer, "slideMaster")));
    CGContextFillPath(aContext);
}
});
instance_methods[1] = new objj_method(sel_registerName("fillLayer:inContext:"), function(self, _cmd, aLayer, aContext)
{ with(self)
{
    CGContextSetFillColor(aContext, objj_msgSend(objj_msgSend(self, "color"), "colorForSlideMaster:", objj_msgSend(aLayer, "slideMaster")));
    CGContextFillRect(aContext, objj_msgSend(aLayer, "naturalBounds"));
}
});
class_addMethods(the_class, instance_methods);
}

{
var the_class = objj_getClass("SKPictureFill")
if(!the_class) objj_exception_throw(new objj_exception(OBJJClassNotFoundException, "*** Could not find definition for class \"SKPictureFill\""));
var meta_class = _class_getMeta(the_class);var instance_methods = [];
instance_methods[0] = new objj_method(sel_registerName("fillLayer:inContext:"), function(self, _cmd, aLayer, aContext)
{ with(self)
{
    var bounds = objj_msgSend(aLayer, "naturalBounds");

    if (_tile)
    {
    }
    else
        CGContextDrawImage(aContext, bounds, _image);
}
});
class_addMethods(the_class, instance_methods);
}

p;12;SKGeometry.jI;21;Foundation/CPObject.jI;25;Foundation/CPDictionary.jI;21;Foundation/CPString.jI;19;AppKit/CGGeometry.ji;14;SKAdjustment.jc;7087;


SKRectangleGeometryName = "SKRectangleGeometryName";
SKOvalGeometryName = "SKOvalGeometryName";
SKTriangleGeometryName = "SKTriangleGeometryName";
SKRightTriangleGeometryName = "SKRightTriangleGeometryName";
SKPentagonGeometryName = "SKPentagonGeometryName";
SKStarGeometryName = "SKStarGeometryName";
SKBlockArrowGeometryName = "SKBlockArrowGeometryName";
SKBlockDoubleArrowGeometryName = "SKBlockDoubleArrowGeometryName";

var SKGeometriesForNames = nil;

{var the_class = objj_allocateClassPair(CPObject, "SKGeometry"),
meta_class = _class_getMeta(the_class);objj_registerClassPair(the_class);
objj_addClassForBundle(the_class, objj_getBundleWithPath(OBJJ_CURRENT_BUNDLE.path));
var class_methods = [];
class_methods[0] = new objj_method(sel_registerName("initialize"), function(self, _cmd)
{ with(self)
{
    if (self != objj_msgSend(SKGeometry, "class"))
        return;

    SKGeometriesForNames = objj_msgSend(CPDictionary, "dictionary");
}
});
class_methods[1] = new objj_method(sel_registerName("setGeometry:forName:"), function(self, _cmd, aGeometry, aName)
{ with(self)
{
    objj_msgSend(SKGeometriesForNames, "setObject:forKey:", aGeometry, aName);
}
});
class_methods[2] = new objj_method(sel_registerName("geometryForName:"), function(self, _cmd, aName)
{ with(self)
{
    return objj_msgSend(SKGeometriesForNames, "objectForKey:", aName);
}
});
class_methods[3] = new objj_method(sel_registerName("geometryNames"), function(self, _cmd)
{ with(self)
{
    return objj_msgSend(SKGeometriesForNames, "allKeys");
}
});
var instance_methods = [];
instance_methods[0] = new objj_method(sel_registerName("adjustments"), function(self, _cmd)
{ with(self)
{
    return nil;
}
});
instance_methods[1] = new objj_method(sel_registerName("defaultAdjustmentValues"), function(self, _cmd)
{ with(self)
{
    return nil;
}
});
class_addMethods(the_class, instance_methods);
class_addMethods(meta_class, class_methods);
}

{var the_class = objj_allocateClassPair(SKGeometry, "SKRectangleGeometry"),
meta_class = _class_getMeta(the_class);objj_registerClassPair(the_class);
objj_addClassForBundle(the_class, objj_getBundleWithPath(OBJJ_CURRENT_BUNDLE.path));
}

SKTriangleAdjustment = "SKTriangleAdjustment";

{var the_class = objj_allocateClassPair(SKGeometry, "SKTriangleGeometry"),
meta_class = _class_getMeta(the_class);objj_registerClassPair(the_class);
objj_addClassForBundle(the_class, objj_getBundleWithPath(OBJJ_CURRENT_BUNDLE.path));
var instance_methods = [];
instance_methods[0] = new objj_method(sel_registerName("adjustments"), function(self, _cmd)
{ with(self)
{
    return objj_msgSend(CPDictionary, "dictionaryWithObject:forKey:", objj_msgSend(SKLinearAdjustment, "linearAdjustmentWithMinimumValue:maximumValue:", CGPointMake(0.0,0.0), CGPointMake(1.0,0.0)), SKTriangleAdjustment);
}
});
instance_methods[1] = new objj_method(sel_registerName("defaultAdjustmentValues"), function(self, _cmd)
{ with(self)
{
    return objj_msgSend(CPDictionary, "dictionaryWithObject:forKey:", CGPointMake(0.5,0.0), SKTriangleAdjustment);
}
});
class_addMethods(the_class, instance_methods);
}

{var the_class = objj_allocateClassPair(SKGeometry, "SKRightTriangleGeometry"),
meta_class = _class_getMeta(the_class);objj_registerClassPair(the_class);
objj_addClassForBundle(the_class, objj_getBundleWithPath(OBJJ_CURRENT_BUNDLE.path));
}

{var the_class = objj_allocateClassPair(SKGeometry, "SKOvalGeometry"),
meta_class = _class_getMeta(the_class);objj_registerClassPair(the_class);
objj_addClassForBundle(the_class, objj_getBundleWithPath(OBJJ_CURRENT_BUNDLE.path));
}

{var the_class = objj_allocateClassPair(SKGeometry, "SKPentagonGeometry"),
meta_class = _class_getMeta(the_class);objj_registerClassPair(the_class);
objj_addClassForBundle(the_class, objj_getBundleWithPath(OBJJ_CURRENT_BUNDLE.path));
}

{var the_class = objj_allocateClassPair(SKGeometry, "SKStarGeometry"),
meta_class = _class_getMeta(the_class);objj_registerClassPair(the_class);
objj_addClassForBundle(the_class, objj_getBundleWithPath(OBJJ_CURRENT_BUNDLE.path));
}

SKBlockArrowAdjustment = "SKBlockArrowAdjustment";

{var the_class = objj_allocateClassPair(SKGeometry, "SKBlockArrowGeometry"),
meta_class = _class_getMeta(the_class);objj_registerClassPair(the_class);
objj_addClassForBundle(the_class, objj_getBundleWithPath(OBJJ_CURRENT_BUNDLE.path));
var instance_methods = [];
instance_methods[0] = new objj_method(sel_registerName("adjustments"), function(self, _cmd)
{ with(self)
{
    return objj_msgSend(CPDictionary, "dictionaryWithObject:forKey:", objj_msgSend(SKLinearAdjustment, "linearAdjustmentWithMinimumValue:maximumValue:", CGPointMake(0.0,0.0), CGPointMake(1.0,0.5)), SKBlockArrowAdjustment);
}
});
instance_methods[1] = new objj_method(sel_registerName("defaultAdjustmentValues"), function(self, _cmd)
{ with(self)
{
    return objj_msgSend(CPDictionary, "dictionaryWithObject:forKey:", CGPointMake(0.7,0.3), SKBlockArrowAdjustment);
}
});
class_addMethods(the_class, instance_methods);
}

SKBlockDoubleArrowAdjustment = "SKBlockDoubleArrowAdjustment";

{var the_class = objj_allocateClassPair(SKGeometry, "SKBlockDoubleArrowGeometry"),
meta_class = _class_getMeta(the_class);objj_registerClassPair(the_class);
objj_addClassForBundle(the_class, objj_getBundleWithPath(OBJJ_CURRENT_BUNDLE.path));
var instance_methods = [];
instance_methods[0] = new objj_method(sel_registerName("adjustments"), function(self, _cmd)
{ with(self)
{
    return objj_msgSend(CPDictionary, "dictionaryWithObject:forKey:", objj_msgSend(SKLinearAdjustment, "linearAdjustmentWithMinimumValue:maximumValue:", CGPointMake(0.0,0.0), CGPointMake(0.5,0.5)), SKBlockDoubleArrowAdjustment);
}
});
instance_methods[1] = new objj_method(sel_registerName("defaultAdjustmentValues"), function(self, _cmd)
{ with(self)
{
    return objj_msgSend(CPDictionary, "dictionaryWithObject:forKey:", CGPointMake(0.3,0.3), SKBlockDoubleArrowAdjustment);
}
});
class_addMethods(the_class, instance_methods);
}

objj_msgSend(SKGeometry, "setGeometry:forName:", objj_msgSend(objj_msgSend(SKRectangleGeometry, "alloc"), "init"), SKRectangleGeometryName);
objj_msgSend(SKGeometry, "setGeometry:forName:", objj_msgSend(objj_msgSend(SKOvalGeometry, "alloc"), "init"), SKOvalGeometryName);
objj_msgSend(SKGeometry, "setGeometry:forName:", objj_msgSend(objj_msgSend(SKTriangleGeometry, "alloc"), "init"), SKTriangleGeometryName);
objj_msgSend(SKGeometry, "setGeometry:forName:", objj_msgSend(objj_msgSend(SKRightTriangleGeometry, "alloc"), "init"), SKRightTriangleGeometryName);
objj_msgSend(SKGeometry, "setGeometry:forName:", objj_msgSend(objj_msgSend(SKPentagonGeometry, "alloc"), "init"), SKPentagonGeometryName);
objj_msgSend(SKGeometry, "setGeometry:forName:", objj_msgSend(objj_msgSend(SKStarGeometry, "alloc"), "init"), SKStarGeometryName);
objj_msgSend(SKGeometry, "setGeometry:forName:", objj_msgSend(objj_msgSend(SKBlockArrowGeometry, "alloc"), "init"), SKBlockArrowGeometryName);
objj_msgSend(SKGeometry, "setGeometry:forName:", objj_msgSend(objj_msgSend(SKBlockDoubleArrowGeometry, "alloc"), "init"), SKBlockDoubleArrowGeometryName);

p;19;SKGeometryDrawing.jI;16;AppKit/CALayer.jI;18;AppKit/CGContext.jI;19;AppKit/CGGeometry.ji;12;SKGeometry.jc;8264;


{
var the_class = objj_getClass("SKRectangleGeometry")
if(!the_class) objj_exception_throw(new objj_exception(OBJJClassNotFoundException, "*** Could not find definition for class \"SKRectangleGeometry\""));
var meta_class = _class_getMeta(the_class);var instance_methods = [];
instance_methods[0] = new objj_method(sel_registerName("setPathForContext:bounds:adjustments:"), function(self, _cmd, aContext, bounds, adjustments)
{ with(self)
{
    CGContextBeginPath(aContext);
    CGContextAddRect(aContext, bounds);
    CGContextClosePath(aContext);
}
});
class_addMethods(the_class, instance_methods);
}

{
var the_class = objj_getClass("SKOvalGeometry")
if(!the_class) objj_exception_throw(new objj_exception(OBJJClassNotFoundException, "*** Could not find definition for class \"SKOvalGeometry\""));
var meta_class = _class_getMeta(the_class);var instance_methods = [];
instance_methods[0] = new objj_method(sel_registerName("setPathForContext:bounds:adjustments:"), function(self, _cmd, aContext, bounds, adjustments)
{ with(self)
{
    CGContextAddEllipseInRect(aContext, bounds);
}
});
class_addMethods(the_class, instance_methods);
}

{
var the_class = objj_getClass("SKTriangleGeometry")
if(!the_class) objj_exception_throw(new objj_exception(OBJJClassNotFoundException, "*** Could not find definition for class \"SKTriangleGeometry\""));
var meta_class = _class_getMeta(the_class);var instance_methods = [];
instance_methods[0] = new objj_method(sel_registerName("setPathForContext:bounds:adjustments:"), function(self, _cmd, aContext, bounds, adjustments)
{ with(self)
{
    var adjustment = objj_msgSend(adjustments, "objectForKey:", SKTriangleAdjustment);

 CGContextBeginPath(aContext);

 CGContextMoveToPoint(aContext, CGRectGetMaxX(bounds), CGRectGetMaxY(bounds));
 CGContextAddLineToPoint(aContext, CGRectGetMinX(bounds), CGRectGetMaxY(bounds));
 CGContextAddLineToPoint(aContext, CGRectGetWidth(bounds) * adjustment.x, 0.0);

 CGContextClosePath(aContext);
}
});
class_addMethods(the_class, instance_methods);
}

{
var the_class = objj_getClass("SKRightTriangleGeometry")
if(!the_class) objj_exception_throw(new objj_exception(OBJJClassNotFoundException, "*** Could not find definition for class \"SKRightTriangleGeometry\""));
var meta_class = _class_getMeta(the_class);var instance_methods = [];
instance_methods[0] = new objj_method(sel_registerName("setPathForContext:bounds:adjustments:"), function(self, _cmd, aContext, bounds, adjustments)
{ with(self)
{
 CGContextBeginPath(aContext);

 CGContextMoveToPoint(aContext, CGRectGetMaxX(bounds), CGRectGetMaxY(bounds));
 CGContextAddLineToPoint(aContext, CGRectGetMinX(bounds), CGRectGetMaxY(bounds));
 CGContextAddLineToPoint(aContext, CGRectGetMinX(bounds), CGRectGetMinY(bounds));

 CGContextClosePath(aContext);
}
});
class_addMethods(the_class, instance_methods);
}

{
var the_class = objj_getClass("SKPentagonGeometry")
if(!the_class) objj_exception_throw(new objj_exception(OBJJClassNotFoundException, "*** Could not find definition for class \"SKPentagonGeometry\""));
var meta_class = _class_getMeta(the_class);var instance_methods = [];
instance_methods[0] = new objj_method(sel_registerName("setPathForContext:bounds:adjustments:"), function(self, _cmd, aContext, bounds, adjustments)
{ with(self)
{
    var halfWidth = CGRectGetWidth(bounds) / 2.0,
        halfHeight = CGRectGetHeight(bounds) / 2.0;

 CGContextBeginPath(aContext);

    var index = 0,
        points = 5.0;

 for (; index < points; ++index)
 {
    var percent = index / points,
        x = (SIN(percent * PI2 + PI) + 1.0) * halfWidth,
        y = (COS(percent * PI2 + PI) + 1.0) * halfHeight;

  if (index == 0)
   CGContextMoveToPoint(aContext, x, y);
  else
   CGContextAddLineToPoint(aContext, x, y);
 }

 CGContextClosePath(aContext);
}
});
class_addMethods(the_class, instance_methods);
}

{
var the_class = objj_getClass("SKStarGeometry")
if(!the_class) objj_exception_throw(new objj_exception(OBJJClassNotFoundException, "*** Could not find definition for class \"SKStarGeometry\""));
var meta_class = _class_getMeta(the_class);var instance_methods = [];
instance_methods[0] = new objj_method(sel_registerName("setPathForContext:bounds:adjustments:"), function(self, _cmd, aContext, bounds, adjustments)
{ with(self)
{
    var halfWidth = CGRectGetWidth(bounds) / 2.0,
        halfHeight = CGRectGetHeight(bounds) / 2.0;

 CGContextBeginPath(aContext);

    var index = 0,
        points = 5,
        star_percent = 0.5;

 for (; index < points; ++index)
    {
        var percent = index / points,
            x = (SIN(percent * PI2 + PI) + 1.0) * halfWidth,
            y = (COS(percent * PI2 + PI) + 1.0) * halfHeight;

  if (index == 0)
   CGContextMoveToPoint(aContext, x, y);
  else
   CGContextAddLineToPoint(aContext, x, y);

        var percent = (index + 0.5) / points,
            x = SIN(percent * PI2 + PI) * (halfWidth * star_percent) + halfWidth,
            y = COS(percent * PI2 + PI) * (halfHeight * star_percent) + halfHeight;

  CGContextAddLineToPoint(aContext, x, y);
 }

 CGContextClosePath(aContext);
 CGContextFillPath(aContext);
}
});
class_addMethods(the_class, instance_methods);
}

{
var the_class = objj_getClass("SKBlockArrowGeometry")
if(!the_class) objj_exception_throw(new objj_exception(OBJJClassNotFoundException, "*** Could not find definition for class \"SKBlockArrowGeometry\""));
var meta_class = _class_getMeta(the_class);var instance_methods = [];
instance_methods[0] = new objj_method(sel_registerName("setPathForContext:bounds:adjustments:"), function(self, _cmd, aContext, bounds, adjustments)
{ with(self)
{
    var point = objj_msgSend(adjustments, "objectForKey:", SKBlockArrowAdjustment);

    CGContextMoveToPoint(aContext, CGRectGetMinX(bounds), CGRectGetHeight(bounds) * point.y);

    CGContextAddLineToPoint(aContext, CGRectGetWidth(bounds) * point.x, CGRectGetHeight(bounds) * point.y);
    CGContextAddLineToPoint(aContext, CGRectGetWidth(bounds) * point.x, CGRectGetMinY(bounds));

    CGContextAddLineToPoint(aContext, CGRectGetMaxX(bounds), CGRectGetMidY(bounds));
    CGContextAddLineToPoint(aContext, CGRectGetWidth(bounds) * point.x, CGRectGetMaxY(bounds));

    CGContextAddLineToPoint(aContext, CGRectGetWidth(bounds) * point.x, CGRectGetHeight(bounds) * (1 - point.y));
    CGContextAddLineToPoint(aContext, CGRectGetWidth(bounds) * point.x, CGRectGetHeight(bounds) * (1 - point.y));

    CGContextAddLineToPoint(aContext, CGRectGetMinX(bounds), CGRectGetHeight(bounds) * (1 - point.y));

    CGContextClosePath(aContext);
}
});
class_addMethods(the_class, instance_methods);
}

{
var the_class = objj_getClass("SKBlockDoubleArrowGeometry")
if(!the_class) objj_exception_throw(new objj_exception(OBJJClassNotFoundException, "*** Could not find definition for class \"SKBlockDoubleArrowGeometry\""));
var meta_class = _class_getMeta(the_class);var instance_methods = [];
instance_methods[0] = new objj_method(sel_registerName("setPathForContext:bounds:adjustments:"), function(self, _cmd, aContext, bounds, adjustments)
{ with(self)
{
    var point = objj_msgSend(adjustments, "objectForKey:", SKBlockDoubleArrowAdjustment);

    CGContextMoveToPoint(aContext, CGRectGetMinX(bounds), CGRectGetMidY(bounds));

    CGContextAddLineToPoint(aContext, CGRectGetWidth(bounds) * point.x, CGRectGetMinY(bounds));
    CGContextAddLineToPoint(aContext, CGRectGetWidth(bounds) * point.x, CGRectGetHeight(bounds) * point.y);

    CGContextAddLineToPoint(aContext, CGRectGetWidth(bounds) * (1 - point.x), CGRectGetHeight(bounds) * point.y);
    CGContextAddLineToPoint(aContext, CGRectGetWidth(bounds) * (1 - point.x), CGRectGetMinY(bounds));

    CGContextAddLineToPoint(aContext, CGRectGetMaxX(bounds), CGRectGetMidY(bounds));
    CGContextAddLineToPoint(aContext, CGRectGetWidth(bounds) * (1 - point.x), CGRectGetMaxY(bounds));

    CGContextAddLineToPoint(aContext, CGRectGetWidth(bounds) * (1 - point.x), CGRectGetHeight(bounds) * (1 - point.y));
    CGContextAddLineToPoint(aContext, CGRectGetWidth(bounds) * point.x, CGRectGetHeight(bounds) * (1 - point.y));

    CGContextAddLineToPoint(aContext, CGRectGetWidth(bounds) * point.x, CGRectGetMaxY(bounds));

    CGContextClosePath(aContext);
}
});
class_addMethods(the_class, instance_methods);
}

p;9;SKMovie.jI;21;Foundation/CPString.ji;9;SKShape.jc;3224;


{var the_class = objj_allocateClassPair(SKShape, "SKMovie"),
meta_class = _class_getMeta(the_class);the_class.ivars.splice(the_class.ivars.length, 0, new objj_ivar("_movieURL"), new objj_ivar("_smallThumbnailURL"), new objj_ivar("_largeThumbnailURL"));
objj_registerClassPair(the_class);
objj_addClassForBundle(the_class, objj_getBundleWithPath(OBJJ_CURRENT_BUNDLE.path));
var instance_methods = [];
instance_methods[0] = new objj_method(sel_registerName("init"), function(self, _cmd)
{ with(self)
{
    self = objj_msgSendSuper({ receiver:self, super_class:objj_getClass("SKShape") }, "init");

    if (self)
        _locks = SKShapeLocksNoChangeAspect;

    return self;
}
});
instance_methods[1] = new objj_method(sel_registerName("setMovieURL:"), function(self, _cmd, aMovieURL)
{ with(self)
{
    _movieURL = aMovieURL;
}
});
instance_methods[2] = new objj_method(sel_registerName("movieURL"), function(self, _cmd)
{ with(self)
{
    return _movieURL;
}
});
instance_methods[3] = new objj_method(sel_registerName("setSmallThumbnailURL:"), function(self, _cmd, aSmallThumbnailURL)
{ with(self)
{
    _smallThumbnailURL = aSmallThumbnailURL;
}
});
instance_methods[4] = new objj_method(sel_registerName("smallThumbnailURL"), function(self, _cmd)
{ with(self)
{
    return _smallThumbnailURL;
}
});
instance_methods[5] = new objj_method(sel_registerName("setLargeThumbnailURL:"), function(self, _cmd, aLargeThumbnailURL)
{ with(self)
{
    _largeThumbnailURL = aLargeThumbnailURL;
}
});
instance_methods[6] = new objj_method(sel_registerName("largeThumbnailURL"), function(self, _cmd)
{ with(self)
{
    return _largeThumbnailURL;
}
});
class_addMethods(the_class, instance_methods);
}

var SKMovieMovieURL = "SKMovieMovieURL",
    SKMovieSmallThumbnailURL = "SKMovieSmallThumbnailURL",
    SKMovieLargeThumbnailURL = "SKMovieLargeThumbnailURL";

{
var the_class = objj_getClass("SKMovie")
if(!the_class) objj_exception_throw(new objj_exception(OBJJClassNotFoundException, "*** Could not find definition for class \"SKMovie\""));
var meta_class = _class_getMeta(the_class);var instance_methods = [];
instance_methods[0] = new objj_method(sel_registerName("initWithCoder:"), function(self, _cmd, aCoder)
{ with(self)
{
    self = objj_msgSendSuper({ receiver:self, super_class:objj_getClass("SKShape") }, "initWithCoder:", aCoder);

    if (self)
    {
        _movieURL = objj_msgSend(aCoder, "decodeObjectForKey:", SKMovieMovieURL);
        _smallThumbnailURL = objj_msgSend(aCoder, "decodeObjectForKey:", SKMovieSmallThumbnailURL);
        _largeThumbnailURL = objj_msgSend(aCoder, "decodeObjectForKey:", SKMovieLargeThumbnailURL);
    }

    return self;
}
});
instance_methods[1] = new objj_method(sel_registerName("encodeWithCoder:"), function(self, _cmd, aCoder)
{ with(self)
{
    objj_msgSendSuper({ receiver:self, super_class:objj_getClass("SKShape") }, "encodeWithCoder:", aCoder);

    objj_msgSend(aCoder, "encodeObject:forKey:", _movieURL, SKMovieMovieURL);
    objj_msgSend(aCoder, "encodeObject:forKey:", _smallThumbnailURL, SKMovieSmallThumbnailURL);
    objj_msgSend(aCoder, "encodeObject:forKey:", _largeThumbnailURL, SKMovieLargeThumbnailURL);
}
});
class_addMethods(the_class, instance_methods);
}

p;14;SKMovieLayer.jI;16;AppKit/CALayer.jI;21;AppKit/CAFlashLayer.jI;21;AppKit/CPFlashMovie.ji;9;SKMovie.ji;14;SKShapeLayer.jc;3502;


{var the_class = objj_allocateClassPair(SKShapeLayer, "SKMovieLayer"),
meta_class = _class_getMeta(the_class);the_class.ivars.splice(the_class.ivars.length, 0, new objj_ivar("_flashLayer"), new objj_ivar("_image"), new objj_ivar("_displaysAsThumbnail"));
objj_registerClassPair(the_class);
objj_addClassForBundle(the_class, objj_getBundleWithPath(OBJJ_CURRENT_BUNDLE.path));
var instance_methods = [];
instance_methods[0] = new objj_method(sel_registerName("setDisplaysAsThumbnail:"), function(self, _cmd, shouldDisplayAsThumbnail)
{ with(self)
{
    if (_displaysAsThumbnail == shouldDisplayAsThumbnail)
        return;

    _displaysAsThumbnail = shouldDisplayAsThumbnail;

    if (_displaysAsThumbnail)
    {
        objj_msgSend(_flashLayer, "removeFromSuperlayer");

        _flashLayer = nil;
    }
    else
    {
        objj_msgSend(self, "_createFlashLayerIfNecessary");

        var movie = objj_msgSend(self, "shape");

        if (movie)
            objj_msgSend(_flashLayer, "setFlashMovie:", objj_msgSend(CPFlashMovie, "flashMovieWithFile:", objj_msgSend(movie, "movieURL")));

    }
}
});
instance_methods[1] = new objj_method(sel_registerName("displaysAsThumbnail"), function(self, _cmd)
{ with(self)
{
    return _displaysAsThumbnail;
}
});
instance_methods[2] = new objj_method(sel_registerName("_createFlashLayerIfNecessary"), function(self, _cmd)
{ with(self)
{
    if (_flashLayer)
        return;

    _flashLayer = objj_msgSend(CAFlashLayer, "layer");

    objj_msgSend(_flashLayer, "setAnchorPoint:", CGPointMake(0.0,0.0));
    objj_msgSend(_flashLayer, "setPosition:", CGPointMake(0.0,0.0));
    objj_msgSend(_flashLayer, "setBounds:", CGRectCreateCopy(objj_msgSend(self, "bounds")));

    objj_msgSend(self, "addSublayer:", _flashLayer);
}
});
instance_methods[3] = new objj_method(sel_registerName("setShape:"), function(self, _cmd, aMovie)
{ with(self)
{
    objj_msgSendSuper({ receiver:self, super_class:objj_getClass("SKShapeLayer") }, "setShape:", aMovie);

    if (!_displaysAsThumbnail)
    {
        objj_msgSend(self, "_createFlashLayerIfNecessary");

        objj_msgSend(_flashLayer, "setFlashMovie:", objj_msgSend(CPFlashMovie, "flashMovieWithFile:", objj_msgSend(aMovie, "movieURL")));
    }

    objj_msgSend(_image, "setDelegate:", nil);

    _image = objj_msgSend(objj_msgSend(CPImage, "alloc"), "initWithContentsOfFile:", objj_msgSend(aMovie, "largeThumbnailURL"));
    objj_msgSend(_image, "setDelegate:", self);

    objj_msgSend(self, "setNeedsDisplay");
}
});
instance_methods[4] = new objj_method(sel_registerName("imageDidLoad:"), function(self, _cmd, anImage)
{ with(self)
{
    objj_msgSend(self, "setNeedsDisplay");
}
});
instance_methods[5] = new objj_method(sel_registerName("drawInContext:"), function(self, _cmd, aContext)
{ with(self)
{
    if (!_displaysAsThumbnail)
        return;

    var bounds = objj_msgSend(self, "bounds");

    if (objj_msgSend(_image, "loadStatus") != CPImageLoadStatusCompleted)
    {
        CGContextSetFillColor(aContext, objj_msgSend(CPColor, "grayColor"));
        CGContextFillRect(aContext, bounds);
    }
    else
        CGContextDrawImage(aContext, bounds, _image);
}
});
instance_methods[6] = new objj_method(sel_registerName("setBounds:"), function(self, _cmd, bounds)
{ with(self)
{
    objj_msgSendSuper({ receiver:self, super_class:objj_getClass("SKShapeLayer") }, "setBounds:", bounds);

    objj_msgSend(_flashLayer, "setBounds:", bounds);
}
});
class_addMethods(the_class, instance_methods);
}

p;11;SKPicture.jI;20;Foundation/CPCoder.jI;21;Foundation/CPString.ji;9;SKShape.jc;1980;


{var the_class = objj_allocateClassPair(SKShape, "SKPicture"),
meta_class = _class_getMeta(the_class);the_class.ivars.splice(the_class.ivars.length, 0, new objj_ivar("_imageURL"));
objj_registerClassPair(the_class);
objj_addClassForBundle(the_class, objj_getBundleWithPath(OBJJ_CURRENT_BUNDLE.path));
var instance_methods = [];
instance_methods[0] = new objj_method(sel_registerName("init"), function(self, _cmd)
{ with(self)
{
    self = objj_msgSendSuper({ receiver:self, super_class:objj_getClass("SKShape") }, "init");

    if (self)
        _locks = SKShapeLocksNoChangeAspect;

    return self;
}
});
instance_methods[1] = new objj_method(sel_registerName("setImageURL:"), function(self, _cmd, anImageURL)
{ with(self)
{
    _imageURL = anImageURL;
}
});
instance_methods[2] = new objj_method(sel_registerName("imageURL"), function(self, _cmd)
{ with(self)
{
    return _imageURL;
}
});
class_addMethods(the_class, instance_methods);
}

var SKPictureImageURLKey = "SKPictureImageURLKey";

{
var the_class = objj_getClass("SKPicture")
if(!the_class) objj_exception_throw(new objj_exception(OBJJClassNotFoundException, "*** Could not find definition for class \"SKPicture\""));
var meta_class = _class_getMeta(the_class);var instance_methods = [];
instance_methods[0] = new objj_method(sel_registerName("initWithCoder:"), function(self, _cmd, aCoder)
{ with(self)
{
    self = objj_msgSendSuper({ receiver:self, super_class:objj_getClass("SKShape") }, "initWithCoder:", aCoder);

    if (self)
        _imageURL = objj_msgSend(aCoder, "decodeObjectForKey:", SKPictureImageURLKey);

    return self;
}
});
instance_methods[1] = new objj_method(sel_registerName("encodeWithCoder:"), function(self, _cmd, aCoder)
{ with(self)
{
    objj_msgSendSuper({ receiver:self, super_class:objj_getClass("SKShape") }, "encodeWithCoder:", aCoder);

    objj_msgSend(aCoder, "encodeObject:forKey:", _imageURL, SKPictureImageURLKey);
}
});
class_addMethods(the_class, instance_methods);
}

p;16;SKPictureLayer.jI;18;AppKit/CGContext.jI;16;AppKit/CPImage.ji;11;SKPicture.ji;14;SKShapeLayer.jc;1874;


var SKImageClass = objj_msgSend(CPImage, "class");

SKSetImageClass= function( aClass)
{
    SKImageClass = aClass;
}

{var the_class = objj_allocateClassPair(SKShapeLayer, "SKPictureLayer"),
meta_class = _class_getMeta(the_class);the_class.ivars.splice(the_class.ivars.length, 0, new objj_ivar("_image"));
objj_registerClassPair(the_class);
objj_addClassForBundle(the_class, objj_getBundleWithPath(OBJJ_CURRENT_BUNDLE.path));
var instance_methods = [];
instance_methods[0] = new objj_method(sel_registerName("setShape:"), function(self, _cmd, aPicture)
{ with(self)
{
    if (_shape == aPicture)
        return;

    objj_msgSendSuper({ receiver:self, super_class:objj_getClass("SKShapeLayer") }, "setShape:", aPicture);

    objj_msgSend(_image, "setDelegate:", nil);

    _image = objj_msgSend(objj_msgSend(SKImageClass, "alloc"), "initWithContentsOfFile:", objj_msgSend(aPicture, "imageURL"));
    objj_msgSend(_image, "setDelegate:", self);

    objj_msgSend(self, "setNeedsDisplay");
}
});
instance_methods[1] = new objj_method(sel_registerName("imageDidLoad:"), function(self, _cmd, anImage)
{ with(self)
{

    objj_msgSend(_shape, "setImageURL:", objj_msgSend(anImage, "filename"));

    objj_msgSend(self, "setNeedsDisplay");
}
});
instance_methods[2] = new objj_method(sel_registerName("drawInContext:"), function(self, _cmd, aContext)
{ with(self)
{
    var bounds = objj_msgSend(self, "bounds");

    if (objj_msgSend(_image, "loadStatus") != CPImageLoadStatusCompleted)
    {
        CGContextSetFillColor(aContext, objj_msgSend(CPColor, "grayColor"));
        CGContextFillRect(aContext, bounds);
    }
    else
        CGContextDrawImage(aContext, bounds, _image);
}
});
instance_methods[3] = new objj_method(sel_registerName("allowsTextContent"), function(self, _cmd)
{ with(self)
{
    return NO;
}
});
class_addMethods(the_class, instance_methods);
}

p;16;SKPresentation.jI;20;Foundation/CPArray.jI;19;AppKit/CGGeometry.ji;12;SKEditable.ji;9;SKSlide.ji;15;SKSlideLayout.ji;15;SKSlideMaster.jc;11795;


SKPresentationDidInsertSlidesNotification = "SKPresentationDidInsertSlidesNotification";
SKPresentationInsertedSlides = "SKPresentationInsertedSlides";
SKPresentationInsertedIndexes = "SKPresentationInsertedIndexes";

SKPresentationDidRemoveSlidesNotification = "SKPresentationDidRemoveSlidesNotification";
SKPresentationRemovedSlides = "SKPresentationRemovedSlides";
SKPresentationRemovedIndexes = "SKPresentationRemovedIndexes";

SKPresentationDidRemoveSlidesNotification = "SKPresentationDidRemoveSlidesNotification";
SKPresentationRemovedSlides = "SKPresentationRemovedSlides";
SKPresentationRemovedIndexes = "SKPresentationRemovedIndexes";

SKPresentationDidMoveSlidesNotification = "SkPresentationDidMoveSlidesNotification";
SKPresentationOldSlideIndexes = "SKPresentationOldSlideIndexes";
SKPresentationNewSlideIndexes = "SKPresentationNewSlideIndexes";

var SKPresentationDefaultSlideMaster = nil;

{var the_class = objj_allocateClassPair(SKEditable, "SKPresentation"),
meta_class = _class_getMeta(the_class);the_class.ivars.splice(the_class.ivars.length, 0, new objj_ivar("_slideSize"), new objj_ivar("_notesSize"), new objj_ivar("_slides"), new objj_ivar("_slideMasters"), new objj_ivar("_theme"));
objj_registerClassPair(the_class);
objj_addClassForBundle(the_class, objj_getBundleWithPath(OBJJ_CURRENT_BUNDLE.path));
var class_methods = [];
class_methods[0] = new objj_method(sel_registerName("defaultSlideMaster"), function(self, _cmd)
{ with(self)
{
    if (!SKPresentationDefaultSlideMaster)
    {
        SKPresentationDefaultSlideMaster = objj_msgSend(objj_msgSend(SKSlideMaster, "alloc"), "init");
        objj_msgSend(SKPresentationDefaultSlideMaster, "addSlideLayout:", objj_msgSend(objj_msgSend(SKSlideLayout, "alloc"), "initWithType:", SKSlideLayoutBlankType));
    }

    return SKPresentationDefaultSlideMaster;
}
});
var instance_methods = [];
instance_methods[0] = new objj_method(sel_registerName("init"), function(self, _cmd)
{ with(self)
{
    return objj_msgSend(self, "initWithSlideMaster:", objj_msgSend(objj_msgSend(self, "class"), "defaultSlideMaster"));
}
});
instance_methods[1] = new objj_method(sel_registerName("initWithSlideMaster:"), function(self, _cmd, aSlideMaster)
{ with(self)
{
    self = objj_msgSendSuper({ receiver:self, super_class:objj_getClass("SKEditable") }, "init");

    if (self)
    {
        _slideSize = CGSizeMake(800.0, 600.0);
        _notesSize = CGSizeMake(800.0, 600.0);

        _slides = [];
        _slideMasters = [aSlideMaster];


        var firstSlide = objj_msgSend(objj_msgSend(SKSlide, "alloc"), "initWithPresentation:", self),
            titleSlideLayout = objj_msgSend(aSlideMaster, "firstSlideLayoutWithType:", SKSlideLayoutTitleType);

        objj_msgSend(firstSlide, "setSlideLayout:", titleSlideLayout?titleSlideLayout:objj_msgSend(aSlideMaster, "slideLayouts")[0]);

        objj_msgSend(self, "insertSlide:atIndex:", firstSlide, CPNotFound);
    }

    return self;
}
});
instance_methods[2] = new objj_method(sel_registerName("slideSize"), function(self, _cmd)
{ with(self)
{
    return _slideSize;
}
});
instance_methods[3] = new objj_method(sel_registerName("notesSize"), function(self, _cmd)
{ with(self)
{
    return _notesSize;
}
});
instance_methods[4] = new objj_method(sel_registerName("size"), function(self, _cmd)
{ with(self)
{
    return _slideSize;
}
});
instance_methods[5] = new objj_method(sel_registerName("setTheme:"), function(self, _cmd, aTheme)
{ with(self)
{
    if (_theme == aTheme)
        return;

    _theme = aTheme;
}
});
instance_methods[6] = new objj_method(sel_registerName("theme"), function(self, _cmd)
{ with(self)
{
    return _theme;
}
});
instance_methods[7] = new objj_method(sel_registerName("slides"), function(self, _cmd)
{ with(self)
{
    return _slides;
}
});
instance_methods[8] = new objj_method(sel_registerName("insertSlides:atIndexes:"), function(self, _cmd, slides, indexes)
{ with(self)
{
    var index = 0,
        position = CPNotFound;

    while ((position = objj_msgSend(indexes, "indexGreaterThanIndex:", position)) != CPNotFound)
    {
        var slide = slides[index++];


        slide._presentation = self;
        slide._undoManager = _undoManager;

        _slides.splice(position, 0, slide);
    }

    if (!objj_msgSend(self, "isEditing"))
        return;

    var userInfo = objj_msgSend(CPDictionary, "dictionary");

    objj_msgSend(userInfo, "setObject:forKey:", slides, SKPresentationInsertedSlides);
    objj_msgSend(userInfo, "setObject:forKey:", indexes, SKPresentationInsertedIndexes);

    objj_msgSend(self, "registerEditingUndoWithSelector:object:", sel_registerName("removeSlidesAtIndexes:"), objj_msgSend(indexes, "copy"));
    objj_msgSend(self, "registerEditingNotification:", objj_msgSend(CPNotification, "notificationWithName:object:userInfo:", SKPresentationDidInsertSlidesNotification, self, userInfo));
}
});
instance_methods[9] = new objj_method(sel_registerName("removeSlidesAtIndexes:"), function(self, _cmd, indexes)
{ with(self)
{
    var position = objj_msgSend(indexes, "lastIndex"),
        removed = [];

    while (position != CPNotFound)
    {
        removed.splice(0, 0, _slides[position]);
        _slides.splice(position, 1);

        position = objj_msgSend(indexes, "indexLessThanIndex:", position);
    }

    if (!objj_msgSend(self, "isEditing"))
        return;

    var userInfo = objj_msgSend(CPDictionary, "dictionary");

    objj_msgSend(userInfo, "setObject:forKey:", indexes, SKPresentationRemovedIndexes);
    objj_msgSend(userInfo, "setObject:forKey:", removed, SKPresentationRemovedSlides);

    objj_msgSend(objj_msgSend(self, "prepareWithInvocationTarget:", self), "insertSlides:atIndexes:", removed, objj_msgSend(indexes, "copy"));
    objj_msgSend(self, "registerEditingNotification:", objj_msgSend(CPNotification, "notificationWithName:object:userInfo:", SKPresentationDidRemoveSlidesNotification, self, userInfo));
}
});
instance_methods[10] = new objj_method(sel_registerName("insertSlide:atIndex:"), function(self, _cmd, aSlide, anIndex)
{ with(self)
{
    var count = _slides.length;

    if (anIndex > count || anIndex == CPNotFound)
        anIndex = count;

    objj_msgSend(self, "insertSlides:atIndexes:", [aSlide], objj_msgSend(CPIndexSet, "indexSetWithIndex:", anIndex));
}
});
instance_methods[11] = new objj_method(sel_registerName("moveSlidesAtIndexes:toIndexes:"), function(self, _cmd, oldIndexes, newIndexes)
{ with(self)
{
    var position = objj_msgSend(oldIndexes, "lastIndex"),
        slides = [];

    while (position != CPNotFound)
    {
        slides.push(_slides[position]);
        _slides.splice(position, 1);

        position = objj_msgSend(oldIndexes, "indexLessThanIndex:", position);
    }

    var count = slides.length,
        position = CPNotFound;

    while ((position = objj_msgSend(newIndexes, "indexGreaterThanIndex:", position)) != CPNotFound)
        _slides.splice(position, 0, slides[--count]);

    if (!objj_msgSend(self, "isEditing"))
        return;

    var userInfo = objj_msgSend(CPDictionary, "dictionary");

    objj_msgSend(userInfo, "setObject:forKey:", oldIndexes, SKPresentationOldSlideIndexes);
    objj_msgSend(userInfo, "setObject:forKey:", newIndexes, SKPresentationNewSlideIndexes);

    objj_msgSend(objj_msgSend(self, "prepareWithInvocationTarget:", self), "moveSlidesAtIndexes:toIndexes:", objj_msgSend(newIndexes, "copy"), objj_msgSend(oldIndexes, "copy"));
    objj_msgSend(self, "registerEditingNotification:", objj_msgSend(CPNotification, "notificationWithName:object:userInfo:", SKPresentationDidMoveSlidesNotification, self, userInfo));
}
});
instance_methods[12] = new objj_method(sel_registerName("setUndoManager:"), function(self, _cmd, anUndoManager)
{ with(self)
{
    if (_undoManager == anUndoManager)
        return;

    objj_msgSendSuper({ receiver:self, super_class:objj_getClass("SKEditable") }, "setUndoManager:", anUndoManager);

    var count = _slides.length;

    while (count--)
        objj_msgSend(_slides[count], "setUndoManager:", anUndoManager);
}
});
class_addMethods(the_class, instance_methods);
class_addMethods(meta_class, class_methods);
}

{
var the_class = objj_getClass("SKPresentation")
if(!the_class) objj_exception_throw(new objj_exception(OBJJClassNotFoundException, "*** Could not find definition for class \"SKPresentation\""));
var meta_class = _class_getMeta(the_class);var instance_methods = [];
instance_methods[0] = new objj_method(sel_registerName("slideMasters"), function(self, _cmd)
{ with(self)
{
    return _slideMasters;
}
});
instance_methods[1] = new objj_method(sel_registerName("setSlideMaster:forSlidesWithSlideMaster:"), function(self, _cmd, aSlideMaster, oldSlideMaster)
{ with(self)
{
    if (aSlideMaster == oldSlideMaster)
        return;



    var location = objj_msgSend(_slideMasters, "indexOfObjectIdenticalTo:", oldSlideMaster);

    if (location == CPNotFound)
        return;

    _slideMasters[location] = aSlideMaster;


    var index = 0,
        count = objj_msgSend(_slides, "count");

    for (; index < count; ++index)
    {
        var slide = _slides[index];


        if (objj_msgSend(slide, "slideMaster") == oldSlideMaster)
        {
            var layout = objj_msgSend(_slides[index], "slideLayout"),
                replacement = objj_msgSend(aSlideMaster, "firstSlideLayoutWithType:", objj_msgSend(layout, "type"));

            if (!replacement)
                replacement = objj_msgSend(layout, "copy");

            objj_msgSend(slide, "beginEditing");
            objj_msgSend(slide, "setSlideLayout:", replacement);
            objj_msgSend(slide, "endEditing");
        }
    }
}
});
instance_methods[2] = new objj_method(sel_registerName("defaultSlideLayout"), function(self, _cmd)
{ with(self)
{
    return objj_msgSend(_slideMasters[0], "slideLayouts")[0];
}
});
class_addMethods(the_class, instance_methods);
}

var SKPresentationSlideSize = "SKPresentationSlideSize",
    SKPresentationNotesSize = "SKPresentationNotesSize",
    SKPresentationSlides = "SKPresentationSlides",
    SKPresentationSlideMasters = "SKPresentationSlideMasters";

{
var the_class = objj_getClass("SKPresentation")
if(!the_class) objj_exception_throw(new objj_exception(OBJJClassNotFoundException, "*** Could not find definition for class \"SKPresentation\""));
var meta_class = _class_getMeta(the_class);var instance_methods = [];
instance_methods[0] = new objj_method(sel_registerName("initWithCoder:"), function(self, _cmd, aCoder)
{ with(self)
{
    self = objj_msgSendSuper({ receiver:self, super_class:objj_getClass("SKEditable") }, "init");

    if (self)
    {
        _slideSize = objj_msgSend(aCoder, "decodeSizeForKey:", SKPresentationSlideSize);
        _notesSize = objj_msgSend(aCoder, "decodeSizeForKey:", SKPresentationNotesSize);

        _slides = objj_msgSend(aCoder, "decodeObjectForKey:", SKPresentationSlides);
        _slideMasters = objj_msgSend(aCoder, "decodeObjectForKey:", SKPresentationSlideMasters);



        var index = 0,
            count = _slides.length;

        for (; index < count; ++index)
            _slides[index]._slideLayout = objj_msgSend(_slideMasters[0], "firstSlideLayoutWithType:", objj_msgSend(_slides[index]._slideLayout, "type"));
    }

    return self;
}
});
instance_methods[1] = new objj_method(sel_registerName("encodeWithCoder:"), function(self, _cmd, aCoder)
{ with(self)
{
    objj_msgSend(aCoder, "encodeSize:forKey:", _slideSize, SKPresentationSlideSize);
    objj_msgSend(aCoder, "encodeSize:forKey:", _notesSize, SKPresentationNotesSize);

    objj_msgSend(aCoder, "encodeObject:forKey:", _slides, SKPresentationSlides);
    objj_msgSend(aCoder, "encodeObject:forKey:", _slideMasters, SKPresentationSlideMasters);
}
});
class_addMethods(the_class, instance_methods);
}

p;20;SKPresentationView.ji;16;SKPresentation.ji;13;SKSlideView.ji;14;SKTransition.ji;23;SKTransitionAnimation.jI;15;AppKit/CPView.jc;14018;






{var the_class = objj_allocateClassPair(CPView, "SKPresentationView"),
meta_class = _class_getMeta(the_class);the_class.ivars.splice(the_class.ivars.length, 0, new objj_ivar("_presentation"), new objj_ivar("_slideAspectRatio"), new objj_ivar("_blackedView"), new objj_ivar("_blackedLabel"), new objj_ivar("_clipView"), new objj_ivar("_slideView"), new objj_ivar("_transitionView"), new objj_ivar("_nextSlideView"), new objj_ivar("_nextSlide"), new objj_ivar("_slideNumber"), new objj_ivar("_isBlacked"), new objj_ivar("_isTransitioning"), new objj_ivar("_isEnd"), new objj_ivar("_jumpString"), new objj_ivar("_jumpTimeout"), new objj_ivar("_advanceTimeout"), new objj_ivar("_delegate"));
objj_registerClassPair(the_class);
objj_addClassForBundle(the_class, objj_getBundleWithPath(OBJJ_CURRENT_BUNDLE.path));
var instance_methods = [];
instance_methods[0] = new objj_method(sel_registerName("initWithFrame:"), function(self, _cmd, aFrame)
{ with(self)
{
    self = objj_msgSendSuper({ receiver:self, super_class:objj_getClass("CPView") }, "initWithFrame:", aFrame);

    if (self)
    {
        objj_msgSend(self, "setBackgroundColor:", objj_msgSend(CPColor, "blackColor"));

        var bounds = objj_msgSend(self, "bounds");

        _blackedView = objj_msgSend(objj_msgSend(CPView, "alloc"), "initWithFrame:", CGRectMakeCopy(bounds));
        objj_msgSend(_blackedView, "setHidden:", YES);
        objj_msgSend(_blackedView, "setAutoresizingMask:", CPViewWidthSizable|CPViewHeightSizable);

        _blackedLabel = objj_msgSend(objj_msgSend(CPTextField, "alloc"), "initWithFrame:", CPRectMakeZero());
        objj_msgSend(_blackedLabel, "setFont:", objj_msgSend(CPFont, "systemFontOfSize:", 16.0));
        objj_msgSend(_blackedLabel, "setTextColor:", objj_msgSend(CPColor, "whiteColor"));
        objj_msgSend(_blackedLabel, "setStringValue:", "End of slide show, click to exit.");
        objj_msgSend(_blackedLabel, "sizeToFit");
        objj_msgSend(_blackedLabel, "setFrameOrigin:", CPPointMake((bounds.size.width/2.0)-(objj_msgSend(_blackedLabel, "frame").size.width/2.0),10.0));
        objj_msgSend(_blackedLabel, "setAutoresizingMask:", CPViewMinXMargin|CPViewMaxXMargin);
        objj_msgSend(_blackedView, "addSubview:", _blackedLabel);

        _clipView = objj_msgSend(objj_msgSend(CPView, "alloc"), "initWithFrame:", CGRectMakeCopy(bounds));
        objj_msgSend(_clipView, "setBackgroundColor:", objj_msgSend(CPColor, "blackColor"));
        objj_msgSend(_clipView, "setAutoresizingMask:", CPViewWidthSizable|CPViewHeightSizable);

        _slideView = objj_msgSend(objj_msgSend(SKSlideView, "alloc"), "initWithFrame:", CGRectMakeCopy(bounds));
        objj_msgSend(_slideView, "setAutoresizingMask:", CPViewWidthSizable|CPViewHeightSizable);
        objj_msgSend(_slideView, "setBackgroundColor:", objj_msgSend(CPColor, "blackColor"));
        objj_msgSend(_slideView, "setScalesContentToFit:", YES);

        _transitionView = objj_msgSend(objj_msgSend(SKSlideView, "alloc"), "initWithFrame:", CGRectMakeCopy(bounds));
        objj_msgSend(_transitionView, "setAutoresizingMask:", CPViewWidthSizable|CPViewHeightSizable);
        objj_msgSend(_transitionView, "setBackgroundColor:", objj_msgSend(CPColor, "blackColor"));
        objj_msgSend(_transitionView, "setScalesContentToFit:", YES);

        _nextSlideView = objj_msgSend(objj_msgSend(SKSlideView, "alloc"), "initWithFrame:", CGRectMakeCopy(bounds));
        objj_msgSend(_nextSlideView, "setAutoresizingMask:", CPViewWidthSizable|CPViewHeightSizable);
        objj_msgSend(_nextSlideView, "setBackgroundColor:", objj_msgSend(CPColor, "blackColor"));
        objj_msgSend(_nextSlideView, "setScalesContentToFit:", YES);

        _nextSlide = -1;

        objj_msgSend(_clipView, "addSubview:", _nextSlideView);
        objj_msgSend(_clipView, "addSubview:", _transitionView);
        objj_msgSend(_clipView, "addSubview:", _slideView);

        objj_msgSend(self, "addSubview:", _clipView);
        objj_msgSend(self, "addSubview:", _blackedView);

        _jumpString = "";
        _jumpTimeout = null;
    }

    return self;
}
});
instance_methods[1] = new objj_method(sel_registerName("setPresentation:"), function(self, _cmd, aPresentation)
{ with(self)
{
    _slideNumber = -1;
    _presentation = aPresentation;
    _totalSlides = objj_msgSend(objj_msgSend(aPresentation, "slides"), "count");
}
});
instance_methods[2] = new objj_method(sel_registerName("presentation"), function(self, _cmd)
{ with(self)
{
    return _presentation;
}
});
instance_methods[3] = new objj_method(sel_registerName("startPresentation"), function(self, _cmd)
{ with(self)
{
    objj_msgSend(self, "startPresentationAtIndex:", 0);
}
});
instance_methods[4] = new objj_method(sel_registerName("startPresentationAtIndex:enterFullScreen:"), function(self, _cmd, anIndex, shouldEnterFullScreen)
{ with(self)
{
    _isEnd = NO;
    objj_msgSend(self, "setColorScreen:", nil);
    objj_msgSend(self, "showSlide:useTransition:", anIndex, NO);

    if (shouldEnterFullScreen)
        objj_msgSend(self, "enterFullScreenMode:withOptions:", nil, nil);
}
});
instance_methods[5] = new objj_method(sel_registerName("endPresentation"), function(self, _cmd)
{ with(self)
{
    if (objj_msgSend(_delegate, "respondsToSelector:", sel_registerName("presentationDidEnd")))
        objj_msgSend(_delegate, "presentationDidEnd");

    if (objj_msgSend(self, "isInFullScreenMode"))
        objj_msgSend(self, "exitFullScreenModeWithOptions:", nil);
}
});
instance_methods[6] = new objj_method(sel_registerName("slideNumber"), function(self, _cmd)
{ with(self)
{
    return _slideNumber;
}
});
instance_methods[7] = new objj_method(sel_registerName("count"), function(self, _cmd)
{ with(self)
{
    return _totalSlides;
}
});
instance_methods[8] = new objj_method(sel_registerName("nextSlide"), function(self, _cmd)
{ with(self)
{
    return objj_msgSend(self, "showSlide:", _slideNumber+1);
}
});
instance_methods[9] = new objj_method(sel_registerName("previousSlide"), function(self, _cmd)
{ with(self)
{
    return objj_msgSend(self, "showSlide:", _slideNumber-1);
}
});
instance_methods[10] = new objj_method(sel_registerName("showSlide:"), function(self, _cmd, num)
{ with(self)
{
    objj_msgSend(self, "showSlide:useTransition:", num, YES);
}
});
instance_methods[11] = new objj_method(sel_registerName("showSlide:useTransition:"), function(self, _cmd, num, useTransition)
{ with(self)
{


    var slides = objj_msgSend(_presentation, "slides");
    if (!_isTransitioning && slides && slides.length > 0)
    {
        if (num == slides.length)
        {
            if (_isEnd)
                objj_msgSend(self, "endPresentation");
            else
            {
                _isEnd = YES;

                objj_msgSend(self, "setColorScreen:withLabel:", objj_msgSend(CPColor, "blackColor"), "End of slide show, click to exit.");

                if (objj_msgSend(_delegate, "respondsToSelector:", sel_registerName("presentationWillEnd:")))
                    objj_msgSend(_delegate, "presentationWillEnd:", self);
            }

            return;
        }

        if (_isEnd)
        {
            objj_msgSend(self, "setColorScreen:", nil);
            _isEnd = NO;
            return;
        }

        var newSlideNumber = MIN(MAX(num, 0), slides.length-1);
        if (newSlideNumber == _slideNumber)
           return;

        _slideNumber = newSlideNumber;
        var slide = slides[_slideNumber];
        objj_msgSend(_transitionView, "setSlide:", slide);

        if (_nextSlide == newSlideNumber)
        {
            _slideNumber = _nextSlide;

            var temp = _transitionView;
            _transitionView = _nextSlideView;
            _nextSlideView = temp;

            _nextSlide = ++newSlideNumber;

            objj_msgSend(_nextSlideView, "setSlide:", slides[_nextSlide]);
        }
        else
        {
            _slideNumber = newSlideNumber;
            var slide = slides[_slideNumber];
            objj_msgSend(_transitionView, "setSlide:", slide);

            _nextSlide = _slideNumber + 1;
            objj_msgSend(_nextSlideView, "setSlide:", slides[_nextSlide]);
        }

        var transition = objj_msgSend(slide, "transition");
        if (useTransition && transition && objj_msgSend(transition, "class") != SKNoTransition)
        {
            var currentAnimation = objj_msgSend(objj_msgSend(SKTransitionAnimation, "alloc"), "initWithPreviousSlideView:nextSlideView:transition:", _slideView, _transitionView, transition);
            objj_msgSend(currentAnimation, "setDelegate:", self);
            objj_msgSend(currentAnimation, "startAnimation");
        }
        else
        {
            objj_msgSend(_slideView, "setHidden:", YES);
            objj_msgSend(_transitionView, "setHidden:", NO);
            objj_msgSend(self, "swapViews");

            if (objj_msgSend(_delegate, "respondsToSelector:", sel_registerName("presentationView:didChangeSlide:")))
                objj_msgSend(_delegate, "presentationView:didChangeSlide:", self, _slideNumber);
        }
    }
}
});
instance_methods[12] = new objj_method(sel_registerName("animationShouldStart:"), function(self, _cmd, animation)
{ with(self)
{
    _isTransitioning = YES;

    objj_msgSend(_slideView, "setDisplaysMoviesAsThumbnails:", YES);
    objj_msgSend(_transitionView, "setDisplaysMoviesAsThumbnails:", YES);

    return YES;
}
});
instance_methods[13] = new objj_method(sel_registerName("animationDidEnd:"), function(self, _cmd, animation)
{ with(self)
{
    objj_msgSend(self, "swapViews");

    _isTransitioning = NO;

    if (objj_msgSend(_delegate, "respondsToSelector:", sel_registerName("presentationView:slideIndexDidChange:")))
        objj_msgSend(_delegate, "presentationView:slideIndexDidChange:", self, _slideNumber);
}
});
instance_methods[14] = new objj_method(sel_registerName("swapViews"), function(self, _cmd)
{ with(self)
{
    var tempView = _slideView;

    _slideView = _transitionView;
    _transitionView = tempView;

    objj_msgSend(_slideView, "setDisplaysMoviesAsThumbnails:", NO);
}
});
instance_methods[15] = new objj_method(sel_registerName("startTimer:"), function(self, _cmd, duration)
{ with(self)
{
    window.clearTimeout(_advanceTimeout);
    if (duration != nil)
    {
        _advanceTimeout = window.setTimeout(function() {
            objj_msgSend(self, "nextSlide");
            objj_msgSend(objj_msgSend(CPRunLoop, "currentRunLoop"), "performSelectors");
        }, duration);
    }
}
});
instance_methods[16] = new objj_method(sel_registerName("toggleColorScreen:"), function(self, _cmd, aColor)
{ with(self)
{
    _isBlacked = !_isBlacked;
    objj_msgSend(self, "setColorScreen:", (_isBlacked?aColor:nil))
}
});
instance_methods[17] = new objj_method(sel_registerName("setColorScreen:"), function(self, _cmd, aColor)
{ with(self)
{
    objj_msgSend(self, "setColorScreen:withLabel:", aColor, nil);
}
});
instance_methods[18] = new objj_method(sel_registerName("setColorScreen:withLabel:"), function(self, _cmd, aColor, aLabel)
{ with(self)
{
    if (aColor)
    {
        objj_msgSend(_slideView, "setDisplaysMoviesAsThumbnails:", YES);

        objj_msgSend(_blackedLabel, "setStringValue:", (aLabel||""));

        objj_msgSend(_blackedView, "setBackgroundColor:", aColor);
        objj_msgSend(_blackedView, "setHidden:", NO);
    }
    else
    {
        objj_msgSend(_slideView, "setDisplaysMoviesAsThumbnails:", NO);

        objj_msgSend(_blackedView, "setHidden:", YES);
    }
}
});
instance_methods[19] = new objj_method(sel_registerName("keyDown:"), function(self, _cmd, anEvent)
{ with(self)
{
    var key = objj_msgSend(anEvent, "keyCode");

    if (_isBlacked)
    {
        objj_msgSend(self, "toggleColorScreen:", nil);
        return;
    }

    switch (key)
    {
        case 13:
                    if (_jumpString == "")
                        objj_msgSend(self, "nextSlide");
                    else
                    {
                        window.clearTimeout(_jumpTimeout);
                        _jumpTimeout = null;
                        objj_msgSend(self, "showSlide:", parseInt(_jumpString)-1);
                        _jumpString = "";
                    }

                    break;

        case 27:
                    objj_msgSend(self, "endPresentation");
                    break;

        case 32:
        case 34:
        case 39:
        case 40:
        case 78:
                    if(window.controller && _isEnd) break;
                        objj_msgSend(self, "nextSlide");

                    break;

        case 8:
        case 33:
        case 37:
        case 38:
        case 80:
                    objj_msgSend(self, "previousSlide");
                    break;

        case 66:
        case 190:
                    objj_msgSend(self, "toggleColorScreen:", objj_msgSend(CPColor, "blackColor"));
                    break;

        case 87:
        case 188:
                    objj_msgSend(self, "toggleColorScreen:", objj_msgSend(CPColor, "whiteColor"));
                    break;
    }


    if ((key >= 48 && key <= 57) || (key >= 96 && key <= 105))
    {
        _jumpString += objj_msgSend(anEvent, "characters");

        window.clearTimeout(_jumpTimeout);
        _jumpTimeout = window.setTimeout(function() { _jumpString = ""; }, 3000);
    }
    else
    {

    }
}
});
instance_methods[20] = new objj_method(sel_registerName("mouseDown:"), function(self, _cmd, anEvent)
{ with(self)
{
    objj_msgSend(self, "nextSlide");
}
});
instance_methods[21] = new objj_method(sel_registerName("acceptsFirstResponder"), function(self, _cmd)
{ with(self)
{
    return YES;
}
});
instance_methods[22] = new objj_method(sel_registerName("setDelegate:"), function(self, _cmd, aDelegate)
{ with(self)
{
    _delegate = aDelegate;
}
});
instance_methods[23] = new objj_method(sel_registerName("delegate"), function(self, _cmd)
{ with(self)
{
    return _delegate;
}
});
class_addMethods(the_class, instance_methods);
}

p;9;SKShape.jI;21;Foundation/CPObject.ji;12;SKEditable.ji;8;SKFill.ji;12;SKGeometry.jc;22476;


SKShapesPboardType = "SKShapesPboardType";

SKShapeTransformationDidChangeNotification = "SKShapeTransformationDidChangeNotification";

ElementGeometryDidChangeNotification = "ElementGeometryDidChangeNotification";

SKShapeAdjustmentValueDidChangeNotification = "SKShapeAdjustmentValueDidChangeNotification";
SKShapeAdjustmentName = "SKShapeAdjustmentName";

SKShapeFillDidChangeNotification = "SKShapeFillDidChangeNotification";

SKShapeOpacityDidChangeNotification = "SKShapeOpacityDidChangeNotification";

SKShapeStrokeColorDidChangeNotification = "SKShapeStrokeColorDidChangeNotification";
SKShapeStrokeWidthDidChangeNotification = "SKShapeStrokeWidthDidChangeNotification";

SKShapeTextBodyDidChangeNotification = "SKShapeTextBodyDidChangeNotification";

SKShapeLocksNoAdjustHandles = 1;
SKShapeLocksNoChangeArrowheads = 1 << 1;
SKShapeLocksNoChangeAspect = 1 << 2;
SKShapeLocksNoChangeShapeType = 1 << 3;
SKShapeLocksNoEditPoints = 1 << 4;
SKShapeLocksNoGroup = 1 << 5;
SKShapeLocksNoMove = 1 << 6;
SKShapeLocksNoRotation = 1 << 7;
SKShapeLocksNoSelect = 1 << 8;
SKShapeLocksNoTextEdit = 1 << 9;
SKShapeLocksNoResize = 1 << 10;
SKShapeLocksNoCrop = 1 << 11;

SKShapeBodyPlaceholderType = 0;


SKShapeCenterdTitlePlaceholderType = 3;
SKShapeSubtitlePlaceholderType = 13;
SKShapeTitlePlaceholderType = 15;
{var the_class = objj_allocateClassPair(SKEditable, "SKShape"),
meta_class = _class_getMeta(the_class);the_class.ivars.splice(the_class.ivars.length, 0, new objj_ivar("_slideBase"), new objj_ivar("_locks"), new objj_ivar("_size"), new objj_ivar("_position"), new objj_ivar("_isFlippedHorizontal"), new objj_ivar("_isFlippedVertical"), new objj_ivar("_rotationRadians"), new objj_ivar("_geometryName"), new objj_ivar("_adjustments"), new objj_ivar("_adjustmentValues"), new objj_ivar("_fill"), new objj_ivar("_fillColor"), new objj_ivar("_strokeColor"), new objj_ivar("_strokeWidth"), new objj_ivar("_opacity"), new objj_ivar("_textBody"), new objj_ivar("_isPlaceholder"), new objj_ivar("_placeholderType"), new objj_ivar("_placeholderIdx"));
objj_registerClassPair(the_class);
objj_addClassForBundle(the_class, objj_getBundleWithPath(OBJJ_CURRENT_BUNDLE.path));
var instance_methods = [];
instance_methods[0] = new objj_method(sel_registerName("init"), function(self, _cmd)
{ with(self)
{
    self = objj_msgSendSuper({ receiver:self, super_class:objj_getClass("SKEditable") }, "init");
    if (self)
    {
        _locks = 0;
        _size = CGSizeMakeZero();
        _position = CGPointMakeZero();
        _rotationRadians = 0.0;
        _isFlippedHorizontal = NO;
        _isFlippedVertical = NO;
        _opacity = 1.0;
        _textBody = "";
        _isPlaceholder = NO;
        _type = SKShapeBodyPlaceholderType;
        _idx = 0;
    }
    return self;
}
});
instance_methods[1] = new objj_method(sel_registerName("initWithShape:"), function(self, _cmd, aShape)
{ with(self)
{
    self = objj_msgSendSuper({ receiver:self, super_class:objj_getClass("SKEditable") }, "init");
    if (self)
    {
        _locks = aShape._locks;
        _size = CGSizeMakeCopy(aShape._size);
        _position = CGPointMakeCopy(aShape._position);
        _isFlippedHorizontal = aShape._isFlippedHorizontal;
        _isFlippedVertical = aShape._isFlippedVertical;
        _rotationRadians = aShape._rotationRadians;
        _geometryName = aShape._geometryName;
        _adjustments = objj_msgSend(objj_msgSend(SKGeometry, "geometryForName:", _geometryName), "adjustments");
        _adjustmentValues = objj_msgSend(CPDictionary, "dictionary");
        var values = objj_msgSend(aShape, "adjustmentValues"),
            key,
            keys = objj_msgSend(values, "keyEnumerator");
        while (key = objj_msgSend(keys, "nextObject"))
            objj_msgSend(_adjustmentValues, "setObject:forKey:", CGPointMakeCopy(objj_msgSend(values, "objectForKey:", key)), key);
        _fillColor = aShape._fillColor;
        _strokeColor = aShape._strokeColor;
        _strokeWidth = aShape._strokeWidth;
        _opacity = aShape._opacity;
        _textBody = objj_msgSend(aShape._textBody, "copy");
        _isPlaceholder = aShape._isPlaceholder;
        _placeholderType = aShape._placeholderType;
        _placeholderIdx = aShape._placeholderIdx;
    }
    return self;
}
});
instance_methods[2] = new objj_method(sel_registerName("copyPropertiesFromPlaceholder:"), function(self, _cmd, aShape)
{ with(self)
{
    _locks = aShape._locks;
    _size = CGSizeMakeCopy(aShape._size);
    _position = CGPointMakeCopy(aShape._position);
    _isFlippedHorizontal = aShape._isFlippedHorizontal;
    _isFlippedVertical = aShape._isFlippedVertical;
    _rotationRadians = aShape._rotationRadians;
    _geometryName = aShape._geometryName;
    _adjustments = objj_msgSend(objj_msgSend(SKGeometry, "geometryForName:", _geometryName), "adjustments");
    _adjustmentValues = objj_msgSend(CPDictionary, "dictionary");
    var values = objj_msgSend(aShape, "adjustmentValues"),
        key,
        keys = objj_msgSend(values, "keyEnumerator");
    while (key = objj_msgSend(keys, "nextObject"))
        objj_msgSend(_adjustmentValues, "setObject:forKey:", CGPointMakeCopy(objj_msgSend(values, "objectForKey:", key)), key);
    _fillColor = aShape._fillColor;
    _strokeColor = aShape._strokeColor;
    _strokeWidth = aShape._strokeWidth;
    objj_msgSend(self, "registerEditingNotification:", objj_msgSend(CPNotification, "notificationWithName:object:", ElementGeometryDidChangeNotification, self));
}
});
instance_methods[3] = new objj_method(sel_registerName("slide"), function(self, _cmd)
{ with(self)
{
    return _slideBase;
}
});
instance_methods[4] = new objj_method(sel_registerName("slideBase"), function(self, _cmd)
{ with(self)
{
    return _slideBase;
}
});
instance_methods[5] = new objj_method(sel_registerName("slideMaster"), function(self, _cmd)
{ with(self)
{
    return objj_msgSend(_slideBase, "slideMaster");
}
});
instance_methods[6] = new objj_method(sel_registerName("locks"), function(self, _cmd)
{ with(self)
{
    return _locks;
}
});
instance_methods[7] = new objj_method(sel_registerName("setPosition:"), function(self, _cmd, aPosition)
{ with(self)
{
    if (CGPointEqualToPoint(_position, aPosition))
        return;
    objj_msgSend(self, "registerEditingUndoWithSelector:object:", sel_registerName("setPosition:"), CGPointMakeCopy(_position));
    objj_msgSend(self, "registerEditingNotification:", objj_msgSend(CPNotification, "notificationWithName:object:", ElementGeometryDidChangeNotification, self));
    _position = CGPointMakeCopy(aPosition);
}
});
instance_methods[8] = new objj_method(sel_registerName("position"), function(self, _cmd)
{ with(self)
{
    return _position;
}
});
instance_methods[9] = new objj_method(sel_registerName("setSize:"), function(self, _cmd, aSize)
{ with(self)
{
    if (CGSizeEqualToSize(_size, aSize))
        return;
    objj_msgSend(self, "registerEditingUndoWithSelector:object:", sel_registerName("setSize:"), CGSizeMakeCopy(_size));
    objj_msgSend(self, "registerEditingNotification:", objj_msgSend(CPNotification, "notificationWithName:object:", ElementGeometryDidChangeNotification, self));
    _size = aSize;
}
});
instance_methods[10] = new objj_method(sel_registerName("size"), function(self, _cmd)
{ with(self)
{
    return _size;
}
});
instance_methods[11] = new objj_method(sel_registerName("setRotationRadians:"), function(self, _cmd, aRotationRadians)
{ with(self)
{
    if (_rotationRadians == aRotationRadians)
        return;
    objj_msgSend(self, "registerEditingUndoWithSelector:object:", sel_registerName("setRotationRadians:"), _rotationRadians);
    objj_msgSend(self, "registerEditingNotification:", objj_msgSend(CPNotification, "notificationWithName:object:", ElementGeometryDidChangeNotification, self));
    _rotationRadians = aRotationRadians;
}
});
instance_methods[12] = new objj_method(sel_registerName("rotationRadians"), function(self, _cmd)
{ with(self)
{
    return _rotationRadians;
}
});
instance_methods[13] = new objj_method(sel_registerName("rotationDegrees"), function(self, _cmd)
{ with(self)
{
    return _rotationDegrees * 180 / PI;
}
});
instance_methods[14] = new objj_method(sel_registerName("isFlippedHorizontal"), function(self, _cmd)
{ with(self)
{
    return _isFlippedHorizontal;
}
});
instance_methods[15] = new objj_method(sel_registerName("setFlippedHorizontal:"), function(self, _cmd, isFlippedHorizontal)
{ with(self)
{
    if (_isFlippedHorizontal == isFlippedHorizontal)
        return;
    objj_msgSend(self, "registerEditingUndoWithSelector:object:", sel_registerName("setFlippedHorizontal:"), _isFlippedHorizontal);
    objj_msgSend(self, "registerEditingNotification:", objj_msgSend(CPNotification, "notificationWithName:object:", ElementGeometryDidChangeNotification, self));
    _isFlippedHorizontal = isFlippedHorizontal;
}
});
instance_methods[16] = new objj_method(sel_registerName("isFlippedVertical"), function(self, _cmd)
{ with(self)
{
    return _isFlippedVertical;
}
});
instance_methods[17] = new objj_method(sel_registerName("setFlippedVertical:"), function(self, _cmd, isFlippedVertical)
{ with(self)
{
    if (_isFlippedVertical == isFlippedVertical)
        return;
    objj_msgSend(self, "registerEditingUndoWithSelector:object:", sel_registerName("setFlippedVertical:"), _isFlippedVertical);
    objj_msgSend(self, "registerEditingNotification:", objj_msgSend(CPNotification, "notificationWithName:object:", ElementGeometryDidChangeNotification, self));
    _isFlippedVertical = isFlippedVertical;
}
});
instance_methods[18] = new objj_method(sel_registerName("setGeometryName:"), function(self, _cmd, aName)
{ with(self)
{
    if (_geometryName == aName)
        return;
    _geometryName = aName;
    _adjustments = objj_msgSend(objj_msgSend(SKGeometry, "geometryForName:", _geometryName), "adjustments");
    _adjustmentValues = objj_msgSend(objj_msgSend(SKGeometry, "geometryForName:", _geometryName), "defaultAdjustmentValues");
}
});
instance_methods[19] = new objj_method(sel_registerName("geometryName"), function(self, _cmd)
{ with(self)
{
    return _geometryName;
}
});
instance_methods[20] = new objj_method(sel_registerName("adjustments"), function(self, _cmd)
{ with(self)
{
    return _adjustments;
}
});
instance_methods[21] = new objj_method(sel_registerName("adjustmentValues"), function(self, _cmd)
{ with(self)
{
    return _adjustmentValues;
}
});
instance_methods[22] = new objj_method(sel_registerName("valueForAdjustmentWithName:"), function(self, _cmd, aName)
{ with(self)
{
    return objj_msgSend(_adjustmentValues, "objectForKey:", aName);
}
});
instance_methods[23] = new objj_method(sel_registerName("setValue:forAdjustmentWithName:"), function(self, _cmd, aValue, aName)
{ with(self)
{
    var oldValue = objj_msgSend(self, "valueForAdjustmentWithName:", aName),
        newValue = objj_msgSend(objj_msgSend(_adjustments, "objectForKey:", aName), "actualValueForProposedValue:", aValue);
    if (CGPointEqualToPoint(oldValue, newValue))
        return;
    objj_msgSend(_adjustmentValues, "setObject:forKey:", newValue, aName);
    var userInfo = objj_msgSend(CPDictionary, "dictionaryWithObject:forKey:", aName, SKShapeAdjustmentName);
    objj_msgSend(objj_msgSend(self, "prepareWithInvocationTarget:", self), "setValue:forAdjustmentWithName:", oldValue, aName);
    objj_msgSend(self, "registerEditingNotification:", objj_msgSend(CPNotification, "notificationWithName:object:userInfo:", SKShapeAdjustmentValueDidChangeNotification, self, userInfo));
}
});
instance_methods[24] = new objj_method(sel_registerName("setFill:"), function(self, _cmd, aFill)
{ with(self)
{
    if (_fill == aFill)
        return;
    objj_msgSend(self, "registerEditingNotification:", objj_msgSend(CPNotification, "notificationWithName:object:", SKShapeFillDidChangeNotification, self));
    _fill = aFill;
}
});
instance_methods[25] = new objj_method(sel_registerName("fill"), function(self, _cmd)
{ with(self)
{
    return _fill;
}
});
instance_methods[26] = new objj_method(sel_registerName("setFillColor:"), function(self, _cmd, aColor)
{ with(self)
{
    objj_msgSend(self, "setFill:", objj_msgSend(SKFill, "solidFillWithColor:", aColor));
}
});
instance_methods[27] = new objj_method(sel_registerName("fillColor"), function(self, _cmd)
{ with(self)
{
    return objj_msgSend(_fill, "color");
}
});
instance_methods[28] = new objj_method(sel_registerName("setStrokeColor:"), function(self, _cmd, aColor)
{ with(self)
{
    if (_strokeColor == aColor)
        return;
    objj_msgSend(self, "registerEditingEditingUndoWithSelector:object:", sel_registerName("setStrokeColor:"), _strokeColor);
    objj_msgSend(self, "registerEditingNotification:", objj_msgSend(CPNotification, "notificationWithName:object:", SKShapeStrokeColorDidChangeNotification, self));
    _strokeColor = aColor;
}
});
instance_methods[29] = new objj_method(sel_registerName("strokeColor"), function(self, _cmd)
{ with(self)
{
    return _strokeColor;
}
});
instance_methods[30] = new objj_method(sel_registerName("setStrokeWidth:"), function(self, _cmd, aWidth)
{ with(self)
{
    if (_strokeWidth == aWidth)
        return;
    objj_msgSend(self, "registerEditingUndoWithSelector:object:", sel_registerName("setStrokeWidth:"), _strokeColor);
    objj_msgSend(self, "registerEditingNotification:", objj_msgSend(CPNotification, "notificationWithName:object:", SKShapeStrokeWidthDidChangeNotification, self));
    _strokeWidth = aWidth;
}
});
instance_methods[31] = new objj_method(sel_registerName("strokeWidth"), function(self, _cmd)
{ with(self)
{
    return _strokeWidth;
}
});
instance_methods[32] = new objj_method(sel_registerName("setOpacity:"), function(self, _cmd, anOpacity)
{ with(self)
{
    if (_opacity == anOpacity)
        return;
    objj_msgSend(self, "registerEditingNotification:", objj_msgSend(CPNotification, "notificationWithName:object:", SKShapeOpacityDidChangeNotification, self));
    _opacity = anOpacity;
}
});
instance_methods[33] = new objj_method(sel_registerName("opacity"), function(self, _cmd)
{ with(self)
{
    return _opacity;
}
});
instance_methods[34] = new objj_method(sel_registerName("computedDefaultTextAttributes"), function(self, _cmd)
{ with(self)
{
    var slideMaster = objj_msgSend(self, "slideMaster");
    if (objj_msgSend(self, "isPlaceholder"))
    {
        var placeholderType = objj_msgSend(self, "placeholderType");
        if (placeholderType == SKShapeCenterdTitlePlaceholderType || placeholderType == SKShapeSubtitlePlaceholderType || placeholderType == SKShapeTitlePlaceholderType)
            return objj_msgSend(slideMaster, "titleTextAttributes");
        return objj_msgSend(slideMaster, "bodyTextAttributes");
    }
    return objj_msgSend(slideMaster, "otherTextAttributes");
}
});
instance_methods[35] = new objj_method(sel_registerName("setTextBody:"), function(self, _cmd, aString)
{ with(self)
{
    if (_textBody == aString)
        return;
    _textBody = aString;
    objj_msgSend(self, "registerEditingNotification:", objj_msgSend(CPNotification, "notificationWithName:object:", SKShapeTextBodyDidChangeNotification, self));
}
});
instance_methods[36] = new objj_method(sel_registerName("textBody"), function(self, _cmd)
{ with(self)
{
    return _textBody;
}
});
instance_methods[37] = new objj_method(sel_registerName("setIsPlaceholder:"), function(self, _cmd, shouldBePlaceholder)
{ with(self)
{
    _isPlaceholder = shouldBePlaceholder;
}
});
instance_methods[38] = new objj_method(sel_registerName("isPlaceholder"), function(self, _cmd)
{ with(self)
{
    return _isPlaceholder;
}
});
instance_methods[39] = new objj_method(sel_registerName("setPlaceholderType:"), function(self, _cmd, aPlaceholderType)
{ with(self)
{
    _placeholderType = aPlaceholderType;
}
});
instance_methods[40] = new objj_method(sel_registerName("placeholderType"), function(self, _cmd)
{ with(self)
{
    return _placeholderType;
}
});
instance_methods[41] = new objj_method(sel_registerName("setPlaceholderIdx:"), function(self, _cmd, aPlaceholderIdx)
{ with(self)
{
    _placeholderIdx = aPlaceholderIdx;
}
});
instance_methods[42] = new objj_method(sel_registerName("placeholderIdx"), function(self, _cmd)
{ with(self)
{
    return _placeholderIdx;
}
});
instance_methods[43] = new objj_method(sel_registerName("placeholderPrompt"), function(self, _cmd)
{ with(self)
{
    if (!_isPlaceholder)
        return nil;
    if (_placeholderType == SKShapeBodyPlaceholderType)
        return "Double-click to add text";
    if (_placeholderType == SKShapeCenterdTitlePlaceholderType)
        return "Double-click to add title";
    if (_placeholderType == SKShapeSubtitlePlaceholderType)
        return "Double-click to add subtitle";
    if (_placeholderType == SKShapeTitlePlaceholderType)
        return "Double-click to add title";
    return "Double-click to add text";
}
});
class_addMethods(the_class, instance_methods);
}
{
var the_class = objj_getClass("SKShape")
if(!the_class) objj_exception_throw(new objj_exception(OBJJClassNotFoundException, "*** Could not find definition for class \"SKShape\""));
var meta_class = _class_getMeta(the_class);var instance_methods = [];
instance_methods[0] = new objj_method(sel_registerName("copy"), function(self, _cmd)
{ with(self)
{
    return objj_msgSend(objj_msgSend(SKShape, "alloc"), "initWithShape:", self);
}
});
class_addMethods(the_class, instance_methods);
}
var SKShapeSlideBaseKey = "SKShapeSlideBaseKey",
    SKShapeLocksKey = "SKShapeLocksKeys",
    SKShapeSizeKey = "SKShapeSizeKey",
    SKShapePositionKey = "SKShapePositionKey",
    SKShapeRotationRadiansKey = "SKShapeRotationRadiansKey",
    SKShapeFlippedHorizontalKey = "SKShapeFlippedHorizontalKey",
    SKShapeFlippedVerticalKey = "SKShapeFlippedVerticalKey",
    SKShapeGeometryNameKey = "SKShapeGeometryNameKey",
    SKShapeFillKey = "SKShapeFillKey",
    SKShapeFillColorKey = "SKShapeFillColorKey",
    SKShapeStrokeColorKey = "SKShapeStrokeColorKey",
    SKShapeStrokeWidthKey = "SKShapeStrokeWidthKey",
    SKShapeOpacityKey = "SKShapeOpacityKey",
    SKShapeAdjustmentValuesKey = "SKShapeAdjustmentValuesKey",
    SKShapeTextBodyKey = "SKShapeTextBodyKey",
    SKShapeIsPlaceholderKey = "SKShapeIsPlaceholderKey",
    SKShapePlaceholderTypeKey = "SKShapePlaceholderTypeKey",
    SKShapePlaceholderIdxKey = "SKShapePlaceholderIdxKey";
{
var the_class = objj_getClass("SKShape")
if(!the_class) objj_exception_throw(new objj_exception(OBJJClassNotFoundException, "*** Could not find definition for class \"SKShape\""));
var meta_class = _class_getMeta(the_class);var instance_methods = [];
instance_methods[0] = new objj_method(sel_registerName("initWithCoder:"), function(self, _cmd, aCoder)
{ with(self)
{
    self = objj_msgSendSuper({ receiver:self, super_class:objj_getClass("SKEditable") }, "init");
    if (self)
    {
        _slideBase = objj_msgSend(aCoder, "decodeObjectForKey:", SKShapeSlideBaseKey);
        _locks = objj_msgSend(aCoder, "decodeIntForKey:", SKShapeLocksKey);
        _size = objj_msgSend(aCoder, "decodeSizeForKey:", SKShapeSizeKey);
        _position = objj_msgSend(aCoder, "decodePointForKey:", SKShapePositionKey);
        _isFlippedHorizontal = objj_msgSend(aCoder, "decodeBoolForKey:", SKShapeFlippedHorizontalKey);
        _isFlippedVertical = objj_msgSend(aCoder, "decodeBoolForKey:", SKShapeFlippedVerticalKey);
        _rotationRadians = objj_msgSend(aCoder, "decodeFloatForKey:", SKShapeRotationRadiansKey);
        _geometryName = objj_msgSend(aCoder, "decodeObjectForKey:", SKShapeGeometryNameKey);
        _adjustments = objj_msgSend(objj_msgSend(SKGeometry, "geometryForName:", _geometryName), "adjustments");
        _fill = objj_msgSend(aCoder, "decodeObjectForKey:", SKShapeFillKey);
        if (objj_msgSend(aCoder, "containsValueForKey:", SKShapeOpacityKey))
            _opacity = objj_msgSend(aCoder, "decodeFloatForKey:", SKShapeOpacityKey);
        else
            _opacity = 1.0;
        _fillColor = objj_msgSend(aCoder, "decodeObjectForKey:", SKShapeFillColorKey);
        _strokeColor = objj_msgSend(aCoder, "decodeObjectForKey:", SKShapeStrokeColorKey);
        _strokeWidth = objj_msgSend(aCoder, "decodeFloatForKey:", SKShapeStrokeWidthKey);
        if (!_fill && _fillColor)
            _fill = objj_msgSend(SKFill, "solidFillWithColor:", objj_msgSend(SKColor, "colorWithColor:adjustments:", _fillColor, nil));
        _adjustmentValues = objj_msgSend(aCoder, "decodeObjectForKey:", SKShapeAdjustmentValuesKey);
        _textBody = objj_msgSend(aCoder, "decodeObjectForKey:", SKShapeTextBodyKey);
        _isPlaceholder = objj_msgSend(aCoder, "decodeObjectForKey:", SKShapeIsPlaceholderKey);
        if (_isPlaceholder)
        {
            _placeholderType = objj_ms