attr.html 2.0 KB

1234567891011121314151617181920212223242526272829303132
  1. <div class="instr attr">
  2. <div class="handle"><i class="fa fa-sort"></i></div>
  3. <button class="btn btn-danger btn-sm btn-delete" ng-click="removeItem(node.parent, node)"><i class="fa fa-minus"></i></button>
  4. <span select-variable="node.variable" select-vars="program.functions[currentFunction].vars" type="''"></span>
  5. <span ng-show="node.variable==''"> « selecione uma variável</span>
  6. <span ng-hide="node.variable==''"> recebe
  7. <span ng-show="!node.isLocked">
  8. <span edit-expression-java="node.exp" type="program.functions[currentFunction].vars[node.variable].type" vars="program.functions[currentFunction].vars"></span>
  9. </span>
  10. <span ng-show="node.isLocked">
  11. <span edit-expression-java-read-only="node.exp" type="program.functions[currentFunction].vars[node.variable].type" vars="program.functions[currentFunction].vars"></span>
  12. </span>
  13. <span ng-show="node.isLocked">
  14. <a ng-click="node.isLocked=false"><img src="img/locker_closed.png" /></a>
  15. </span>
  16. <span ng-hide="node.isLocked">
  17. <a ng-click="node.isLocked=true"><img src="img/locker_opened.png" /></a>
  18. </span>
  19. <!--span class="dropdown">
  20. <button class="btn btn-mini btn-xs" data-toggle="dropdown"><img src="img/operations.png" /></button>
  21. <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
  22. <li><a role="menuitem" ng-click="addElVar(node.exp)">Variável</a></li>
  23. <li><a role="menuitem" ng-click="addElVal(node.exp)">Valor</a></li>
  24. <li ng-show="program.functions[currentFunction].vars[node.variable].type=='boolean'"><a role="menuitem" ng-click="addElExpB(node.exp)">Expressão Booleana</a></li>
  25. </ul>
  26. </span-->
  27. </span>
  28. </div>