from JascApp import *

def ScriptProperties():
    return {
        'Author': u'Jasc Software, Inc.',
        'Copyright': u'2004',
        'Description': u'',
        'Host': u'Paint Shop Pro 9',
        'Host Version': u'9.00'
        }


def Do(Environment):
    # EnableOptimizedScriptUndo
    App.Do( Environment, 'EnableOptimizedScriptUndo', {
            'GeneralSettings': {
                'ExecutionMode': App.Constants.ExecutionMode.Silent, 
                'AutoActionMode': App.Constants.AutoActionMode.Match, 
                'Version': ((9,0,0),1)
                }
            }) 

    # PresetShapes
    App.Do( Environment, 'PresetShapes', {
            'LineWidth': 3, 
            'Angle': 0, 
            'ConstrainRect': False, 
            'Antialias': True, 
            'BBox': ((32.5,52.5), 138, 107), 
            'Fill': {
                'Color': (192,192,192), 
                'Pattern': None, 
                'Gradient': None, 
                'Texture': None, 
                'Art': None
                }, 
            'Stroke': {
                'Color': (0,0,255), 
                'Pattern': None, 
                'Gradient': None, 
                'Texture': None, 
                'Art': None
                }, 
            'JointStyle': App.Constants.JointStyle.Miter, 
            'CreateAsVector': True, 
            'RetainStyle': False, 
            'LineStyle': {
                'Name': u'+Solid', 
                'FirstCap': (u'Butt',7.21,7.21), 
                'LastCap': (u'Butt',1,1), 
                'FirstSegCap': None, 
                'LastSegCap': None, 
                'UseSegmentCaps': False, 
                'Segments': None
                }, 
            'LineStyleIndex': 0, 
            'ShapeName': u'+Callout 1', 
            'ShapeOrientation': App.Constants.Orientation.Normal, 
            'keShapeIconSizeLarge': True, 
            'Position': (32.5,52.5), 
            'LeftTop': (32.5,52.5), 
            'RightBottom': (170.5,159.5), 
            'RotationMode': 0, 
            'MiterLimit': 15, 
            'StyledLineCategory': u'All', 
            'StyledLineView': App.Constants.ResourceListView.SmallThumbnails, 
            'PresetShapeCategory': u'All', 
            'PresetShapeView': App.Constants.ResourceListView.LargeThumbnails, 
            'GeneralSettings': {
                'ExecutionMode': App.Constants.ExecutionMode.Silent, 
                'AutoActionMode': App.Constants.AutoActionMode.Match, 
                'Version': ((9,0,0),1)
                }
            }) 

