Пример #1
0
  { public static void Install()
    {
        Insert_Data Insert;
        String      nl = Environment.NewLine;

        Insert = new Insert_Data();

        Insert.Name     = "Model";
        Insert.Label    = "<model>...</model>";
        Insert.Content += "<model>" + nl;
        Insert.Content += "  <title>" + nl;
        Insert.Content += "    <basic>...</basic>" + nl;
        Insert.Content += "    <navigator>...</navigator>" + nl;
        Insert.Content += "  </title>" + nl;
        Insert.Content += nl;
        Insert.Content += "</model>" + nl;

        Insert_Manager.AddToRoot(Insert);

        Insert_Manager.Push();

        I_Structure.Install();
        I_Math.Install();
        I_Control.Install();
        I_Display.Install();
        I_Docs.Install();

        Insert_Manager.Pop();
    }
Пример #2
0
  { public static void Install()
    {
        Insert_Data Insert;
        String      nl = Environment.NewLine;

        Insert = new Insert_Data();

        Insert.Name  = "EditBox";
        Insert.Label = "<editbox>...</editbox>";

        Insert.Content += "      <editbox>" + nl;
        Insert.Content += "        <row>  </row>" + nl;
        Insert.Content += "        <col>  </col>" + nl;
        Insert.Content += "        <name>  </name>" + nl;
        Insert.Content += "        <label>  </label>" + nl;
        Insert.Content += "        <min>  </min>" + nl;
        Insert.Content += "        <max>  </max>" + nl;
        Insert.Content += "      </editbox>" + nl;

        Insert.WideContent += "      <editbox>" + nl;
        Insert.WideContent += "        <row>  </row><col>  </col>" + nl;
        Insert.WideContent += "        <name>  </name><label>  </label>" + nl;
        Insert.WideContent += "        <min>  </min><max>  </max>" + nl;
        Insert.WideContent += "      </editbox>" + nl;

        Insert_Manager.Add(Insert);
    }
Пример #3
0
  { public static void Install()
    {
        Insert_Data Insert;
        String      nl = Environment.NewLine;

        Insert = new Insert_Data();

        Insert.Name  = "ActionButton";
        Insert.Label = "<actionbutton>...</actionbutton>";

        Insert.Content += "      <actionbutton>" + nl;
        Insert.Content += "        <row>  </row>" + nl;
        Insert.Content += "        <col>  </col>" + nl;
        Insert.Content += "        <blockname>  </blockname>" + nl;
        Insert.Content += "        <label>  </label>" + nl;
        Insert.Content += "        <layout>  </layout>" + nl;
        Insert.Content += "      </actionbutton>" + nl;

        Insert.WideContent += "      <actionbutton>" + nl;
        Insert.WideContent += "        <row>  </row><col>  </col>" + nl;
        Insert.WideContent += "        <blockname>  </blockname>" + nl;
        Insert.WideContent += "        <label>  </label><layout>  </layout>" + nl;
        Insert.WideContent += "      </actionbutton>" + nl;

        Insert_Manager.Add(Insert);
    }
Пример #4
0
  { public static void Install()
    {
        Insert_Data Insert;
        String      nl = Environment.NewLine;

        Insert = new Insert_Data();

        Insert.Name     = "Structure";
        Insert.Label    = "<structure>...</structure>";
        Insert.Content += "  <structure>" + nl;
        Insert.Content += "    <name>  </name>" + nl;
        Insert.Content += nl;
        Insert.Content += "  </structure>" + nl;

        Insert_Manager.Add(Insert);

        Insert_Manager.Push();

        I_Variables.Install();
        I_Equations.Install();
        I_Functions.Install();
        I_Definitions.Install();

        Insert_Manager.Pop();
    }
Пример #5
0
  { public static void Install()
    {
        Insert_Data Insert;
        String      nl = Environment.NewLine;

        Insert = new Insert_Data();

        Insert.Name     = "Equations";
        Insert.Label    = "<equations>...</equations>";
        Insert.Content += "    <equations>" + nl;
        Insert.Content += nl;
        Insert.Content += "    </equations>" + nl;

        Insert_Manager.Add(Insert);

        Insert_Manager.Push();

        I_DiffEq.Install();
        I_BackwardEuler.Install();
        I_Delay.Install();
        I_Lag.Install();
        I_ImplicitEq.Install();
        I_StableDiffEq.Install();
        I_StableDelay.Install();

        Insert_Manager.Pop();
    }
Пример #6
0
  { public static void Install()
    {
        Insert_Data Insert;
        String      nl = Environment.NewLine;

        Insert = new Insert_Data();

        Insert.Name  = "RadioButtons";
        Insert.Label = "<radiobuttons>...</radiobuttons>";

        Insert.Content += "      <radiobuttons>" + nl;
        Insert.Content += "        <row>  </row>" + nl;
        Insert.Content += "        <col>  </col>" + nl;
        Insert.Content += "        <name>  </name>" + nl;
        Insert.Content += "        <listname>  </listname>" + nl;
        Insert.Content += "        <label>  </label>" + nl;
        Insert.Content += "        <layout>  </layout>" + nl;
        Insert.Content += "      </radiobuttons>" + nl;

        Insert.WideContent += "      <radiobuttons>" + nl;
        Insert.WideContent += "        <row>  </row><col>  </col>" + nl;
        Insert.WideContent += "        <name>  </name><listname>  </listname>" + nl;
        Insert.WideContent += "        <label>  </label><layout>  </layout>" + nl;
        Insert.WideContent += "      </radiobuttons>" + nl;

        Insert_Manager.Add(Insert);
    }
Пример #7
0
  { public static void Install()
    {
        Insert_Data Insert;
        String      nl = Environment.NewLine;

        Insert = new Insert_Data();

        Insert.Name     = "Variables";
        Insert.Label    = "<variables>...</variables>";
        Insert.Content += "    <variables>" + nl;
        Insert.Content += nl;
        Insert.Content += "    </variables>" + nl;

        Insert_Manager.Add(Insert);

        Insert_Manager.Push();

        I_Var.Install();
        I_Parm.Install();
        I_Constant.Install();
        I_TimerVar.Install();
        I_NormalDist.Install();
        I_WhiteNoise.Install();

        Insert_Manager.Pop();
    }
Пример #8
0
  { public static void Install()
    {
        Insert_Data Insert;
        String      nl = Environment.NewLine;

        Insert = new Insert_Data();

        Insert.Name  = "ShowFile";
        Insert.Label = "<showfile>...</showfile>";

        Insert.Content += "      <showfile>" + nl;
        Insert.Content += "        <row>  </row>" + nl;
        Insert.Content += "        <col>  </col>" + nl;
        Insert.Content += "        <high>  </high>" + nl;
        Insert.Content += "        <wide>  </wide>" + nl;
        Insert.Content += "        <name>  </name>" + nl;
        Insert.Content += nl;
        Insert.Content += "      </showfile>" + nl;

        Insert.WideContent += "      <showfile>" + nl;
        Insert.WideContent += "        <row>  </row><col>  </col>" + nl;
        Insert.WideContent += "        <high>  </high><wide>  </wide>" + nl;
        Insert.WideContent += "        <name>  </name>" + nl;
        Insert.WideContent += nl;
        Insert.WideContent += "      </showfile>" + nl;

        Insert_Manager.Add(Insert);
    }
Пример #9
0
  { public static void Install()
    {
        Insert_Data Insert;
        String      nl = Environment.NewLine;

        Insert = new Insert_Data();

        Insert.Name  = "Label";
        Insert.Label = "<label>...</label>";

        Insert.Content += "      <label>" + nl;
        Insert.Content += "        <row>  </row>" + nl;
        Insert.Content += "        <col>  </col>" + nl;
        Insert.Content += "        <text>  </text>" + nl;
        Insert.Content += "        <fieldwidth>  </fieldwidth>" + nl;
        Insert.Content += "        <justify>  </justify>" + nl;
        Insert.Content += "        <color>  </color>" + nl;
        Insert.Content += "      </label>" + nl;

        Insert.WideContent += "      <label>" + nl;
        Insert.WideContent += "        <row>  </row><col>  </col>" + nl;
        Insert.WideContent += "        <text>  </text>" + nl;
        Insert.WideContent += "        <fieldwidth>  </fieldwidth><justify>  </justify>" + nl;
        Insert.WideContent += "        <color>  </color>" + nl;
        Insert.WideContent += "      </label>" + nl;

        Insert_Manager.Add(Insert);
    }
Пример #10
0
  { public static void Install()
    {
        Insert_Data Insert;
        String      nl = Environment.NewLine;

        Insert = new Insert_Data();

        Insert.Name    = "Include";
        Insert.Label   = "<?include ?>";
        Insert.Content = "<?include ?>" + nl;

        Insert_Manager.AddToRoot(Insert);

        Insert = new Insert_Data();

        Insert.Name    = "Path";
        Insert.Label   = "<?path ?>";
        Insert.Content = "<?path ?>" + nl;

        Insert_Manager.AddToRoot(Insert);

        Insert = new Insert_Data();

        Insert.Name    = "Comment";
        Insert.Label   = "<!-- comment -->";
        Insert.Content = "<!--  -->" + nl;

        Insert_Manager.AddToRoot(Insert);
    }
Пример #11
0
  { public static void Install()
    {
        Insert_Data Insert;
        String      nl = Environment.NewLine;

        Insert = new Insert_Data();

        Insert.Name  = "GroupBox";
        Insert.Label = "<groupbox>...</groupbox>";

        Insert.Content += "      <groupbox>" + nl;
        Insert.Content += "        <row>  </row>" + nl;
        Insert.Content += "        <col>  </col>" + nl;
        Insert.Content += "        <high>  </high>" + nl;
        Insert.Content += "        <wide>  </wide>" + nl;
        Insert.Content += "        <title>  </title>" + nl;
        Insert.Content += nl;
        Insert.Content += "      </groupbox>" + nl;

        Insert.WideContent += "      <groupbox>" + nl;
        Insert.WideContent += "        <row>  </row><col>  </col>" + nl;
        Insert.WideContent += "        <high>  </high><wide>  </wide>" + nl;
        Insert.WideContent += "        <title>  </title>" + nl;
        Insert.WideContent += nl;
        Insert.WideContent += "      </groupbox>" + nl;

        Insert_Manager.Add(Insert);
    }
Пример #12
0
  { public static void Install()
    {
        Insert_Data Insert;
        String      nl = Environment.NewLine;

        Insert = new Insert_Data();

        Insert.Name  = "Symbol";
        Insert.Label = "<symbol>...</symbol>";

        Insert.Content += "        <symbol>" + nl;
        Insert.Content += "          <name>  </name>" + nl;
        Insert.Content += "          <style>  </style>" + nl;
        Insert.Content += "          <color>  </color>" + nl;
        Insert.Content += "          <size>  </size>" + nl;
        Insert.Content += "          <linewidth>  </linewidth>" + nl;
        Insert.Content += "        </symbol>" + nl;

        Insert.WideContent += "        <symbol>" + nl;
        Insert.WideContent += "          <name>  </name><style>  </style><color>  </color>" + nl;
        Insert.WideContent += "          <size>  </size><linewidth>  </linewidth>" + nl;
        Insert.WideContent += "        </symbol>" + nl;

        Insert_Manager.Add(Insert);
    }
Пример #13
0
  { public static void Install()
    {
        Insert_Data Insert;
        String      nl = Environment.NewLine;

        Insert = new Insert_Data();

        Insert.Name  = "SlideBar";
        Insert.Label = "<slidebar>...</slidebar>";

        Insert.Content += "      <slidebar>" + nl;
        Insert.Content += "        <row>  </row>" + nl;
        Insert.Content += "        <col>  </col>" + nl;
        Insert.Content += "        <high>  </high>" + nl;
        Insert.Content += "        <wide>  </wide>" + nl;
        Insert.Content += "        <name>  </name>" + nl;
        Insert.Content += "        <listname>  </listname>" + nl;
        Insert.Content += "        <label>  </label>" + nl;
        Insert.Content += "        <fieldwidth>  </fieldwidth>" + nl;
        Insert.Content += "      </slidebar>" + nl;

        Insert.WideContent += "      <slidebar>" + nl;
        Insert.WideContent += "        <row>  </row><col>  </col>" + nl;
        Insert.WideContent += "        <high>  </high><wide>  </wide>" + nl;
        Insert.WideContent += "        <name>  </name>" + nl;
        Insert.WideContent += "        <listname>  </listname>" + nl;
        Insert.WideContent += "        <label>  </label>" + nl;
        Insert.WideContent += "        <fieldwidth>  </fieldwidth>" + nl;
        Insert.WideContent += "      </slidebar>" + nl;

        Insert_Manager.Add(Insert);
    }
Пример #14
0
  { public static void Install()
    {
        Insert_Data Insert;
        String      nl = Environment.NewLine;

        Insert = new Insert_Data();

        Insert.Name  = "ShowClock";
        Insert.Label = "<showclock>...</showclock>";

        Insert.Content += "      <showclock>" + nl;
        Insert.Content += "        <row>  </row>" + nl;
        Insert.Content += "        <col>  </col>" + nl;
        Insert.Content += "        <name>  </name>" + nl;
        Insert.Content += "        <timebase>  </timebase>" + nl;
        Insert.Content += "        <ampm/>" + nl;
        Insert.Content += "        <secs/>" + nl;
        Insert.Content += "        <days/>" + nl;
        Insert.Content += "      </showclock>" + nl;

        Insert.WideContent += "      <showclock>" + nl;
        Insert.WideContent += "        <row>  </row><col>  </col>" + nl;
        Insert.WideContent += "        <name>  </name>" + nl;
        Insert.WideContent += "        <timebase>  </timebase>" + nl;
        Insert.WideContent += "        <ampm/><secs/><days/>" + nl;
        Insert.WideContent += "      </showclock>" + nl;

        Insert_Manager.Add(Insert);
    }
Пример #15
0
  { public static void Install()
    {
        Insert_Data Insert;
        String      nl = Environment.NewLine;

        Insert = new Insert_Data();

        Insert.Name  = "CheckMark";
        Insert.Label = "<checkmark>...</checkmark>";

        Insert.Content += "      <checkmark>" + nl;
        Insert.Content += "        <row>  </row>" + nl;
        Insert.Content += "        <col>  </col>" + nl;
        Insert.Content += "        <name>  </name>" + nl;
        Insert.Content += "        <label>  </label>" + nl;
        Insert.Content += "        <layout>  </layout>" + nl;
        Insert.Content += "      </checkmark>" + nl;

        Insert.WideContent += "      <checkmark>" + nl;
        Insert.WideContent += "        <row>  </row><col>  </col>" + nl;
        Insert.WideContent += "        <name>  </name><label>  </label>" + nl;
        Insert.WideContent += "        <layout>  </layout>" + nl;
        Insert.WideContent += "      </checkmark>" + nl;

        Insert_Manager.Add(Insert);
    }
Пример #16
0
  { public static void Install()
    {
        Insert_Data Insert;
        String      nl = Environment.NewLine;

        Insert = new Insert_Data();

        Insert.Name  = "Panel";
        Insert.Label = "<panel>...</panel>";

        Insert.Content += "    <panel>" + nl;
        Insert.Content += "      <name>  </name>" + nl;
        Insert.Content += "      <tablabel>  </tablabel>" + nl;
        Insert.Content += nl;
        Insert.Content += "    </panel>" + nl;

        Insert.WideContent += "    <panel>" + nl;
        Insert.WideContent += "      <name>  </name><tablabel>  </tablabel>" + nl;
        Insert.WideContent += nl;
        Insert.WideContent += "    </panel>" + nl;

        Insert_Manager.Add(Insert);

        Insert_Manager.Push();

        I_ActionButton.Install();
        I_CheckBox.Install();
        I_CheckMark.Install();
        I_EditBox.Install();
        I_GroupBox.Install();
        I_InfoButton.Install();
        I_Label.Install();
        I_MapListPanel.Install();
        I_Note.Install();
        I_RadioButtons.Install();
        I_RepeatListPanel.Install();
        I_ShowBargraph.Install();
        I_ShowBitmap.Install();
        I_ShowBitmapFile.Install();
        I_ShowClock.Install();
        I_ShowCurve.Install();
        I_ShowFile.Install();
        I_ShowGraph.Install();
        I_ShowMap.Install();
        I_ShowPanelName.Install();
        I_ShowTable.Install();
        I_ShowValue.Install();
        I_StructureNamePanel.Install();
        I_SlideBar.Install();
        I_SymbolPanel.Install();
        I_ValueBar.Install();

        Insert_Manager.Pop();
    }
Пример #17
0
    private static bool InInserts(Insert_Data InsertArg)
    {
        foreach (Insert_Data Insert in Inserts)
        {
            if (Insert.Name == InsertArg.Name)
            {
                return(true);
            }
        }

        return(false);
    }
Пример #18
0
  { public static void Install()
    {
        Insert_Data Insert;
        String      nl = Environment.NewLine;

        Insert = new Insert_Data();

        Insert.Name     = "StructureNamePanel";
        Insert.Label    = "<structurename>...</structurename>";
        Insert.Content += "      <structurename>  </structurename>" + nl;

        Insert_Manager.Add(Insert);
    }
Пример #19
0
  { public static void Install()
    {
        Insert_Data Insert;
        String      nl = Environment.NewLine;

        Insert = new Insert_Data();

        Insert.Name     = "CalcLag";
        Insert.Label    = "<calclag>...</calclag>";
        Insert.Content += "        <calclag>  </calclag>" + nl;

        Insert_Manager.Add(Insert);
    }
Пример #20
0
  { public static void Install()
    {
        Insert_Data Insert;
        String      nl = Environment.NewLine;

        Insert = new Insert_Data();

        Insert.Name     = "Message";
        Insert.Label    = "<message>...</message>";
        Insert.Content += "        <message>  </message>" + nl;

        Insert_Manager.Add(Insert);
    }
Пример #21
0
  { public static void Install()
    {
        Insert_Data Insert;
        String      nl = Environment.NewLine;

        Insert = new Insert_Data();

        Insert.Name     = "Beep";
        Insert.Label    = "<beep/>";
        Insert.Content += "        <beep/>" + nl;

        Insert_Manager.Add(Insert);
    }
Пример #22
0
  { public static void Install()
    {
        Insert_Data Insert;
        String      nl = Environment.NewLine;

        Insert = new Insert_Data();

        Insert.Name     = "DisplayFirst";
        Insert.Label    = "<displayfirst>...</displayfirst>";
        Insert.Content += "      <displayfirst>  </displayfirst>" + nl;

        Insert_Manager.Add(Insert);
    }
Пример #23
0
  { public static void Install()
    {
        Insert_Data Insert;
        String      nl = Environment.NewLine;

        Insert = new Insert_Data();

        Insert.Name  = "ShowValue";
        Insert.Label = "<showvalue>...</showvalue>";

        Insert.Content += "      <showvalue>" + nl;
        Insert.Content += "        <row>  </row>" + nl;
        Insert.Content += "        <col>  </col>" + nl;
        Insert.Content += "        <name>  </name>" + nl;
        Insert.Content += "        <format>" + nl;
        Insert.Content += "          <decimal>  </decimal>" + nl;
        Insert.Content += "        </format>" + nl;
        Insert.Content += "        <label>  </label>" + nl;
        Insert.Content += "      </showvalue>" + nl;

        Insert.WideContent += "      <showvalue>" + nl;
        Insert.WideContent += "        <row>  </row><col>  </col>" + nl;
        Insert.WideContent += "        <name>  </name>" + nl;
        Insert.WideContent += "        <format><decimal>  </decimal></format>" + nl;
        Insert.WideContent += "        <label>  </label>" + nl;
        Insert.WideContent += "      </showvalue>" + nl;

        Insert_Manager.Add(Insert);

        Insert_Manager.Push();

        Insert = new Insert_Data();

        Insert.Name     = "ValueFormat";
        Insert.Label    = "<format>...</format>";
        Insert.Content += "        <format>" + nl;
        Insert.Content += "          <none/>" + nl;
        Insert.Content += "          <integer/>" + nl;
        Insert.Content += "          <decimal>  </decimal>" + nl;
        Insert.Content += "          <list>  </list>" + nl;
        Insert.Content += "          <timer/>" + nl;
        Insert.Content += "          <timestamp/>" + nl;
        Insert.Content += "          <boolean/>" + nl;
        Insert.Content += "          <fieldwidth>  </fieldwidth>" + nl;
        Insert.Content += "          <justify>  </justify>" + nl;
        Insert.Content += "        </format>" + nl;

        Insert_Manager.Add(Insert);

        Insert_Manager.Pop();
    }
Пример #24
0
  { public static void Install()
    {
        Insert_Data Insert;
        String      nl = Environment.NewLine;

        Insert = new Insert_Data();

        Insert.Name     = "Math";
        Insert.Label    = "<math>...</math>";
        Insert.Content += "  <math>" + nl;
        Insert.Content += nl;
        Insert.Content += "  </math>" + nl;

        Insert_Manager.Add(Insert);

        Insert_Manager.Push();

        Insert = new Insert_Data();

        Insert.Name    = "Context";
        Insert.Label   = "<context>...</context>";
        Insert.Content = "    <context>  </context>" + nl;

        Insert_Manager.Add(Insert);

        Insert = new Insert_Data();

        Insert.Name    = "Parms";
        Insert.Label   = "<parms>...</parms>";
        Insert.Content = "    <parms>  </parms>" + nl;

        Insert_Manager.Add(Insert);

        Insert = new Insert_Data();

        Insert.Name    = "Dervs";
        Insert.Label   = "<dervs>...</dervs>";
        Insert.Content = "    <dervs>  </dervs>" + nl;

        Insert_Manager.Add(Insert);

        Insert = new Insert_Data();

        Insert.Name    = "WrapUp";
        Insert.Label   = "<wrapup>...</wrapup>";
        Insert.Content = "    <wrapup>  </wrapup>" + nl;

        Insert_Manager.Add(Insert);

        Insert_Manager.Pop();
    }
Пример #25
0
    public static void AddToRoot(Insert_Data Insert)
    {
        if (!InInserts(Insert))
        {
            Inserts.Add(Insert);
        }

        Node = new TreeNode();

        Node.Text = Insert.Label;
        Node.Tag  = Insert.Name;

        Tree.Nodes.Add(Node);
    }
Пример #26
0
    public static void Add(Insert_Data Insert)
    {
        if (!InInserts(Insert))
        {
            Inserts.Add(Insert);
        }

        Node = new TreeNode();

        Node.Text = Insert.Label;
        Node.Tag  = Insert.Name;

        TreeNode Parent = (TreeNode)Insert_Stack.TreeStack.Peek();

        Parent.Nodes.Add(Node);
    }
Пример #27
0
  { public static void Install()
    {
        Insert_Data Insert;
        String      nl = Environment.NewLine;

        Insert = new Insert_Data();

        Insert.Name     = "OpenOnTimedOut";
        Insert.Label    = "<ontimedout>...</ontimedout>";
        Insert.Content += "        <ontimedout>" + nl;
        Insert.Content += "          <name>  </name>" + nl;
        Insert.Content += nl;
        Insert.Content += "        </ontimedout>" + nl;

        Insert_Manager.Add(Insert);
    }
Пример #28
0
  { public static void Install()
    {
        Insert_Data Insert;
        String      nl = Environment.NewLine;

        Insert = new Insert_Data();

        Insert.Name     = "MapListPanel";
        Insert.Label    = "<maplist>...</maplist>";
        Insert.Content += "      <maplist>" + nl;
        Insert.Content += "        <name>  </name>" + nl;
        Insert.Content += "        <map><val>  </val><img>  </img></map>" + nl;
        Insert.Content += "      </maplist>" + nl;

        Insert_Manager.Add(Insert);
    }
Пример #29
0
  { public static void Install()
    {
        Insert_Data Insert;
        String      nl = Environment.NewLine;

        Insert = new Insert_Data();

        Insert.Name     = "OnJustChanged";
        Insert.Label    = "<onjustchanged>...</onjustchanged>";
        Insert.Content += "        <onjustchanged>" + nl;
        Insert.Content += "          <name>  </name>" + nl;
        Insert.Content += nl;
        Insert.Content += "        </onjustchanged>" + nl;

        Insert_Manager.Add(Insert);
    }
Пример #30
0
  { public static void Install()
    {
        Insert_Data Insert;
        String      nl = Environment.NewLine;

        Insert = new Insert_Data();

        Insert.Name     = "Case";
        Insert.Label    = "<case>...</case>";
        Insert.Content += "          <case>" + nl;
        Insert.Content += "            <test>  </test>" + nl;
        Insert.Content += nl;
        Insert.Content += "          </case>" + nl;

        Insert_Manager.Add(Insert);
    }