public void GetGUI(List <IPluginGUIItem> MenuItems, List <IPluginGUIItem> ToolBarItems)
        {
            PluginGUIItem Item = new PluginGUIItem(StringsPrefix + "NAME", StringsPrefix + "DESCRIPTION", SemanticTreeVisualisatorForm.PluginImage.Image, SemanticTreeVisualisatorForm.PluginImage.BackColor, Execute);

            MenuItems.Add(Item);
            ToolBarItems.Add(Item);
        }
예제 #2
0
        public void GetGUI(List <IPluginGUIItem> MenuItems, List <IPluginGUIItem> ToolBarItems)
        {
            PluginGUIItem Item = new PluginGUIItem(StringsPrefix + "PLUGIN_NAME", StringsPrefix + "PLUGIN_DESCRIPTION", HelpBuilderForm.PluginImage.Image, HelpBuilderForm.PluginImage.BackColor, Execute);

            MenuItems.Add(Item);
            ToolBarItems.Add(Item);
        }
        public void GetGUI(List <IPluginGUIItem> MenuItems, List <IPluginGUIItem> ToolBarItems)
        {
            // SSM 30.12.2010
            string SystemDir = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().ManifestModule.FullyQualifiedName);

            tools = new PT4.Tools(SystemDir);
            if (!tools.AreAvailable)
            {
                return;
            }

            PluginGUIItem Item;

            Item = new PluginGUIItem(StringsPrefix + "D_NAME", StringsPrefix + "D_DESCRIPTION", Images.pb_pt4d.Image, Images.pb_pt4d.BackColor, ExecuteB_D, Keys.Control | Keys.Shift | Keys.D, "Ctrl+Shift+D");
            MenuItems.Add(Item); ToolBarItems.Add(Item);
            Item = new PluginGUIItem(StringsPrefix + "L_NAME", StringsPrefix + "L_DESCRIPTION", Images.pb_pt4l.Image, Images.pb_pt4l.BackColor, ExecuteB_L, Keys.Control | Keys.Shift | Keys.L, "Ctrl+Shift+L");
            MenuItems.Add(Item); ToolBarItems.Add(Item);
            Item = new PluginGUIItem(StringsPrefix + "R_NAME", StringsPrefix + "R_DESCRIPTION", Images.pb_pt4r.Image, Images.pb_pt4r.BackColor, ExecuteB_R, Keys.Control | Keys.Shift | Keys.R, "Ctrl+Shift+R");
            MenuItems.Add(Item); ToolBarItems.Add(Item);

            var PT4Dir = SystemDir + "\\PT4";

            Item = new PluginGUIItem(StringsPrefix + "S_NAME", StringsPrefix + "PT4_Setup", null, Images.pb_pt4r.BackColor, ExecuteB_S, Keys.None, "");
            MenuItems.Add(Item);
        }
        public void GetGUI(List <IPluginGUIItem> MenuItems, List <IPluginGUIItem> ToolBarItems)
        {
            PluginGUIItem Item = new PluginGUIItem(StringsPrefix + "BUILD", StringsPrefix + "BUILD", TextFormatterForm.ImageBuild.Image, TextFormatterForm.ImageBuild.BackColor, ExecuteBuild);

            MenuItems.Add(Item);
            ToolBarItems.Add(Item);
            Item = new PluginGUIItem(StringsPrefix + "OPTIONS", StringsPrefix + "OPTIONS", TextFormatterForm.ImageOptions.Image, TextFormatterForm.ImageOptions.BackColor, ExecuteOptions);
            MenuItems.Add(Item);
            ToolBarItems.Add(Item);
        }
 public void GetGUI(List<IPluginGUIItem> MenuItems, List<IPluginGUIItem> ToolBarItems)
 {
     PluginGUIItem Item = new PluginGUIItem(StringsPrefix + "NAME", StringsPrefix + "DESCRIPTION", CompilerInformation.PluginImage.Image, CompilerInformation.PluginImage.BackColor, Execute);
     MenuItems.Add(Item);
     ToolBarItems.Add(Item);
     if ((ILDASMFileName = GetILDASMFileName()) != null)
     {
         Item = new PluginGUIItem(StringsPrefix + "RUN_ILDASM", StringsPrefix + "RUN_ILDASM", CompilerInformation.RunILDASMImage.Image, CompilerInformation.RunILDASMImage.BackColor, RunILDasm);
         MenuItems.Add(Item);
         ToolBarItems.Add(Item);
     }
     if ((DbgCLRFileName = GetDbgCLRFileName()) != null)
     {
         Item = new PluginGUIItem(StringsPrefix + "RUN_DBGCLR", StringsPrefix + "RUN_DBGCLR", CompilerInformation.RunDbgCLRImage.Image, CompilerInformation.RunDbgCLRImage.BackColor, RunDbgCLR);
         MenuItems.Add(Item);
         ToolBarItems.Add(Item);
     }
 }
