public void CreateContextMenus()
    {
        Eplan.EplApi.Gui.ContextMenuLocation oCTXLoc  = new Eplan.EplApi.Gui.ContextMenuLocation();
        Eplan.EplApi.Gui.ContextMenu         oCTXMenu = new Eplan.EplApi.Gui.ContextMenu();

        #region 1st menu-entry
        try
        {
            oCTXLoc.DialogName      = "XPlcIoDataDlg";
            oCTXLoc.ContextMenuName = "1024";
            oCTXMenu.AddMenuItem(oCTXLoc, "[SPS-Exchange mnemonics]: E /A -> I/Q", "NAIROLF_ChangePLCMnemonics /DestMnemonik:IQ", false, false);
        }
        catch (System.Exception ex)
        {
            MessageBox.Show(ex.Message, "Error...", MessageBoxButtons.OK, MessageBoxIcon.Error);
        }
        #endregion

        #region 2nd menu-entry
        try
        {
            oCTXLoc.DialogName      = "XPlcIoDataDlg";
            oCTXLoc.ContextMenuName = "1024";
            oCTXMenu.AddMenuItem(oCTXLoc, "[SPS-Mnemonik tauschen]: I/Q -> E/A", "NAIROLF_ChangePLCMnemonics /DestMnemonik:EA", false, false);
        }
        catch (System.Exception ex)
        {
            MessageBox.Show(ex.Message, "Error...", MessageBoxButtons.OK, MessageBoxIcon.Error);
        }
        #endregion
    }
    public void MenuFunction()
    {
        Eplan.EplApi.Gui.ContextMenu oMenu =
            new Eplan.EplApi.Gui.ContextMenu();

        Eplan.EplApi.Gui.ContextMenuLocation oLocation =
            new Eplan.EplApi.Gui.ContextMenuLocation(
                "Editor",
                "Cabinet3D"
                );

        oMenu.AddMenuItem(
            oLocation,
            "Fenstermakro erstellen",
            "StoreWindowMacro",
            true,
            false
            );

        oMenu.AddMenuItem(
            oLocation,
            "Symbolmakro erstellen",
            "StoreSymbolMacro",
            false,
            true
            );
    }
    public void CreateContextMenus()
    {
        Eplan.EplApi.Gui.ContextMenuLocation oCTXLoc = new Eplan.EplApi.Gui.ContextMenuLocation();
        Eplan.EplApi.Gui.ContextMenu oCTXMenu = new Eplan.EplApi.Gui.ContextMenu();

        #region 1st menu-entry
        try
        {
            oCTXLoc.DialogName = "XPlcIoDataDlg";
            oCTXLoc.ContextMenuName = "1024";
            oCTXMenu.AddMenuItem(oCTXLoc, "[SPS-Mnemonik tauschen]: E/A -> I/Q", "NAIROLF_ChangePLCMnemonics /DestMnemonik:IQ", false, false);
        }
        catch (System.Exception ex)
        {
            MessageBox.Show(ex.Message, "Error...", MessageBoxButtons.OK, MessageBoxIcon.Error);
        }
        #endregion

        #region 2nd menu-entry
        try
        {
            oCTXLoc.DialogName = "XPlcIoDataDlg";
            oCTXLoc.ContextMenuName = "1024";
            oCTXMenu.AddMenuItem(oCTXLoc, "[SPS-Mnemonik tauschen]: I/Q -> E/A", "NAIROLF_ChangePLCMnemonics /DestMnemonik:EA", false, false);
        }
        catch (System.Exception ex)
        {
            MessageBox.Show(ex.Message, "Error...", MessageBoxButtons.OK, MessageBoxIcon.Error);
        }
        #endregion
    }
    public void MenuFunction()
    {
        //string menuText = getMenuText();
        Eplan.EplApi.Gui.ContextMenu oMenu =
            new Eplan.EplApi.Gui.ContextMenu();

        Eplan.EplApi.Gui.ContextMenuLocation oLocation =
            new Eplan.EplApi.Gui.ContextMenuLocation(
                "GedEditGuiText",
                "1002"
                );

        Eplan.EplApi.Gui.ContextMenuLocation oLocation2 =
            new Eplan.EplApi.Gui.ContextMenuLocation(
                "XDTDataDialog",
                "4006"
                );


        oMenu.AddMenuItem(
            oLocation,
            "Convert Case Text..",
            "ToUpper",
            true,
            false
            );

        oMenu.AddMenuItem(
            oLocation2,
            "Convert Case Text..",
            "ToUpper",
            true,
            false
            );
    }
 public void PlaceHolderMultiAddRecordContextMenu()
 {
     //Context-Menüeintrag (hier im Platzhalterobjekt)
     Eplan.EplApi.Gui.ContextMenu         oContextMenu         = new Eplan.EplApi.Gui.ContextMenu();
     Eplan.EplApi.Gui.ContextMenuLocation oContextMenuLocation = new Eplan.EplApi.Gui.ContextMenuLocation("PlaceHolder", "1004");
     oContextMenu.AddMenuItem(oContextMenuLocation, "Neuer Wertesatz (&Mehrfach)...", "PlaceHolderMultiAddRecord", false, false);
 }
