     'settings' : '='
     'model'    : '='
     'correct'  : '='
+    'disabled' : '=isdisabled'
   template: 
     """
       <div>
         <div class='header' ng-hide='settings.editing'>
-          <a class="btn btn-small" ng-click='cursor()' ng-class="{active: mode=='cursor'}"><i class="icon-arrow-left"></i> Pointer </a>
-          <a class="btn btn-small" ng-click="toggleDeleteTool()" ng-class="{active: mode=='deleting'}"><i class="icon-remove"></i> Delete</a>
-          <a class="btn btn-small" ng-click="togglePointTool()" ng-class="{active: mode=='pointing'}"><i class="icon-hand-up"></i> Point Tool</a>
-          <a class="btn btn-small" ng-click="toggleLineTool()" ng-class="{active: mode=='lining'}"><i class="icon-minus"></i> Line Tool</a>
-          <a class="btn btn-small" ng-click="reset()"> Reset</a>
+          <a class="btn btn-small" ng-click='cursor()' ng-class="{active: mode=='cursor'}"><i class="icon-arrow-left" ng-disabled='disabled'></i> Pointer </a>
+          <a class="btn btn-small" ng-click="toggleDeleteTool()" ng-class="{active: mode=='deleting'}" ng-disabled='disabled'><i class="icon-remove"></i> Delete</a>
+          <a class="btn btn-small" ng-click="togglePointTool()" ng-class="{active: mode=='pointing'}" ng-disabled='disabled'><i class="icon-hand-up"></i> Point Tool</a>
+          <a class="btn btn-small" ng-click="toggleLineTool()" ng-class="{active: mode=='lining'}" ng-disabled='disabled'><i class="icon-minus"></i> Line Tool</a>
         </div>
         <br />
         <div class="canvas" ng-style="{cursor: (mode|cursor)}" style=""></div>

        _start_line(xy.x, xy.y)

    _mousedown = (e) ->
      if Touch? && (e instanceof Touch)
          return
        else

          _current_line.dragging(snapped.x, snapped.y)

    _mouseup = (e) ->
      if scope.disabled == true
        return
      xy = _get_x_y(e)
      if _current_line? && _dragging
        _end_line(xy.x, xy.y)
