#!/usr/bin/env python




##################################################
## DEPENDENCIES
import sys
import os
import os.path
try:
    import builtins as builtin
except ImportError:
    import __builtin__ as builtin
from os.path import getmtime, exists
import time
import types
from Cheetah.Version import MinCompatibleVersion as RequiredCheetahVersion
from Cheetah.Version import MinCompatibleVersionTuple as RequiredCheetahVersionTuple
from Cheetah.Template import Template
from Cheetah.DummyTransaction import *
from Cheetah.NameMapper import NotFound, valueForName, valueFromSearchList, valueFromFrameOrSearchList
from Cheetah.CacheRegion import CacheRegion
import Cheetah.Filters as Filters
import Cheetah.ErrorCatchers as ErrorCatchers
import fbcktemplate
from fbcktemplate import FbckTemplate
import math

##################################################
## MODULE CONSTANTS
VFFSL=valueFromFrameOrSearchList
VFSL=valueFromSearchList
VFN=valueForName
currentTime=time.time
__CHEETAH_version__ = '2.4.2.1'
__CHEETAH_versionTuple__ = (2, 4, 2, 'final', 1)
__CHEETAH_genTime__ = 1316108499.4293139
__CHEETAH_genTimestamp__ = 'Thu Sep 15 10:41:39 2011'
__CHEETAH_src__ = 'fbcktemplate/fbckdetails.tmpl'
__CHEETAH_srcLastModified__ = 'Mon Mar 28 13:47:17 2011'
__CHEETAH_docstring__ = 'Autogenerated by Cheetah: The Python-Powered Template Engine'

if __CHEETAH_versionTuple__ < RequiredCheetahVersionTuple:
    raise AssertionError(
      'This template was compiled with Cheetah version'
      ' %s. Templates compiled before version %s must be recompiled.'%(
         __CHEETAH_version__, RequiredCheetahVersion))

##################################################
## CLASSES

