Esempio n. 1
0
 internal TabCommandInfo(swDocumentTypes_e docType, int cmdId,
                         swCommandTabButtonTextDisplay_e textType)
 {
     DocType  = docType;
     CmdId    = cmdId;
     TextType = textType;
 }
 /// <inheritdoc cref="CommandItemInfoAttribute(bool, bool, swWorkspaceTypes_e)"/>
 /// <param name="showInCmdTabBox">Indicates that this command should be added to command tab box in command manager (ribbon)</param>
 /// <param name="textStyle">Text display type for command in command tab box as defined in <see href="https://help.solidworks.com/2012/English/api/swconst/SolidWorks.Interop.swconst~SolidWorks.Interop.swconst.swCommandTabButtonTextDisplay_e.html?id=3d6975f51c4648378ad4beaf4d3144ca">swCommandTabButtonTextDisplay_e Enumeration</see>.
 /// This option is applicable when 'showInCmdTabBox' is set to true</param>
 public CommandItemInfoAttribute(bool hasMenu, bool hasToolbar, swWorkspaceTypes_e suppWorkspaces,
                                 bool showInCmdTabBox, swCommandTabButtonTextDisplay_e textStyle = swCommandTabButtonTextDisplay_e.swCommandTabButton_TextBelow)
 {
     HasMenu                   = hasMenu;
     HasToolbar                = hasToolbar;
     SupportedWorkspaces       = suppWorkspaces;
     ShowInCommandTabBox       = showInCmdTabBox;
     CommandTabBoxDisplayStyle = textStyle;
 }
Esempio n. 3
0
 public Cmde(String titre, String callbackFunction, String enableMethod, int id, String icon, eTypeDoc type, swCommandTabButtonTextDisplay_e positionTexte, int indexImage)
 {
     Titre            = titre;
     Icon             = icon;
     Position         = -1;
     InfoBulle        = titre;
     IndexImage       = indexImage;
     CallbackFunction = callbackFunction;
     EnableMethod     = enableMethod;
     AddinId          = id;
     Options          = (int)(swCommandItemType_e.swMenuItem | swCommandItemType_e.swToolbarItem);
     Type             = type;
     PositionTexte    = positionTexte;
     CommandId        = -1;
 }
Esempio n. 4
0
        public void AjouterCmde(int idCmd, String iconTexte, Type type, swCommandTabButtonTextDisplay_e positionTexte = swCommandTabButtonTextDisplay_e.swCommandTabButton_TextBelow)
        {
            Cmde C = new Cmde(type.GetModuleTitre(), NomFonction(_NomCallBackFunction, type), NomFonction(_NomEnableFunction, type), idCmd, iconTexte, type.GetModuleTypeDocContexte(), positionTexte, NextIdImg);

            ListeCmde.Add(C);
        }