Exemple #6
0
    public void MenuFunction()
    {
        Eplan.EplApi.Gui.ContextMenu oMenu =
            new Eplan.EplApi.Gui.ContextMenu();

        Eplan.EplApi.Gui.ContextMenuLocation oLocation =
            new Eplan.EplApi.Gui.ContextMenuLocation(
                "Editor",
                "Cabinet3D"
                );

        oMenu.AddMenuItem(
            oLocation,
            "Windowmakro erstellen",
            "StoreWindowMacro",
            true,
            false
            );

        oMenu.AddMenuItem(
            oLocation,
            "Symbolmakro erstellen",
            "StoreSymbolMacro",
            false,
            true
            );
    }
 public void PlaceHolderTranslateContextMenu()
 {
     //Context-Menüeintrag (hier im Platzhalterobjekt)
     Eplan.EplApi.Gui.ContextMenu         oContextMenu         = new Eplan.EplApi.Gui.ContextMenu();
     Eplan.EplApi.Gui.ContextMenuLocation oContextMenuLocation = new Eplan.EplApi.Gui.ContextMenuLocation("PlaceHolder", "1004");
     oContextMenu.AddMenuItem(oContextMenuLocation, "Übersetzen", "PlaceHolderTranslateAction", false, false);
     oContextMenu.AddMenuItem(oContextMenuLocation, "Übersetzungen entfernen", "PlaceHolderTranslateDeleteAction", false, false);
 }
    public void ProjectCopyContextMenu()
    {
        //Context-Menüeintrag
        string menuText = getMenuText();

        Eplan.EplApi.Gui.ContextMenu         oContextMenu         = new Eplan.EplApi.Gui.ContextMenu();
        Eplan.EplApi.Gui.ContextMenuLocation oContextMenuLocation = new Eplan.EplApi.Gui.ContextMenuLocation("XDTDataDialog", "4006");
        oContextMenu.AddMenuItem(oContextMenuLocation, menuText, "ConnectionPointDesignationReverse", true, false);
    }
Exemple #9
0
    public void Comment_Menu()
    //private void AddDialogInsertCommentMenuItem()
    {
        //Menüeintrag
        Eplan.EplApi.Gui.Menu oMenu = new Eplan.EplApi.Gui.Menu();
        oMenu.AddMenuItem("Insertar comentario", "DialogInsertComment", " ejecuta Insertar comentario", 35381, 0, false, false);

        //Kontextmenü Kommentare-Navigator
        Eplan.EplApi.Gui.ContextMenu oContextMenu = new Eplan.EplApi.Gui.ContextMenu();
        //Kontextmenü Kommentare-Navigator, Reiter Baum
        Eplan.EplApi.Gui.ContextMenuLocation oLocation = new Eplan.EplApi.Gui.ContextMenuLocation("XPdfCommentDlgTree", "1032");
        oContextMenu.AddMenuItem(oLocation, "Insertar comentario", "DialogInsertComment", true, false);
        //Kontextmenü Kommentare-Navigator, Reiter Liste
        Eplan.EplApi.Gui.ContextMenuLocation oLocationList = new Eplan.EplApi.Gui.ContextMenuLocation("XPdfCommentDlgList", "1038");
        oContextMenu.AddMenuItem(oLocationList, "Insertar comentario", "DialogInsertComment", true, false);
    }
