Web UI for ARGUS server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

118 lines
2.5 KiB

​
4 years ago
​
​
4 years ago
4 years ago
​
​
​
​
4 years ago
​
​
4 years ago
​
​
​
4 years ago
​
​
​
​
4 years ago
​
​
​
​
4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
4 years ago
​
​
​
4 years ago
​
4 years ago
​
4 years ago
​
4 years ago
​
4 years ago
​
4 years ago
4 years ago
​
​
​
​
4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. {
  2. xtype: 'form',
  3. labelWidth: 40, // label settings here cascade unless overridden
  4. frame: false,
  5. bodyStyle:'padding:5px 5px 0',
  6. defaultType: 'textfield',
  7. labelAlign: 'right',
  8. items: [{
  9. xtype: 'panel',
  10. height: 100,
  11. html: '<p align="center"><img src="/style/assets/%%%TYPE%%%_node.png"><br/>%%%NAME%%%<br/></p>'
  12. },{
  13. xtype:'fieldset',
  14. //checkboxToggle:true,
  15. collapsible: true,
  16. title: 'Location',
  17. autoHeight: true,
  18. defaults: {
  19. //width: 180
  20. },
  21. defaultType: 'textfield',
  22. collapsed: false,
  23. items :[{
  24. fieldLabel: 'Lat',
  25. name: 'slat',
  26. value: %%%LAT%%%,
  27. id: 'slat',
  28. allowBlank:false
  29. },{
  30. fieldLabel: 'Lon',
  31. id: 'slon',
  32. value: %%%LON%%%,
  33. name: 'slon',
  34. allowBlank:false
  35. },{
  36. fieldLabel: 'Alt',
  37. id: 'salt',
  38. value: %%%ALT%%%,
  39. name: 'salt',
  40. allowBlank:false
  41. },{
  42. xtype: 'button',
  43. text: 'Set To Anchor Position',
  44. width: '100%',
  45. handler: setNodeLocationToAnchor
  46. }]
  47. },{
  48. xtype:'fieldset',
  49. title: 'Orientation',
  50. collapsible: true,
  51. autoHeight:true,
  52. defaults: {
  53. //width: 168
  54. },
  55. defaultType: 'textfield',
  56. items :[{
  57. fieldLabel: 'Roll',
  58. id: 'sroll',
  59. value: %%%ROLL%%%,
  60. name: 'sroll',
  61. allowBlank:false
  62. },{
  63. fieldLabel: 'Pitch',
  64. id: 'spitch',
  65. value: %%%PITCH%%%,
  66. name: 'spitch',
  67. allowBlank:false
  68. },{
  69. fieldLabel: 'Yaw',
  70. id: 'syaw',
  71. value: %%%YAW%%%,
  72. name: 'syaw',
  73. allowBlank:false
  74. },{
  75. xtype: 'button',
  76. width: '100%',
  77. text: 'Edit Orientation',
  78. handler: orientationEditor
  79. }]
  80. },{
  81. xtype:'fieldset',
  82. title: 'Diff Position',
  83. collapsible: true,
  84. autoHeight:true,
  85. defaults: {
  86. //width: 168
  87. },
  88. defaultType: 'numberfield',
  89. items :[{
  90. fieldLabel: 'ΔX',
  91. id: 'dx',
  92. value: %%%DX%%%,
  93. name: 'dx',
  94. allowBlank:false
  95. },{
  96. fieldLabel: 'ΔY',
  97. id: 'dy',
  98. value: %%%DY%%%,
  99. name: 'dy',
  100. allowBlank:false
  101. },{
  102. fieldLabel: 'ΔZ',
  103. id: 'dz',
  104. value: %%%DZ%%%,
  105. name: 'dz',
  106. allowBlank:false
  107. },{
  108. xtype: 'button',
  109. width: '100%',
  110. text: 'Set Position',
  111. handler: setNodeLocationByDelta
  112. }]
  113. },{
  114. xtype: 'button',
  115. text: 'Update',
  116. width: '100%',
  117. handler: updateLocationOrientation
  118. }]
  119. }