Changeset 425 for EcnlProtoTool/trunk/webapp/webmrbc/Blockly.cs
- Timestamp:
- May 29, 2020, 10:45:52 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
EcnlProtoTool/trunk/webapp/webmrbc/Blockly.cs
r321 r425 32 32 public partial class Blockly 33 33 { 34 [ Name(false)]34 [Convention(Notation.PascalCase)] 35 35 public static Xml Xml; 36 [ Name(false)]36 [Convention(Notation.PascalCase)] 37 37 public static Events Events; 38 [ Name(false)]38 [Convention(Notation.PascalCase)] 39 39 public static Procedures Procedures; 40 [ Name(false)]40 [Convention(Notation.PascalCase)] 41 41 public static Variables Variables; 42 [ Name(false)]42 [Convention(Notation.PascalCase)] 43 43 public static Names Names; 44 44 … … 46 46 /// Number of pixels the mouse must move before a drag starts. 47 47 /// </summary> 48 [ Name(false)]48 [Convention(Notation.PascalCase)] 49 49 public static int DRAG_RADIUS = 5; 50 50 … … 52 52 /// Maximum misalignment between connections for them to snap together. 53 53 /// </summary> 54 [ Name(false)]54 [Convention(Notation.PascalCase)] 55 55 public static int SNAP_RADIUS = 20; 56 56 … … 58 58 /// Delay in ms between trigger and bumping unconnected block out of alignment. 59 59 /// </summary> 60 [ Name(false)]60 [Convention(Notation.PascalCase)] 61 61 public static int BUMP_DELAY = 250; 62 62 … … 64 64 /// Number of characters to truncate a collapsed block to. 65 65 /// </summary> 66 [ Name(false)]66 [Convention(Notation.PascalCase)] 67 67 public static int COLLAPSE_CHARS = 30; 68 68 … … 70 70 /// Length in ms for a touch to become a long press. 71 71 /// </summary> 72 [ Name(false)]72 [Convention(Notation.PascalCase)] 73 73 public static int LONGPRESS = 750; 74 74 … … 77 77 /// miliseconds. 78 78 /// </summary> 79 [ Name(false)]79 [Convention(Notation.PascalCase)] 80 80 public static int SOUND_LIMIT = 100; 81 81 … … 84 84 /// Must be in the range of 0 (inclusive) to 1 (exclusive). 85 85 /// </summary> 86 [ Name(false)]86 [Convention(Notation.PascalCase)] 87 87 public static double HSV_SATURATION = 0.45; 88 88 … … 91 91 /// Must be in the range of 0 (inclusive) to 1 (exclusive). 92 92 /// </summary> 93 [ Name(false)]93 [Convention(Notation.PascalCase)] 94 94 public static double HSV_VALUE = 0.65; 95 95 … … 97 97 /// Sprited icons and images. 98 98 /// </summary> 99 [ Name(false)]99 [Convention(Notation.PascalCase)] 100 100 public static object SPRITE = new { 101 101 width = 96, … … 107 107 /// Required name space for SVG elements. 108 108 /// </summary> 109 [ Name(false)]109 [Convention(Notation.PascalCase)] 110 110 public static readonly string SVG_NS = "http://www.w3.org/2000/svg"; 111 111 … … 113 113 /// Required name space for HTML elements. 114 114 /// </summary> 115 [ Name(false)]115 [Convention(Notation.PascalCase)] 116 116 public static readonly string HTML_NS = "http://www.w3.org/1999/xhtml"; 117 117 … … 119 119 /// ENUM for a right-facing value input. E.g. 'set item to' or 'return'. 120 120 /// </summary> 121 [ Name(false)]121 [Convention(Notation.PascalCase)] 122 122 public static int INPUT_VALUE = 1; 123 123 … … 125 125 /// ENUM for a left-facing value output. E.g. 'random fraction'. 126 126 /// </summary> 127 [ Name(false)]127 [Convention(Notation.PascalCase)] 128 128 public static int OUTPUT_VALUE = 2; 129 129 … … 131 131 /// ENUM for a down-facing block stack. E.g. 'if-do' or 'else'. 132 132 /// </summary> 133 [ Name(false)]133 [Convention(Notation.PascalCase)] 134 134 public static int NEXT_STATEMENT = 3; 135 135 … … 137 137 /// ENUM for an up-facing block stack. E.g. 'break out of loop'. 138 138 /// </summary> 139 [ Name(false)]139 [Convention(Notation.PascalCase)] 140 140 public static int PREVIOUS_STATEMENT = 4; 141 141 … … 143 143 /// ENUM for an dummy input. Used to add field(s) with no input. 144 144 /// </summary> 145 [ Name(false)]145 [Convention(Notation.PascalCase)] 146 146 public static int DUMMY_INPUT = 5; 147 147 … … 149 149 /// ENUM for left alignment. 150 150 /// </summary> 151 [ Name(false)]151 [Convention(Notation.PascalCase)] 152 152 public static int ALIGN_LEFT = -1; 153 153 … … 155 155 /// ENUM for centre alignment. 156 156 /// </summary> 157 [ Name(false)]157 [Convention(Notation.PascalCase)] 158 158 public static int ALIGN_CENTRE = 0; 159 159 … … 161 161 /// ENUM for right alignment. 162 162 /// </summary> 163 [ Name(false)]163 [Convention(Notation.PascalCase)] 164 164 public static int ALIGN_RIGHT = 1; 165 165 … … 167 167 /// ENUM for no drag operation. 168 168 /// </summary> 169 [ Name(false)]169 [Convention(Notation.PascalCase)] 170 170 public static int DRAG_NONE = 0; 171 171 … … 173 173 /// ENUM for inside the sticky DRAG_RADIUS. 174 174 /// </summary> 175 [ Name(false)]175 [Convention(Notation.PascalCase)] 176 176 public static int DRAG_STICKY = 1; 177 177 … … 180 180 /// clicks and drags. 181 181 /// </summary> 182 [ Name(false)]182 [Convention(Notation.PascalCase)] 183 183 public static int DRAG_BEGIN = 1; 184 184 … … 186 186 /// ENUM for freely draggable (outside the DRAG_RADIUS, if one applies). 187 187 /// </summary> 188 [ Name(false)]188 [Convention(Notation.PascalCase)] 189 189 public static int DRAG_FREE = 2; 190 190 … … 192 192 /// Lookup table for determining the opposite type of a connection. 193 193 /// </summary> 194 [ Name(false)]194 [Convention(Notation.PascalCase)] 195 195 public static int[] OPPOSITE_TYPE = { 196 196 0, … … 204 204 /// ENUM for toolbox and flyout at top of screen. 205 205 /// </summary> 206 [ Name(false)]206 [Convention(Notation.PascalCase)] 207 207 public static int TOOLBOX_AT_TOP = 0; 208 208 … … 210 210 /// ENUM for toolbox and flyout at bottom of screen. 211 211 /// </summary> 212 [ Name(false)]212 [Convention(Notation.PascalCase)] 213 213 public static int TOOLBOX_AT_BOTTOM = 1; 214 214 … … 216 216 /// ENUM for toolbox and flyout at left of screen. 217 217 /// </summary> 218 [ Name(false)]218 [Convention(Notation.PascalCase)] 219 219 public static int TOOLBOX_AT_LEFT = 2; 220 220 … … 222 222 /// ENUM for toolbox and flyout at right of screen. 223 223 /// </summary> 224 [ Name(false)]224 [Convention(Notation.PascalCase)] 225 225 public static int TOOLBOX_AT_RIGHT = 3; 226 226 … … 236 236 public static Block selected; 237 237 238 [ Name(false)]238 [Convention(Notation.PascalCase)] 239 239 public static Blocks Blocks; 240 240 … … 1485 1485 public class BlockSvg : Block 1486 1486 { 1487 [ Name(false)]1487 [Convention(Notation.PascalCase)] 1488 1488 public int TAB_HEIGHT = 20; 1489 1489 … … 1739 1739 /// Non-breaking space. 1740 1740 /// </summary> 1741 [ Name(false)]1741 [Convention(Notation.PascalCase)] 1742 1742 public const string NBSP = "\u00A0"; 1743 1743 … … 1745 1745 /// Editable fields are saved by the XML renderer, non-editable fields are not. 1746 1746 /// </summary> 1747 [ Name(false)]1747 [Convention(Notation.PascalCase)] 1748 1748 public bool EDITABLE = true; 1749 1749
Note:
See TracChangeset
for help on using the changeset viewer.