Exemple #10
0
 public void CreateContextMenus()
 {
     Eplan.EplApi.Gui.ContextMenuLocation oCTXLoc  = new Eplan.EplApi.Gui.ContextMenuLocation();
     Eplan.EplApi.Gui.ContextMenu         oCTXMenu = new Eplan.EplApi.Gui.ContextMenu();
     //Edit in table
     try {
         oCTXLoc.DialogName      = "XFDGFunctionDataFunctionTabDialog";
         oCTXLoc.ContextMenuName = "1006";
         oCTXMenu.AddMenuItem(oCTXLoc, "Replace text", "DialogReplaceText", false, false);
     } catch (System.Exception ex) {
         MessageBox.Show(ex.Message, "Error...", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     //Addresses / Assignment lists
     try {
         oCTXLoc.DialogName      = "XPlcIoDataDlg";
         oCTXLoc.ContextMenuName = "1024";
         oCTXMenu.AddMenuItem(oCTXLoc, "Replace text", "DialogReplaceText", false, false);
     } catch (System.Exception ex) {
         MessageBox.Show(ex.Message, "Error...", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     //Text editing
     try {
         oCTXLoc.DialogName      = "GedEditGuiText";
         oCTXLoc.ContextMenuName = "1002";
         oCTXMenu.AddMenuItem(oCTXLoc, "Replace text", "DialogReplaceText", false, false);
     } catch (System.Exception ex) {
         MessageBox.Show(ex.Message, "Error...", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     //Paste pages
     try {
         oCTXLoc.DialogName      = "PmPageAssimilatePageTabDlg";
         oCTXLoc.ContextMenuName = "1044";
         oCTXMenu.AddMenuItem(oCTXLoc, "Replace text", "DialogReplaceText", false, false);
     } catch (System.Exception ex) {
         MessageBox.Show(ex.Message, "Error...", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     //Numbering cables
     try {
         oCTXLoc.DialogName      = "XCCableNumberingResultDialog";
         oCTXLoc.ContextMenuName = "1150";
         oCTXMenu.AddMenuItem(oCTXLoc, "Replace text", "DialogReplaceText", false, false);
     } catch (System.Exception ex) {
         MessageBox.Show(ex.Message, "Error...", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
    public void MenuFunction()
    {
        Eplan.EplApi.Gui.ContextMenu oMenu =
            new Eplan.EplApi.Gui.ContextMenu();

        Eplan.EplApi.Gui.ContextMenuLocation oLocation =
            new Eplan.EplApi.Gui.ContextMenuLocation(
                "PmPageObjectTreeDialog",
                "1007"
                );

        oMenu.AddMenuItem(
            oLocation,
            "PDF erstellen",
            "PagePdf",
            true,
            false
            );
    }
    public void MenuFunction()
    {
        Eplan.EplApi.Gui.ContextMenu oMenu =
            new Eplan.EplApi.Gui.ContextMenu();

        Eplan.EplApi.Gui.ContextMenuLocation oLocation =
            new Eplan.EplApi.Gui.ContextMenuLocation(
                "PmPageObjectTreeDialog",
                "1007"
                );

        oMenu.AddMenuItem(
            oLocation,
            "PDF erstellen",
            "PagePdf",
            true,
            false
            );
    }
Exemple #13
0
    public void MenuFunction()
    {
        Eplan.EplApi.Gui.ContextMenu menu = new Eplan.EplApi.Gui.ContextMenu();

        Eplan.EplApi.Gui.ContextMenuLocation contextMenuLocation =
            new Eplan.EplApi.Gui.ContextMenuLocation(
                "GedEditGuiText",
                "1002"
                );

        menu.AddMenuItem(
            contextMenuLocation,
            "Menüpunkt in Kontextmenü",
            "MenuAction",
            true,
            false
            );

        return;
    }
    public void MenuFunction()
    {
        Eplan.EplApi.Gui.ContextMenu oMenu =
            new Eplan.EplApi.Gui.ContextMenu();

        Eplan.EplApi.Gui.ContextMenuLocation oLocation =
            new Eplan.EplApi.Gui.ContextMenuLocation(
                "PmPageObjectTreeDialog",
                "1007"
                );

        oMenu.AddMenuItem(
            oLocation,
            "Seite(n) drucken",
            "PrintPages",
            true,
            false
            );

        return;
    }
    public void MenuFunction()
    {
        Eplan.EplApi.Gui.ContextMenu oMenu =
            new Eplan.EplApi.Gui.ContextMenu();

        Eplan.EplApi.Gui.ContextMenuLocation oLocation =
            new Eplan.EplApi.Gui.ContextMenuLocation(
                "PmPageObjectTreeDialog",
                "1007"
                );

        oMenu.AddMenuItem(
            oLocation,
            "Seite(n) drucken",
            "PrintPages",
            true,
            false
            );

        return;
    }
    public void MenuFunction()
    {
        Eplan.EplApi.Gui.ContextMenu oMenu =
            new Eplan.EplApi.Gui.ContextMenu();

        Eplan.EplApi.Gui.ContextMenuLocation oLocation =
            new Eplan.EplApi.Gui.ContextMenuLocation(
                "GedEditGuiText",
                "1002"
                );

        oMenu.AddMenuItem(
            oLocation,
            "Menu item in context menu",
            "MenuAction",
            true,
            false
            );

        return;
    }
    public void MenuFunction()
    {
        Eplan.EplApi.Gui.ContextMenu oMenu =
            new Eplan.EplApi.Gui.ContextMenu();

        Eplan.EplApi.Gui.ContextMenuLocation oLocation =
            new Eplan.EplApi.Gui.ContextMenuLocation(
                "Editor",
                "Ged"
                );

        oMenu.AddMenuItem(
            oLocation,
            "Seite drucken",
            "MenuAction",
            true,
            false
            );

        return;
    }
    public void MenuFunction()
    {
        Eplan.EplApi.Gui.ContextMenu oMenu =
            new Eplan.EplApi.Gui.ContextMenu();

        Eplan.EplApi.Gui.ContextMenuLocation oLocation =
            new Eplan.EplApi.Gui.ContextMenuLocation(
                "Editor",
                "Ged"
                );

        oMenu.AddMenuItem(
            oLocation,
            "Seite drucken",
            "MenuAction",
            true,
            false
            );

        return;
    }
    public void MenuFunction()
    {
        Eplan.EplApi.Gui.ContextMenu oMenu =
            new Eplan.EplApi.Gui.ContextMenu();

        Eplan.EplApi.Gui.ContextMenuLocation oLocation =
            new Eplan.EplApi.Gui.ContextMenuLocation(
                "GedEditGuiText",
                "1002"
                );

        oMenu.AddMenuItem(
            oLocation,
            "Menüpunkt in Kontextmenü",
            "MenuAction",
            true,
            false
            );

        return;
    }
 /// <summary>
 /// Adds the menueitem to contextmenu in GED
 /// </summary>
 private void RemoveVarinatSelectionMenuItem()
 {
     Eplan.EplApi.Gui.ContextMenu         oMenu     = new Eplan.EplApi.Gui.ContextMenu();
     Eplan.EplApi.Gui.ContextMenuLocation oLocation = new Eplan.EplApi.Gui.ContextMenuLocation("Editor", "Ged");
     oMenu.RemoveMenuItem(oLocation, TextHelper.CONTEXT_MENU_ITEM_TEXT, "VarinatSelectionAction", true, false);
 }