Ignore:
Timestamp:
May 29, 2020, 10:45:52 PM (4 years ago)
Author:
coas-nagasima
Message:

Visual Studio 2019 と Bridge.NET でビルドできるよう更新。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • EcnlProtoTool/trunk/webapp/webmrbc/Blockly.cs

    r321 r425  
    3232        public partial class Blockly
    3333        {
    34                 [Name(false)]
     34                [Convention(Notation.PascalCase)]
    3535                public static Xml Xml;
    36                 [Name(false)]
     36                [Convention(Notation.PascalCase)]
    3737                public static Events Events;
    38                 [Name(false)]
     38                [Convention(Notation.PascalCase)]
    3939                public static Procedures Procedures;
    40                 [Name(false)]
     40                [Convention(Notation.PascalCase)]
    4141                public static Variables Variables;
    42                 [Name(false)]
     42                [Convention(Notation.PascalCase)]
    4343                public static Names Names;
    4444
     
    4646                /// Number of pixels the mouse must move before a drag starts.
    4747                /// </summary>
    48                 [Name(false)]
     48                [Convention(Notation.PascalCase)]
    4949                public static int DRAG_RADIUS = 5;
    5050
     
    5252                /// Maximum misalignment between connections for them to snap together.
    5353                /// </summary>
    54                 [Name(false)]
     54                [Convention(Notation.PascalCase)]
    5555                public static int SNAP_RADIUS = 20;
    5656
     
    5858                /// Delay in ms between trigger and bumping unconnected block out of alignment.
    5959                /// </summary>
    60                 [Name(false)]
     60                [Convention(Notation.PascalCase)]
    6161                public static int BUMP_DELAY = 250;
    6262
     
    6464                /// Number of characters to truncate a collapsed block to.
    6565                /// </summary>
    66                 [Name(false)]
     66                [Convention(Notation.PascalCase)]
    6767                public static int COLLAPSE_CHARS = 30;
    6868
     
    7070                /// Length in ms for a touch to become a long press.
    7171                /// </summary>
    72                 [Name(false)]
     72                [Convention(Notation.PascalCase)]
    7373                public static int LONGPRESS = 750;
    7474
     
    7777                /// miliseconds.
    7878                /// </summary>
    79                 [Name(false)]
     79                [Convention(Notation.PascalCase)]
    8080                public static int SOUND_LIMIT = 100;
    8181
     
    8484                /// Must be in the range of 0 (inclusive) to 1 (exclusive).
    8585                /// </summary>
    86                 [Name(false)]
     86                [Convention(Notation.PascalCase)]
    8787                public static double HSV_SATURATION = 0.45;
    8888
     
    9191                /// Must be in the range of 0 (inclusive) to 1 (exclusive).
    9292                /// </summary>
    93                 [Name(false)]
     93                [Convention(Notation.PascalCase)]
    9494                public static double HSV_VALUE = 0.65;
    9595
     
    9797                /// Sprited icons and images.
    9898                /// </summary>
    99                 [Name(false)]
     99                [Convention(Notation.PascalCase)]
    100100                public static object SPRITE = new {
    101101                        width = 96,
     
    107107                /// Required name space for SVG elements.
    108108                /// </summary>
    109                 [Name(false)]
     109                [Convention(Notation.PascalCase)]
    110110                public static readonly string SVG_NS = "http://www.w3.org/2000/svg";
    111111
     
    113113                /// Required name space for HTML elements.
    114114                /// </summary>
    115                 [Name(false)]
     115                [Convention(Notation.PascalCase)]
    116116                public static readonly string HTML_NS = "http://www.w3.org/1999/xhtml";
    117117
     
    119119                /// ENUM for a right-facing value input.  E.g. 'set item to' or 'return'.
    120120                /// </summary>
    121                 [Name(false)]
     121                [Convention(Notation.PascalCase)]
    122122                public static int INPUT_VALUE = 1;
    123123
     
    125125                /// ENUM for a left-facing value output.  E.g. 'random fraction'.
    126126                /// </summary>
    127                 [Name(false)]
     127                [Convention(Notation.PascalCase)]
    128128                public static int OUTPUT_VALUE = 2;
    129129
     
    131131                /// ENUM for a down-facing block stack.  E.g. 'if-do' or 'else'.
    132132                /// </summary>
    133                 [Name(false)]
     133                [Convention(Notation.PascalCase)]
    134134                public static int NEXT_STATEMENT = 3;
    135135
     
    137137                /// ENUM for an up-facing block stack.  E.g. 'break out of loop'.
    138138                /// </summary>
    139                 [Name(false)]
     139                [Convention(Notation.PascalCase)]
    140140                public static int PREVIOUS_STATEMENT = 4;
    141141
     
    143143                /// ENUM for an dummy input.  Used to add field(s) with no input.
    144144                /// </summary>
    145                 [Name(false)]
     145                [Convention(Notation.PascalCase)]
    146146                public static int DUMMY_INPUT = 5;
    147147
     
    149149                /// ENUM for left alignment.
    150150                /// </summary>
    151                 [Name(false)]
     151                [Convention(Notation.PascalCase)]
    152152                public static int ALIGN_LEFT = -1;
    153153
     
    155155                /// ENUM for centre alignment.
    156156                /// </summary>
    157                 [Name(false)]
     157                [Convention(Notation.PascalCase)]
    158158                public static int ALIGN_CENTRE = 0;
    159159
     
    161161                /// ENUM for right alignment.
    162162                /// </summary>
    163                 [Name(false)]
     163                [Convention(Notation.PascalCase)]
    164164                public static int ALIGN_RIGHT = 1;
    165165
     
    167167                /// ENUM for no drag operation.
    168168                /// </summary>
    169                 [Name(false)]
     169                [Convention(Notation.PascalCase)]
    170170                public static int DRAG_NONE = 0;
    171171
     
    173173                /// ENUM for inside the sticky DRAG_RADIUS.
    174174                /// </summary>
    175                 [Name(false)]
     175                [Convention(Notation.PascalCase)]
    176176                public static int DRAG_STICKY = 1;
    177177
     
    180180                /// clicks and drags.
    181181                /// </summary>
    182                 [Name(false)]
     182                [Convention(Notation.PascalCase)]
    183183                public static int DRAG_BEGIN = 1;
    184184
     
    186186                /// ENUM for freely draggable (outside the DRAG_RADIUS, if one applies).
    187187                /// </summary>
    188                 [Name(false)]
     188                [Convention(Notation.PascalCase)]
    189189                public static int DRAG_FREE = 2;
    190190
     
    192192                /// Lookup table for determining the opposite type of a connection.
    193193                /// </summary>
    194                 [Name(false)]
     194                [Convention(Notation.PascalCase)]
    195195                public static int[] OPPOSITE_TYPE = {
    196196                        0,
     
    204204                /// ENUM for toolbox and flyout at top of screen.
    205205                /// </summary>
    206                 [Name(false)]
     206                [Convention(Notation.PascalCase)]
    207207                public static int TOOLBOX_AT_TOP = 0;
    208208
     
    210210                /// ENUM for toolbox and flyout at bottom of screen.
    211211                /// </summary>
    212                 [Name(false)]
     212                [Convention(Notation.PascalCase)]
    213213                public static int TOOLBOX_AT_BOTTOM = 1;
    214214
     
    216216                /// ENUM for toolbox and flyout at left of screen.
    217217                /// </summary>
    218                 [Name(false)]
     218                [Convention(Notation.PascalCase)]
    219219                public static int TOOLBOX_AT_LEFT = 2;
    220220
     
    222222                /// ENUM for toolbox and flyout at right of screen.
    223223                /// </summary>
    224                 [Name(false)]
     224                [Convention(Notation.PascalCase)]
    225225                public static int TOOLBOX_AT_RIGHT = 3;
    226226
     
    236236                public static Block selected;
    237237
    238                 [Name(false)]
     238                [Convention(Notation.PascalCase)]
    239239                public static Blocks Blocks;
    240240
     
    14851485        public class BlockSvg : Block
    14861486        {
    1487                 [Name(false)]
     1487                [Convention(Notation.PascalCase)]
    14881488                public int TAB_HEIGHT = 20;
    14891489
     
    17391739                /// Non-breaking space.
    17401740                /// </summary>
    1741                 [Name(false)]
     1741                [Convention(Notation.PascalCase)]
    17421742                public const string NBSP = "\u00A0";
    17431743
     
    17451745                /// Editable fields are saved by the XML renderer, non-editable fields are not.
    17461746                /// </summary>
    1747                 [Name(false)]
     1747                [Convention(Notation.PascalCase)]
    17481748                public bool EDITABLE = true;
    17491749
Note: See TracChangeset for help on using the changeset viewer.