예제 #6
0
        public void GetGUI(List <IPluginGUIItem> MenuItems, List <IPluginGUIItem> ToolBarItems)
        {
            PluginGUIItem Item = new PluginGUIItem(StringsPrefix + "NAME", StringsPrefix + "DESCRIPTION", CompilerInformation.PluginImage.Image, CompilerInformation.PluginImage.BackColor, Execute);

            MenuItems.Add(Item);
            ToolBarItems.Add(Item);
            if ((ILDASMFileName = GetILDASMFileName()) != null)
            {
                Item = new PluginGUIItem(StringsPrefix + "RUN_ILDASM", StringsPrefix + "RUN_ILDASM", CompilerInformation.RunILDASMImage.Image, CompilerInformation.RunILDASMImage.BackColor, RunILDasm);
                MenuItems.Add(Item);
                ToolBarItems.Add(Item);
            }
            if ((DbgCLRFileName = GetDbgCLRFileName()) != null)
            {
                Item = new PluginGUIItem(StringsPrefix + "RUN_DBGCLR", StringsPrefix + "RUN_DBGCLR", CompilerInformation.RunDbgCLRImage.Image, CompilerInformation.RunDbgCLRImage.BackColor, RunDbgCLR);
                MenuItems.Add(Item);
                ToolBarItems.Add(Item);
            }
        }
예제 #7
0
        public void GetGUI(List <IPluginGUIItem> MenuItems, List <IPluginGUIItem> ToolBarItems)
        {
            PluginGUIItem Item = new PluginGUIItem(StringsPrefix + "NAME", StringsPrefix + "DESCRIPTION", ErrorReport.PluginImage.Image, ErrorReport.PluginImage.BackColor, Execute);

            MenuItems.Add(Item);
        }
예제 #8
0
 public void GetGUI(List<IPluginGUIItem> MenuItems, List<IPluginGUIItem> ToolBarItems)
 {
     PluginGUIItem Item = new PluginGUIItem(StringsPrefix + "NAME", StringsPrefix + "DESCRIPTION", testForm.PluginImage.Image, testForm.PluginImage.BackColor, Execute);
     MenuItems.Add(Item);
     ToolBarItems.Add(Item);
 }
 void IVisualPascalABCPlugin.GetGUI(List<IPluginGUIItem> MenuItems, List<IPluginGUIItem> ToolBarItems)
 {
     PluginGUIItem Item = new PluginGUIItem(Name, Descr, _form.PluginImage.Image, _form.PluginImage.BackColor, Execute);
     MenuItems.Add(Item);
     ToolBarItems.Add(Item);
 }
 public void GetGUI(List<IPluginGUIItem> MenuItems, List<IPluginGUIItem> ToolBarItems)
 {
     PluginGUIItem Item = new PluginGUIItem(StringsPrefix + "BUILD", StringsPrefix + "BUILD", TextFormatterForm.ImageBuild.Image, TextFormatterForm.ImageBuild.BackColor, ExecuteBuild);
     MenuItems.Add(Item);
     ToolBarItems.Add(Item);
     Item = new PluginGUIItem(StringsPrefix + "OPTIONS", StringsPrefix + "OPTIONS", TextFormatterForm.ImageOptions.Image, TextFormatterForm.ImageOptions.BackColor, ExecuteOptions);
     MenuItems.Add(Item);
     ToolBarItems.Add(Item);
 }
예제 #11
0
        public void GetGUI(List<IPluginGUIItem> MenuItems, List<IPluginGUIItem> ToolBarItems)
        {
            // SSM 30.12.2010
            string SystemDir = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().ManifestModule.FullyQualifiedName);
            tools = new PT4.Tools(SystemDir);
            if (!tools.AreAvailable)
                return;

            PluginGUIItem Item;
            Item = new PluginGUIItem(StringsPrefix + "D_NAME", StringsPrefix + "D_DESCRIPTION", Images.pb_pt4d.Image, Images.pb_pt4d.BackColor, ExecuteB_D, Keys.Control | Keys.Shift | Keys.D, "Ctrl+Shift+D");
            MenuItems.Add(Item);ToolBarItems.Add(Item);
            Item = new PluginGUIItem(StringsPrefix + "L_NAME", StringsPrefix + "L_DESCRIPTION", Images.pb_pt4l.Image, Images.pb_pt4l.BackColor, ExecuteB_L, Keys.Control | Keys.Shift | Keys.L, "Ctrl+Shift+L");
            MenuItems.Add(Item); ToolBarItems.Add(Item);
            Item = new PluginGUIItem(StringsPrefix + "R_NAME", StringsPrefix + "R_DESCRIPTION", Images.pb_pt4r.Image, Images.pb_pt4r.BackColor, ExecuteB_R, Keys.Control | Keys.Shift | Keys.R, "Ctrl+Shift+R");
            MenuItems.Add(Item); ToolBarItems.Add(Item);
        }