class fbckdetails(FbckTemplate):

    ##################################################
    ## CHEETAH GENERATED METHODS


    def __init__(self, *args, **KWs):

        super(fbckdetails, self).__init__(*args, **KWs)
        if not self._CHEETAH__instanceInitialized:
            cheetahKWArgs = {}
            allowedKWs = 'searchList namespaces filter filtersLib errorCatcher'.split()
            for k,v in KWs.items():
                if k in allowedKWs: cheetahKWArgs[k] = v
            self._initCheetahInstance(**cheetahKWArgs)
        

    def writeBody(self, **KWS):



        ## CHEETAH: main method generated for this template
        trans = KWS.get("trans")
        if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)):
            trans = self.transaction # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else: _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter
        
        ########################################
        ## START - generated method body
        
        first = (int(VFFSL(SL,"M_PAGE_NR",True)) - 1) * VFFSL(SL,"NR_MEASUREMENTS_PER_PAGE",True) + 1
        WINDOW_HEIGHT = len(VFFSL(SL,"used_indices",False)('M', VFFSL(SL,"first",True), VFFSL(SL,"NR_MEASUREMENTS_PER_PAGE",True))) * 20 + 790
        write(u'''4 0 1
beginScreenProperties
major 4
minor 0
release 1
x 376
y 62
w 1000
h ''')
        _v = VFFSL(SL,"WINDOW_HEIGHT",True) # u'$WINDOW_HEIGHT' on line 16, col 3
        if _v is not None: write(_filter(_v, rawExpr=u'$WINDOW_HEIGHT')) # from line 16, col 3.
        write(u'''
font "helvetica-medium-r-12.0"
ctlFont "helvetica-medium-r-12.0"
btnFont "helvetica-medium-r-12.0"
fgColor index 14
bgColor index 5
textColor index 14
ctlFgColor1 index 14
ctlFgColor2 index 0
ctlBgColor1 index 0
ctlBgColor2 index 14
topShadowColor index 1
botShadowColor index 11
showGrid
gridSize 8
endScreenProperties

# (Rectangle)
object activeRectangleClass
beginObjectProperties
major 4
minor 0
release 0
x 8
y 408
w 984
''')
        h = VFFSL(SL,"WINDOW_HEIGHT",True) - 450
        write(u'''h ''')
        _v = VFFSL(SL,"h",True) # u'$h' on line 43, col 3
        if _v is not None: write(_filter(_v, rawExpr=u'$h')) # from line 43, col 3.
        write(u'''
lineColor index 3
fill
fillColor index 3
endObjectProperties

# (Text Control)
object activeXTextDspClass
beginObjectProperties
major 4
minor 5
release 0
x 7
''')
        y = VFFSL(SL,"WINDOW_HEIGHT",True) - 25
        write(u'''y ''')
        _v = VFFSL(SL,"y",True) # u'$y' on line 57, col 3
        if _v is not None: write(_filter(_v, rawExpr=u'$y')) # from line 57, col 3.
        write(u'''
w 176
h 24
controlPv "SIOC:SYS0:AL00:MODE"
font "helvetica-medium-r-12.0"
fgColor index 14
bgColor index 4
useDisplayBg
limitsFromDb
nullColor index 18
nullCondition "disabled"
newPos
objType "controls"
noExecuteClipMask
endObjectProperties

# (Text Update)
object TextupdateClass
beginObjectProperties
major 10
minor 0
release 0
x 844
''')
        y = VFFSL(SL,"WINDOW_HEIGHT",True) - 25
        write(u'''y ''')
        _v = VFFSL(SL,"y",True) # u'$y' on line 81, col 3
        if _v is not None: write(_filter(_v, rawExpr=u'$y')) # from line 81, col 3.
        write(u'''
w 148
h 20
controlPv "SIOC:SYS0:AL00:TOD"
fgColor index 14
bgColor index 7
font "helvetica-medium-r-12.0"
endObjectProperties


''')
        self._handleCheetahInclude(VFFSL(SL,"TEMPLATES_DIR",True) + "details_master.edl", trans=trans, includeFrom="file", raw=True)
        write(u'''
''')
        self._handleCheetahInclude(VFFSL(SL,"BEAMLINE",True), trans=trans, includeFrom="str", raw=False)
        write(u'''
# (Related Display)
object relatedDisplayClass
beginObjectProperties
major 4
minor 2
release 0
x 16
y 174
w 120
h 20
fgColor index 14
bgColor index 3
topShadowColor index 1
botShadowColor index 11
font "helvetica-medium-r-12.0"
buttonLabel "Patterns & Rate..."
numPvs 4
numDsps 1
displayFileName {
  0 "fbck_poi.edl"
}
symbols {
  0 "''')
        _v = VFFSL(SL,"SYMBOLS",True) # u'$SYMBOLS' on line 117, col 6
        if _v is not None: write(_filter(_v, rawExpr=u'$SYMBOLS')) # from line 117, col 6.
        write(u'''"
}
endObjectProperties

# (Text Control)
object activeXTextDspClass
beginObjectProperties
major 4
minor 5
release 0
x 61
y 144
w 42
h 17
controlPv "''')
        _v = VFFSL(SL,"RATE_PV",True) # u'$RATE_PV' on line 131, col 12
        if _v is not None: write(_filter(_v, rawExpr=u'$RATE_PV')) # from line 131, col 12.
        write(u'''"
format "string"
font "helvetica-bold-r-10.0"
fontAlign "center"
fgColor index 14
bgColor index 3
useDisplayBg
autoHeight
limitsFromDb
nullColor index 14
useHexPrefix
newPos
objType "monitors"
noExecuteClipMask
endObjectProperties

# (Rectangle)
object activeRectangleClass
beginObjectProperties
major 4
minor 0
release 0
x 61
y 144
w 42
h 17
lineColor index 3
fill
fillColor index 3
lineWidth 3
visPv "''')
        _v = VFFSL(SL,"STATE_PV",True) # u'$STATE_PV' on line 161, col 8
        if _v is not None: write(_filter(_v, rawExpr=u'$STATE_PV')) # from line 161, col 8.
        write(u'''"
visMin "0"
visMax "1"
endObjectProperties

# (Static Text)
object activeXTextClass
beginObjectProperties
major 4
minor 1
release 0
x 61
y 144
w 42
h 17
font "helvetica-bold-r-10.0"
fontAlign "center"
fgColor index 14
bgColor index 3
visPv "''')
        _v = VFFSL(SL,"STATUS_PV",True) # u'$STATUS_PV' on line 180, col 8
        if _v is not None: write(_filter(_v, rawExpr=u'$STATUS_PV')) # from line 180, col 8.
        write(u'''"
visMin "0"
visMax "1"
value {
  "0"
}
endObjectProperties


# (Shell Command)
object shellCmdClass
beginObjectProperties
major 4
minor 2
release 0
x 611
y 115
w 66
h 20
fgColor index 14
bgColor index 4
topShadowColor index 1
botShadowColor index 11
font "helvetica-bold-r-12.0"
buttonLabel "Regold..."
numCmds 1
command {
  0 "''')
        _v = VFFSL(SL,"REGOLD_COMMAND",True) # u'$REGOLD_COMMAND' on line 207, col 6
        if _v is not None: write(_filter(_v, rawExpr=u'$REGOLD_COMMAND')) # from line 207, col 6.
        write(u'''"
}
endObjectProperties

# (Shell Command)
object shellCmdClass
beginObjectProperties
major 4
minor 2
release 0
x 724
y 115
w 112
h 20
fgColor index 14
bgColor index 4
topShadowColor index 1
botShadowColor index 11
font "helvetica-medium-r-10.0"
buttonLabel "Config / Ref. Orbit..."
numCmds 1
command {
  0 "''')
        _v = VFFSL(SL,"CONFIG_REF_ORBIT_COMMAND",True) # u'$CONFIG_REF_ORBIT_COMMAND' on line 229, col 6
        if _v is not None: write(_filter(_v, rawExpr=u'$CONFIG_REF_ORBIT_COMMAND')) # from line 229, col 6.
        write(u'''"
}
endObjectProperties

# (Text Control)
object activeXTextDspClass
beginObjectProperties
major 4
minor 3
release 0
x 886
y 117
w 85
h 16
controlPv "''')
        _v = VFFSL(SL,"PGAIN_PV",True) # u'$PGAIN_PV' on line 243, col 12
        if _v is not None: write(_filter(_v, rawExpr=u'$PGAIN_PV')) # from line 243, col 12.
        write(u'''"
font "helvetica-medium-r-10.0"
fgColor index 14
fgAlarm
bgColor index 3
editable
autoHeight
motifWidget
precision 4
nullColor index 1
useAlarmBorder
newPos
objType "controls"
endObjectProperties

# (Text Control)
object activeXTextDspClass
beginObjectProperties
major 4
minor 3
release 0
x 590
y 721
w 84
h 16
controlPv "''')
        _v = VFFSL(SL,"AVGCNT_PV",True) # u'$AVGCNT_PV' on line 268, col 12
        if _v is not None: write(_filter(_v, rawExpr=u'$AVGCNT_PV')) # from line 268, col 12.
        write(u'''"
font "helvetica-medium-r-10.0"
fgColor index 14
fgAlarm
bgColor index 3
limitsFromDb
nullColor index 1
colorPv "''')
        _v = VFFSL(SL,"AVGCNT_PV",True) # u'$AVGCNT_PV' on line 275, col 10
        if _v is not None: write(_filter(_v, rawExpr=u'$AVGCNT_PV')) # from line 275, col 10.
        write(u'''"
newPos
objType "controls"
endObjectProperties

''')
        # ############# States
        _v = VFFSL(SL,"paginate",False)(VFFSL(SL,"NR_STATE_PAGES",True), 122, 445, 's') # u"$paginate($NR_STATE_PAGES, 122, 445, 's')" on line 281, col 1
        if _v is not None: write(_filter(_v, rawExpr=u"$paginate($NR_STATE_PAGES, 122, 445, 's')")) # from line 281, col 1.
        write(u'''
''')
        colFormat = "Value P{0}"
        for i in range(1,int(VFFSL(SL,"TOTALPOI",True))+1): # generated from line 283, col 1
            x = 332+100 + (VFFSL(SL,"i",True)-1) * 100
            write(u'''# (Static Text)
object activeXTextClass
beginObjectProperties
major 4
minor 1
release 0
x ''')
            _v = VFFSL(SL,"x",True) # u'$x' on line 291, col 3
            if _v is not None: write(_filter(_v, rawExpr=u'$x')) # from line 291, col 3.
            write(u'''
y 416
w 115
h 20
font "helvetica-bold-r-12.0"
fontAlign "center"
fgColor index 26
bgColor index 4
useDisplayBg
value {
  "''')
            _v = VFN(VFFSL(SL,"colFormat",True),"format",False)(VFFSL(SL,"i",True)) # u'$colFormat.format($i)' on line 301, col 4
            if _v is not None: write(_filter(_v, rawExpr=u'$colFormat.format($i)')) # from line 301, col 4.
            write(u'''"
}
endObjectProperties
''')
        write(u'''
''')
        x = x + 100
        write(u'''# (Static Text)
object activeXTextClass
beginObjectProperties
major 4
minor 1
release 0
x ''')
        _v = VFFSL(SL,"x",True) # u'$x' on line 313, col 3
        if _v is not None: write(_filter(_v, rawExpr=u'$x')) # from line 313, col 3.
        write(u'''
y 416
w 115
h 20
font "helvetica-bold-r-12.0"
fontAlign "center"
fgColor index 26
bgColor index 4
useDisplayBg
value {
  "Upper Limit"
}
endObjectProperties

''')
        top = 480
        h = 16
        vmargin = 3
        row = 0
        first = (int(VFFSL(SL,"S_PAGE_NR",True)) - 1) * VFFSL(SL,"NR_STATES_PER_PAGE",True) + 1
        for i in VFFSL(SL,"used_indices",False)('S', VFFSL(SL,"first",True), VFFSL(SL,"NR_STATES_PER_PAGE",True)): # generated from line 332, col 1
            y = VFFSL(SL,"top",True) + (VFFSL(SL,"h",True) + VFFSL(SL,"vmargin",True)) * VFFSL(SL,"row",True)
            write(u'''# (Static Text)
object activeXTextClass
beginObjectProperties
major 4
minor 1
release 0
x 16
y ''')
            _v = VFFSL(SL,"y",True) # u'$y' on line 341, col 3
            if _v is not None: write(_filter(_v, rawExpr=u'$y')) # from line 341, col 3.
            write(u'''
w 166
h ''')
            _v = VFFSL(SL,"h",True) # u'$h' on line 343, col 3
            if _v is not None: write(_filter(_v, rawExpr=u'$h')) # from line 343, col 3.
            write(u'''
font "helvetica-bold-r-12.0"
fgColor index 14
bgColor index 3
useDisplayBg
value {
  "''')
            _v = VFFSL(SL,"indexed_var",False)('S{0}NAME', VFFSL(SL,"i",True)) # u"$indexed_var('S{0}NAME', $i)" on line 349, col 4
            if _v is not None: write(_filter(_v, rawExpr=u"$indexed_var('S{0}NAME', $i)")) # from line 349, col 4.
            write(u''' (first green BPM)"
}
autoSize
endObjectProperties

''')
            if int(VFFSL(SL,"TOTALPOI",True)) > 1: # generated from line 354, col 1
                write(u'''# (Shell Command) or (Related Display)
''')
                if VFFSL(SL,"GENERATE_ALL",True): # generated from line 356, col 1
                    write(u'''object relatedDisplayClass
''')
                else: # generated from line 358, col 1
                    write(u'''object shellCmdClass
''')
                write(u'''beginObjectProperties
major 4
minor 2
release 0
x 200
y ''')
                _v = VFFSL(SL,"y",True) # u'$y' on line 366, col 3
                if _v is not None: write(_filter(_v, rawExpr=u'$y')) # from line 366, col 3.
                write(u'''
w 20
h ''')
                _v = VFFSL(SL,"h",True) # u'$h' on line 368, col 3
                if _v is not None: write(_filter(_v, rawExpr=u'$h')) # from line 368, col 3.
                write(u'''
fgColor index 14
bgColor index 3
topShadowColor index 1
botShadowColor index 11
font "helvetica-bold-r-14.0"
buttonLabel "..."
''')
                if VFFSL(SL,"GENERATE_ALL",True): # generated from line 375, col 1
                    write(u'''numDsps 1
displayFileName {
    0 "''')
                    _v = VFN(VFFSL(SL,"OFFSETS_DISPLAY",True),"format",False)(VFFSL(SL,"i",True)) # u'$OFFSETS_DISPLAY.format($i)' on line 378, col 8
                    if _v is not None: write(_filter(_v, rawExpr=u'$OFFSETS_DISPLAY.format($i)')) # from line 378, col 8.
                    write(u'''"
}
''')
                else: # generated from line 380, col 1
                    write(u'''numCmds 1
command {
  0 "''')
                    _v = VFN(VFFSL(SL,"OFFSETS_COMMAND",True),"format",False)(VFFSL(SL,"i",True)) # u'$OFFSETS_COMMAND.format($i)' on line 383, col 6
                    if _v is not None: write(_filter(_v, rawExpr=u'$OFFSETS_COMMAND.format($i)')) # from line 383, col 6.
                    write(u'''"
}
''')
                write(u'''endObjectProperties
''')
            write(u'''
# (Text Control)
object activeXTextDspClass
beginObjectProperties
major 4
minor 3
release 0
x 260
y ''')
            _v = VFFSL(SL,"y",True) # u'$y' on line 396, col 3
            if _v is not None: write(_filter(_v, rawExpr=u'$y')) # from line 396, col 3.
            write(u'''
w 61
h ''')
            _v = VFFSL(SL,"h",True) # u'$h' on line 398, col 3
            if _v is not None: write(_filter(_v, rawExpr=u'$h')) # from line 398, col 3.
            write(u'''
controlPv "''')
            _v = VFFSL(SL,"indexed_var",False)('S{0}DES_PV', i) # u"$indexed_var('S{0}DES_PV', i)" on line 399, col 12
            if _v is not None: write(_filter(_v, rawExpr=u"$indexed_var('S{0}DES_PV', i)")) # from line 399, col 12.
            write(u'''"
font "helvetica-medium-r-10.0"
fgColor index 14
fgAlarm
bgColor index 4
editable
autoHeight
motifWidget
precision 4
nullColor index 1
useAlarmBorder
newPos
objType "controls"
endObjectProperties

# (Text Control)
object activeXTextDspClass
beginObjectProperties
major 4
minor 3
release 0
x 352
y ''')
            _v = VFFSL(SL,"y",True) # u'$y' on line 421, col 3
            if _v is not None: write(_filter(_v, rawExpr=u'$y')) # from line 421, col 3.
            write(u'''
w 84
h ''')
            _v = VFFSL(SL,"h",True) # u'$h' on line 423, col 3
            if _v is not None: write(_filter(_v, rawExpr=u'$h')) # from line 423, col 3.
            write(u'''
controlPv "''')
            _v = VFFSL(SL,"indexed_var",False)('$S{0}LOLO_PV', VFFSL(SL,"i",True)) # u"$indexed_var('$S{0}LOLO_PV', $i)" on line 424, col 12
            if _v is not None: write(_filter(_v, rawExpr=u"$indexed_var('$S{0}LOLO_PV', $i)")) # from line 424, col 12.
            write(u'''"
font "helvetica-medium-r-10.0"
fgColor index 14
bgColor index 4
editable
autoHeight
motifWidget
precision 4
nullColor index 1
useAlarmBorder
newPos
objType "controls"
endObjectProperties

''')
            for j in range(1,int(VFFSL(SL,"TOTALPOI",True))+1): # generated from line 438, col 1
                x = 352+100 + (VFFSL(SL,"j",True)-1) * 100
                write(u'''# (Text Control)
object activeXTextDspClass
beginObjectProperties
major 4
minor 3
release 0
x ''')
                _v = VFFSL(SL,"x",True) # u'$x' on line 446, col 3
                if _v is not None: write(_filter(_v, rawExpr=u'$x')) # from line 446, col 3.
                write(u'''
y ''')
                _v = VFFSL(SL,"y",True) # u'$y' on line 447, col 3
                if _v is not None: write(_filter(_v, rawExpr=u'$y')) # from line 447, col 3.
                write(u'''
w 84
h ''')
                _v = VFFSL(SL,"h",True) # u'$h' on line 449, col 3
                if _v is not None: write(_filter(_v, rawExpr=u'$h')) # from line 449, col 3.
                write(u'''
controlPv "''')
                _v = VFFSL(SL,"indexed_var",False)('$S{0}P{1}_PV'.format(VFFSL(SL,"i",True), VFFSL(SL,"j",True)), VFFSL(SL,"i",True)) # u"$indexed_var('$S{0}P{1}_PV'.format($i, $j), $i)" on line 450, col 12
                if _v is not None: write(_filter(_v, rawExpr=u"$indexed_var('$S{0}P{1}_PV'.format($i, $j), $i)")) # from line 450, col 12.
                write(u'''"
font "helvetica-medium-r-10.0"
fgColor index 14
bgColor index 4
limitsFromDb
nullColor index 1
useAlarmBorder
fgAlarm
newPos
objType "controls"
endObjectProperties
''')
            write(u'''
# (Text Control)
''')
            x = x + 100
            write(u'''object activeXTextDspClass
beginObjectProperties
major 4
minor 3
release 0
x ''')
            _v = VFFSL(SL,"x",True) # u'$x' on line 469, col 3
            if _v is not None: write(_filter(_v, rawExpr=u'$x')) # from line 469, col 3.
            write(u''' #860
y ''')
            _v = VFFSL(SL,"y",True) # u'$y' on line 470, col 3
            if _v is not None: write(_filter(_v, rawExpr=u'$y')) # from line 470, col 3.
            write(u'''
w 84
h ''')
            _v = VFFSL(SL,"h",True) # u'$h' on line 472, col 3
            if _v is not None: write(_filter(_v, rawExpr=u'$h')) # from line 472, col 3.
            write(u'''
controlPv "''')
            _v = VFFSL(SL,"indexed_var",False)('$S{0}HIHI_PV', VFFSL(SL,"i",True)) # u"$indexed_var('$S{0}HIHI_PV', $i)" on line 473, col 12
            if _v is not None: write(_filter(_v, rawExpr=u"$indexed_var('$S{0}HIHI_PV', $i)")) # from line 473, col 12.
            write(u'''"
font "helvetica-medium-r-10.0"
fgColor index 14
bgColor index 4
editable
autoHeight
motifWidget
precision 4
nullColor index 1
useAlarmBorder
newPos
objType "controls"
endObjectProperties

# (Text Control)
''')
            x = x + 100
            write(u'''object activeXTextDspClass
beginObjectProperties
major 4
minor 3
release 0
x ''')
            _v = VFFSL(SL,"x",True) # u'$x' on line 494, col 3
            if _v is not None: write(_filter(_v, rawExpr=u'$x')) # from line 494, col 3.
            write(u''' #947
y ''')
            _v = VFFSL(SL,"y",True) # u'$y' on line 495, col 3
            if _v is not None: write(_filter(_v, rawExpr=u'$y')) # from line 495, col 3.
            write(u'''
w 38
h ''')
            _v = VFFSL(SL,"h",True) # u'$h' on line 497, col 3
            if _v is not None: write(_filter(_v, rawExpr=u'$h')) # from line 497, col 3.
            write(u'''
controlPv "''')
            _v = VFFSL(SL,"indexed_var",False)('$S{0}dotEGU_PV', VFFSL(SL,"i",True)) # u"$indexed_var('$S{0}dotEGU_PV', $i)" on line 498, col 12
            if _v is not None: write(_filter(_v, rawExpr=u"$indexed_var('$S{0}dotEGU_PV', $i)")) # from line 498, col 12.
            write(u'''"
font "helvetica-medium-r-10.0"
fgColor index 14
bgColor index 3
useDisplayBg
limitsFromDb
nullColor index 1
useHexPrefix
newPos
objType "controls"
endObjectProperties

''')
            row = VFFSL(SL,"row",True) + 1
        write(u'''
''')
        # ############# Actuators
        _v = VFFSL(SL,"paginate",False)(VFFSL(SL,"NR_ACTUATOR_PAGES",True), 122, 582, 'a') # u"$paginate($NR_ACTUATOR_PAGES, 122, 582, 'a')" on line 514, col 1
        if _v is not None: write(_filter(_v, rawExpr=u"$paginate($NR_ACTUATOR_PAGES, 122, 582, 'a')")) # from line 514, col 1.
        write(u'''
''')
        top = 615
        h = 16
        vmargin = 3
        row = 0
        first = (int(VFFSL(SL,"A_PAGE_NR",True)) - 1) * VFFSL(SL,"NR_ACTUATORS_PER_PAGE",True) + 1
        for i in VFFSL(SL,"used_indices",False)('A', VFFSL(SL,"first",True), VFFSL(SL,"NR_ACTUATORS_PER_PAGE",True)): # generated from line 520, col 1
            y = VFFSL(SL,"top",True) + (VFFSL(SL,"h",True) + VFFSL(SL,"vmargin",True)) * VFFSL(SL,"row",True)
            write(u'''# (Static Text)
object activeXTextClass
beginObjectProperties
major 4
minor 1
release 0
x 16
y ''')
            _v = VFFSL(SL,"y",True) # u'$y' on line 529, col 3
            if _v is not None: write(_filter(_v, rawExpr=u'$y')) # from line 529, col 3.
            write(u'''
w 93
h ''')
            _v = VFFSL(SL,"h",True) # u'$h' on line 531, col 3
            if _v is not None: write(_filter(_v, rawExpr=u'$h')) # from line 531, col 3.
            write(u'''
font "helvetica-bold-r-12.0"
fgColor index 14
bgColor index 3
useDisplayBg
value {
  "''')
            _v = VFFSL(SL,"indexed_var",False)('$A{0}DEVNAME', VFFSL(SL,"i",True)) # u"$indexed_var('$A{0}DEVNAME', $i)" on line 537, col 4
            if _v is not None: write(_filter(_v, rawExpr=u"$indexed_var('$A{0}DEVNAME', $i)")) # from line 537, col 4.
            write(u'''"
}
autoSize
endObjectProperties

# (Text Control)
object activeXTextDspClass
beginObjectProperties
major 4
minor 3
release 0
x 352
y ''')
            _v = VFFSL(SL,"y",True) # u'$y' on line 549, col 3
            if _v is not None: write(_filter(_v, rawExpr=u'$y')) # from line 549, col 3.
            write(u'''
w 84
h ''')
            _v = VFFSL(SL,"h",True) # u'$h' on line 551, col 3
            if _v is not None: write(_filter(_v, rawExpr=u'$h')) # from line 551, col 3.
            write(u'''
controlPv "''')
            _v = VFFSL(SL,"indexed_var",False)('$A{0}LOLO_PV', VFFSL(SL,"i",True)) # u"$indexed_var('$A{0}LOLO_PV', $i)" on line 552, col 12
            if _v is not None: write(_filter(_v, rawExpr=u"$indexed_var('$A{0}LOLO_PV', $i)")) # from line 552, col 12.
            write(u'''"
font "helvetica-medium-r-10.0"
fgColor index 14
bgColor index 4
editable
autoHeight
motifWidget
precision 4
nullColor index 1
useAlarmBorder
newPos
objType "controls"
endObjectProperties


''')
            for j in range(1,int(VFFSL(SL,"TOTALPOI",True))+1): # generated from line 567, col 1
                x = 352+100 + (VFFSL(SL,"j",True)-1) * 100
                write(u'''# (Text Control)
object activeXTextDspClass
beginObjectProperties
major 4
minor 3
release 0
x ''')
                _v = VFFSL(SL,"x",True) # u'$x' on line 575, col 3
                if _v is not None: write(_filter(_v, rawExpr=u'$x')) # from line 575, col 3.
                write(u'''
y ''')
                _v = VFFSL(SL,"y",True) # u'$y' on line 576, col 3
                if _v is not None: write(_filter(_v, rawExpr=u'$y')) # from line 576, col 3.
                write(u'''
w 84
h ''')
                _v = VFFSL(SL,"h",True) # u'$h' on line 578, col 3
                if _v is not None: write(_filter(_v, rawExpr=u'$h')) # from line 578, col 3.
                write(u'''
controlPv "''')
                _v = VFFSL(SL,"indexed_var",False)('$A{0}P{1}_PV'.format(VFFSL(SL,"i",True), VFFSL(SL,"j",True)), VFFSL(SL,"i",True)) # u"$indexed_var('$A{0}P{1}_PV'.format($i, $j), $i)" on line 579, col 12
                if _v is not None: write(_filter(_v, rawExpr=u"$indexed_var('$A{0}P{1}_PV'.format($i, $j), $i)")) # from line 579, col 12.
                write(u'''"
font "helvetica-medium-r-10.0"
fgColor index 14
bgColor index 4
limitsFromDb
nullColor index 1
useAlarmBorder
fgAlarm
newPos
objType "controls"
endObjectProperties
''')
            write(u'''
# (Text Control)
''')
            x = x + 100
            write(u'''object activeXTextDspClass
beginObjectProperties
major 4
minor 3
release 0
x ''')
            _v = VFFSL(SL,"x",True) # u'$x' on line 598, col 3
            if _v is not None: write(_filter(_v, rawExpr=u'$x')) # from line 598, col 3.
            write(u''' #860
y ''')
            _v = VFFSL(SL,"y",True) # u'$y' on line 599, col 3
            if _v is not None: write(_filter(_v, rawExpr=u'$y')) # from line 599, col 3.
            write(u'''
w 84
h ''')
            _v = VFFSL(SL,"h",True) # u'$h' on line 601, col 3
            if _v is not None: write(_filter(_v, rawExpr=u'$h')) # from line 601, col 3.
            write(u'''
controlPv "''')
            _v = VFFSL(SL,"indexed_var",False)('$A{0}HIHI_PV', VFFSL(SL,"i",True)) # u"$indexed_var('$A{0}HIHI_PV', $i)" on line 602, col 12
            if _v is not None: write(_filter(_v, rawExpr=u"$indexed_var('$A{0}HIHI_PV', $i)")) # from line 602, col 12.
            write(u'''"
font "helvetica-medium-r-10.0"
fgColor index 14
bgColor index 4
editable
autoHeight
motifWidget
precision 4
nullColor index 1
useAlarmBorder
newPos
objType "controls"
endObjectProperties

# (Text Control)
''')
            x = x + 100
            write(u'''object activeXTextDspClass
beginObjectProperties
major 4
minor 3
release 0
x ''')
            _v = VFFSL(SL,"x",True) # u'$x' on line 623, col 3
            if _v is not None: write(_filter(_v, rawExpr=u'$x')) # from line 623, col 3.
            write(u''' #947
y ''')
            _v = VFFSL(SL,"y",True) # u'$y' on line 624, col 3
            if _v is not None: write(_filter(_v, rawExpr=u'$y')) # from line 624, col 3.
            write(u'''
w 38
h ''')
            _v = VFFSL(SL,"h",True) # u'$h' on line 626, col 3
            if _v is not None: write(_filter(_v, rawExpr=u'$h')) # from line 626, col 3.
            write(u'''
controlPv "''')
            _v = VFFSL(SL,"indexed_var",False)('$A{0}dotEGU_PV', VFFSL(SL,"i",True)) # u"$indexed_var('$A{0}dotEGU_PV', $i)" on line 627, col 12
            if _v is not None: write(_filter(_v, rawExpr=u"$indexed_var('$A{0}dotEGU_PV', $i)")) # from line 627, col 12.
            write(u'''"
font "helvetica-medium-r-10.0"
fgColor index 14
bgColor index 4
useDisplayBg
limitsFromDb
nullColor index 1
useHexPrefix
newPos
objType "controls"
endObjectProperties
''')
            row = VFFSL(SL,"row",True) + 1
        write(u'''
''')
        # ############# Measurements
        _v = VFFSL(SL,"paginate",False)(VFFSL(SL,"NR_MEASUREMENT_PAGES",True), 122, 715, 'm') # u"$paginate($NR_MEASUREMENT_PAGES, 122, 715, 'm')" on line 642, col 1
        if _v is not None: write(_filter(_v, rawExpr=u"$paginate($NR_MEASUREMENT_PAGES, 122, 715, 'm')")) # from line 642, col 1.
        write(u'''
''')
        top = 751
        h = 16
        vmargin = 3
        row = 0
        first = (int(VFFSL(SL,"M_PAGE_NR",True)) - 1) * VFFSL(SL,"NR_MEASUREMENTS_PER_PAGE",True) + 1
        for i in VFFSL(SL,"used_indices",False)('M', VFFSL(SL,"first",True), VFFSL(SL,"NR_MEASUREMENTS_PER_PAGE",True)): # generated from line 648, col 1
            y = VFFSL(SL,"top",True) + (VFFSL(SL,"h",True) + VFFSL(SL,"vmargin",True)) * VFFSL(SL,"row",True)
            write(u'''# (Static Text)
object activeXTextClass
beginObjectProperties
major 4
minor 1
release 0
x 16
y ''')
            _v = VFFSL(SL,"y",True) # u'$y' on line 657, col 3
            if _v is not None: write(_filter(_v, rawExpr=u'$y')) # from line 657, col 3.
            write(u'''
w 96
h ''')
            _v = VFFSL(SL,"h",True) # u'$h' on line 659, col 3
            if _v is not None: write(_filter(_v, rawExpr=u'$h')) # from line 659, col 3.
            write(u'''
font "helvetica-bold-r-12.0"
fgColor index 14
bgColor index 3
useDisplayBg
value {
  "''')
            _v = VFFSL(SL,"indexed_var",False)('$M{0}DEVNAME', VFFSL(SL,"i",True)) # u"$indexed_var('$M{0}DEVNAME', $i)" on line 665, col 4
            if _v is not None: write(_filter(_v, rawExpr=u"$indexed_var('$M{0}DEVNAME', $i)")) # from line 665, col 4.
            write(u''' "
}
autoSize
endObjectProperties

# (Text Control)
object activeXTextDspClass
beginObjectProperties
major 4
minor 3
release 0
x 352
y ''')
            _v = VFFSL(SL,"y",True) # u'$y' on line 677, col 3
            if _v is not None: write(_filter(_v, rawExpr=u'$y')) # from line 677, col 3.
            write(u'''
w 84
h ''')
            _v = VFFSL(SL,"h",True) # u'$h' on line 679, col 3
            if _v is not None: write(_filter(_v, rawExpr=u'$h')) # from line 679, col 3.
            write(u'''
controlPv "''')
            _v = VFFSL(SL,"indexed_var",False)('$M{0}LOLO_PV', VFFSL(SL,"i",True)) # u"$indexed_var('$M{0}LOLO_PV', $i)" on line 680, col 12
            if _v is not None: write(_filter(_v, rawExpr=u"$indexed_var('$M{0}LOLO_PV', $i)")) # from line 680, col 12.
            write(u'''"
font "helvetica-medium-r-10.0"
fgColor index 14
bgColor index 4
editable
autoHeight
motifWidget
precision 4
nullColor index 1
useAlarmBorder
newPos
objType "controls"
endObjectProperties

''')
            for j in range(1,int(VFFSL(SL,"TOTALPOI",True))+1): # generated from line 694, col 1
                x = 352+100 + (VFFSL(SL,"j",True)-1) * 100
                write(u'''# (Text Control)
object activeXTextDspClass
beginObjectProperties
major 4
minor 3
release 0
x ''')
                _v = VFFSL(SL,"x",True) # u'$x' on line 702, col 3
                if _v is not None: write(_filter(_v, rawExpr=u'$x')) # from line 702, col 3.
                write(u'''
y ''')
                _v = VFFSL(SL,"y",True) # u'$y' on line 703, col 3
                if _v is not None: write(_filter(_v, rawExpr=u'$y')) # from line 703, col 3.
                write(u'''
w 84
h ''')
                _v = VFFSL(SL,"h",True) # u'$h' on line 705, col 3
                if _v is not None: write(_filter(_v, rawExpr=u'$h')) # from line 705, col 3.
                write(u'''
controlPv "''')
                _v = VFFSL(SL,"indexed_var",False)('$M{0}P{1}_PV'.format(VFFSL(SL,"i",True), VFFSL(SL,"j",True)), VFFSL(SL,"i",True)) # u"$indexed_var('$M{0}P{1}_PV'.format($i, $j), $i)" on line 706, col 12
                if _v is not None: write(_filter(_v, rawExpr=u"$indexed_var('$M{0}P{1}_PV'.format($i, $j), $i)")) # from line 706, col 12.
                write(u'''"
font "helvetica-medium-r-10.0"
fgColor index 14
bgColor index 4
limitsFromDb
nullColor index 1
useAlarmBorder
fgAlarm
newPos
objType "controls"
endObjectProperties
''')
            write(u'''
# (Text Control)
''')
            x = x + 100
            write(u'''object activeXTextDspClass
beginObjectProperties
major 4
minor 3
release 0
x ''')
            _v = VFFSL(SL,"x",True) # u'$x' on line 725, col 3
            if _v is not None: write(_filter(_v, rawExpr=u'$x')) # from line 725, col 3.
            write(u''' #860
y ''')
            _v = VFFSL(SL,"y",True) # u'$y' on line 726, col 3
            if _v is not None: write(_filter(_v, rawExpr=u'$y')) # from line 726, col 3.
            write(u'''
w 84
h ''')
            _v = VFFSL(SL,"h",True) # u'$h' on line 728, col 3
            if _v is not None: write(_filter(_v, rawExpr=u'$h')) # from line 728, col 3.
            write(u'''
controlPv "''')
            _v = VFFSL(SL,"indexed_var",False)('$M{0}HIHI_PV', VFFSL(SL,"i",True)) # u"$indexed_var('$M{0}HIHI_PV', $i)" on line 729, col 12
            if _v is not None: write(_filter(_v, rawExpr=u"$indexed_var('$M{0}HIHI_PV', $i)")) # from line 729, col 12.
            write(u'''"
font "helvetica-medium-r-10.0"
fgColor index 14
bgColor index 4
editable
autoHeight
motifWidget
precision 4
nullColor index 1
useAlarmBorder
newPos
objType "controls"
endObjectProperties

# (Text Control)
''')
            x = x + 100
            write(u'''object activeXTextDspClass
beginObjectProperties
major 4
minor 3
release 0
x ''')
            _v = VFFSL(SL,"x",True) # u'$x' on line 750, col 3
            if _v is not None: write(_filter(_v, rawExpr=u'$x')) # from line 750, col 3.
            write(u''' #947
y ''')
            _v = VFFSL(SL,"y",True) # u'$y' on line 751, col 3
            if _v is not None: write(_filter(_v, rawExpr=u'$y')) # from line 751, col 3.
            write(u'''
w 38
h ''')
            _v = VFFSL(SL,"h",True) # u'$h' on line 753, col 3
            if _v is not None: write(_filter(_v, rawExpr=u'$h')) # from line 753, col 3.
            write(u'''
controlPv "''')
            _v = VFFSL(SL,"indexed_var",False)('$M{0}dotEGU_PV', VFFSL(SL,"i",True)) # u"$indexed_var('$M{0}dotEGU_PV', $i)" on line 754, col 12
            if _v is not None: write(_filter(_v, rawExpr=u"$indexed_var('$M{0}dotEGU_PV', $i)")) # from line 754, col 12.
            write(u'''"
font "helvetica-medium-r-10.0"
fgColor index 14
bgColor index 4
useDisplayBg
limitsFromDb
nullColor index 1
useHexPrefix
newPos
objType "controls"
endObjectProperties
''')
            row = VFFSL(SL,"row",True) + 1
        write(u'''
# (Shell Command) or (Related Display)
''')
        if VFFSL(SL,"GENERATE_ALL",True): # generated from line 769, col 1
            write(u'''object relatedDisplayClass
''')
        else: # generated from line 771, col 1
            write(u'''object shellCmdClass
''')
        write(u'''beginObjectProperties
major 4
minor 2
release 0
x 900
y 715
w 84
h 24
fgColor index 14
bgColor index 3
topShadowColor index 1
botShadowColor index 11
font "helvetica-bold-r-14.0"
buttonLabel "Plots..."
''')
        if VFFSL(SL,"GENERATE_ALL",True): # generated from line 788, col 1
            write(u'''numDsps 1
''')
            s = VFN(VFFSL(SL,"PLOTS_DISPLAY_FORMAT",True),"format",False)(1, 0)
            write(u'''displayFileName {
    0 "''')
            _v = VFFSL(SL,"s",True) # u'$s' on line 792, col 8
            if _v is not None: write(_filter(_v, rawExpr=u'$s')) # from line 792, col 8.
            write(u'''"
}
''')
        else: # generated from line 794, col 1
            write(u'''numCmds 1
''')
            s = VFN(VFFSL(SL,"PLOTS_COMMAND_FORMAT",True),"format",False)(1, 0)
            write(u'''command {
  0 "''')
            _v = VFFSL(SL,"s",True) # u'$s' on line 798, col 6
            if _v is not None: write(_filter(_v, rawExpr=u'$s')) # from line 798, col 6.
            write(u'''"
}
''')
        write(u'''endObjectProperties

# (Text Control)
object activeXTextDspClass
beginObjectProperties
major 4
minor 3
release 0
x 32
y 11
w 465
h 21
controlPv "''')
        _v = VFFSL(SL,"NAME_PV",True) # u'$NAME_PV' on line 813, col 12
        if _v is not None: write(_filter(_v, rawExpr=u'$NAME_PV')) # from line 813, col 12.
        write(u'''"
format "string"
font "helvetica-bold-r-18.0"
fgColor index 76
bgColor index 4
useDisplayBg
autoHeight
limitsFromDb
nullColor index 14
useHexPrefix
newPos
objType "monitors"
endObjectProperties

# (Rectangle)
object activeRectangleClass
beginObjectProperties
major 4
minor 0
release 0
x 50
y 113
w 24
h 20
lineColor index 15
lineAlarm
fill
fillColor index 15
fillAlarm
lineWidth 2
alarmPv "''')
        _v = VFFSL(SL,"STATUS_PV",True) # u'$STATUS_PV' on line 843, col 10
        if _v is not None: write(_filter(_v, rawExpr=u'$STATUS_PV')) # from line 843, col 10.
        write(u'''"
visPv "''')
        _v = VFFSL(SL,"STATE_PV",True) # u'$STATE_PV' on line 844, col 8
        if _v is not None: write(_filter(_v, rawExpr=u'$STATE_PV')) # from line 844, col 8.
        write(u'''"
visMin "1"
visMax "2"
endObjectProperties

# (Static Text)
object activeXTextClass
beginObjectProperties
major 4
minor 1
release 0
x 52
y 117
w 20
h 12
font "helvetica-bold-r-10.0"
fontAlign "center"
fgColor index 14
bgColor index 4
useDisplayBg
alarmPv "''')
        _v = VFFSL(SL,"STATE_PV",True) # u'$STATE_PV' on line 864, col 10
        if _v is not None: write(_filter(_v, rawExpr=u'$STATE_PV')) # from line 864, col 10.
        write(u'''"
visPv "''')
        _v = VFFSL(SL,"STATE_PV",True) # u'$STATE_PV' on line 865, col 8
        if _v is not None: write(_filter(_v, rawExpr=u'$STATE_PV')) # from line 865, col 8.
        write(u'''"
visMin "0"
visMax "1"
value {
  "OFF"
}
autoSize
endObjectProperties

# (Text Control)
object activeXTextDspClass
beginObjectProperties
major 4
minor 3
release 0
x 92
y 117
w 24
h 12
controlPv "''')
        _v = VFFSL(SL,"COUNTER_PV",True) # u'$COUNTER_PV' on line 884, col 12
        if _v is not None: write(_filter(_v, rawExpr=u'$COUNTER_PV')) # from line 884, col 12.
        write(u'''"
format "string"
font "helvetica-bold-r-10.0"
fontAlign "center"
fgColor index 14
bgColor index 3
useDisplayBg
autoHeight
limitsFromDb
nullColor index 14
useHexPrefix
newPos
objType "monitors"
endObjectProperties

# (Message Button) Start
object activeMessageButtonClass
beginObjectProperties
major 4
minor 0
release 0
x 195
y 113
w 45
h 20
fgColor index 14
onColor index 4
offColor index 4
topShadowColor index 1
botShadowColor index 11
controlPv "''')
        _v = VFFSL(SL,"STATE_PV",True) # u'$STATE_PV' on line 914, col 12
        if _v is not None: write(_filter(_v, rawExpr=u'$STATE_PV')) # from line 914, col 12.
        write(u'''"
pressValue "ON"
onLabel "Start"
offLabel "Start"
3d
font "helvetica-medium-r-10.0"
endObjectProperties

# (Choice Button)
object activeChoiceButtonClass
beginObjectProperties
major 4
minor 0
release 0
x 251
y 103
w 48
h 40
fgColor index 14
fgAlarm
bgColor index 4
selectColor index 4
inconsistentColor index 12
topShadowColor index 1
botShadowColor index 11
controlPv "''')
        _v = VFFSL(SL,"MODE_PV",True) # u'$MODE_PV' on line 939, col 12
        if _v is not None: write(_filter(_v, rawExpr=u'$MODE_PV')) # from line 939, col 12.
        write(u'''"
indicatorPv "''')
        _v = VFFSL(SL,"MODE_PV",True) # u'$MODE_PV' on line 940, col 14
        if _v is not None: write(_filter(_v, rawExpr=u'$MODE_PV')) # from line 940, col 14.
        write(u'''"
font "helvetica-bold-r-8.0"
colorPv "''')
        _v = VFFSL(SL,"MODE_PV",True) # u'$MODE_PV' on line 942, col 10
        if _v is not None: write(_filter(_v, rawExpr=u'$MODE_PV')) # from line 942, col 10.
        write(u'''"
endObjectProperties

# (Related Display)
object relatedDisplayClass
beginObjectProperties
major 4
minor 2
release 0
x 862
y 6
w 48
h 24
fgColor index 14
bgColor index 4
topShadowColor index 1
botShadowColor index 11
font "helvetica-medium-r-12.0"
buttonLabel "Help..."
numPvs 4
numDsps 1
displayFileName {
  0 "''')
        _v = VFFSL(SL,"HELP_FILE",True) # u'$HELP_FILE' on line 964, col 6
        if _v is not None: write(_filter(_v, rawExpr=u'$HELP_FILE')) # from line 964, col 6.
        write(u'''"
}
endObjectProperties

# (Shell Command)
object shellCmdClass
beginObjectProperties
major 4
minor 2
release 0
x 499
y 115
w 78
h 20
fgColor index 14
bgColor index 4
topShadowColor index 1
botShadowColor index 11
font "helvetica-medium-r-10.0"
buttonLabel "Restore Acts..."
numCmds 1
command {
  0 "''')
        _v = VFFSL(SL,"RESTORE_ACTS_COMMAND",True) # u'$RESTORE_ACTS_COMMAND' on line 986, col 6
        if _v is not None: write(_filter(_v, rawExpr=u'$RESTORE_ACTS_COMMAND')) # from line 986, col 6.
        write(u'''"
}
endObjectProperties

# (Shell Command)
object shellCmdClass
beginObjectProperties
major 4
minor 2
release 0
x 398
y 115
w 98
h 20
fgColor index 14
bgColor index 4
topShadowColor index 1
botShadowColor index 11
font "helvetica-medium-r-10.0"
buttonLabel "Update Act Refs..."
numCmds 1
command {
  0 "''')
        _v = VFFSL(SL,"UPDATE_ACT_REFS_COMMAND",True) # u'$UPDATE_ACT_REFS_COMMAND' on line 1008, col 6
        if _v is not None: write(_filter(_v, rawExpr=u'$UPDATE_ACT_REFS_COMMAND')) # from line 1008, col 6.
        write(u'''"
}
endObjectProperties

''')
        if int(VFFSL(SL,"TOTALPOI",True)) > 1: # generated from line 1012, col 1
            write(u'''# (Shell Command)
object shellCmdClass
beginObjectProperties
major 4
minor 2
release 0
x 422
y 142
w 130
h 20
fgColor index 14
bgColor index 4
topShadowColor index 1
botShadowColor index 11
font "helvetica-medium-r-10.0"
buttonLabel "Zero Actuator Offsets"
numCmds 1
command {
  0 "''')
            _v = VFFSL(SL,"RESET_OFFSETS_COMMAND",True) # u'$RESET_OFFSETS_COMMAND' on line 1031, col 6
            if _v is not None: write(_filter(_v, rawExpr=u'$RESET_OFFSETS_COMMAND')) # from line 1031, col 6.
            write(u'''"
}
endObjectProperties
''')
        write(u'''
# (Text Monitor)
object activeXTextDspClass:noedit
beginObjectProperties
major 4
minor 3
release 0
x 205
y 178
w 770
h 12
controlPv "''')
        _v = VFFSL(SL,"STATUSSTR_PV",True) # u'$STATUSSTR_PV' on line 1046, col 12
        if _v is not None: write(_filter(_v, rawExpr=u'$STATUSSTR_PV')) # from line 1046, col 12.
        write(u'''"
font "helvetica-bold-r-10.0"
fgColor index 14
fgAlarm
bgColor index 3
autoHeight
limitsFromDb
nullColor index 14
useHexPrefix
newPos
objType "monitors"
endObjectProperties

# (Message Button) Stop
object activeMessageButtonClass
beginObjectProperties
major 4
minor 0
release 0
x 309
y 113
w 45
h 20
fgColor index 14
onColor index 4
offColor index 4
topShadowColor index 1
botShadowColor index 11
controlPv "''')
        _v = VFFSL(SL,"STATE_PV",True) # u'$STATE_PV' on line 1074, col 12
        if _v is not None: write(_filter(_v, rawExpr=u'$STATE_PV')) # from line 1074, col 12.
        write(u'''"
pressValue "OFF"
onLabel "Stop"
offLabel "Stop"
3d
font "helvetica-medium-r-10.0"
endObjectProperties
''')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
        
    ##################################################
    ## CHEETAH GENERATED ATTRIBUTES


    _CHEETAH__instanceInitialized = False

    _CHEETAH_version = __CHEETAH_version__

    _CHEETAH_versionTuple = __CHEETAH_versionTuple__

    _CHEETAH_genTime = __CHEETAH_genTime__

    _CHEETAH_genTimestamp = __CHEETAH_genTimestamp__

    _CHEETAH_src = __CHEETAH_src__

    _CHEETAH_srcLastModified = __CHEETAH_srcLastModified__

    _mainCheetahMethod_for_fbckdetails= 'writeBody'

## END CLASS DEFINITION

if not hasattr(fbckdetails, '_initCheetahAttributes'):
    templateAPIClass = getattr(fbckdetails, '_CHEETAH_templateClass', Template)
    templateAPIClass._addCheetahPlumbingCodeToClass(fbckdetails)


# CHEETAH was developed by Tavis Rudd and Mike Orr
# with code, advice and input from many other volunteers.
# For more information visit http://www.CheetahTemplate.org/

##################################################
## if run from command line:
if __name__ == '__main__':
    from Cheetah.TemplateCmdLineIface import CmdLineIface
    CmdLineIface(templateObj=fbckdetails()).run()


