home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / CMCD0404.ISO / Software / Freeware / Programare / Sharpdev / 099bsetup.exe / FormDesignerDisplayBinding.addin < prev    next >
Text File  |  2003-12-30  |  21KB  |  297 lines

  1. <AddIn name        = "Form Designer"
  2.        author      = "Mike Krueger"
  3.        copyright   = "GPL"
  4.        url         = "http://www.icsharpcode.net"
  5.        description = "SharpDevelop Form Designer"
  6.        version     = "1.0.0">
  7.     
  8.     <Runtime>
  9.         <Import assembly="ICSharpCode.FormDesigner.dll"/>
  10.     </Runtime>
  11.     
  12.     <Extension path = "/Workspace/Autostart">
  13.         <Class id = "InsertFormKeyHandler" 
  14.                insertbefore = "StartWorkbenchCommand"
  15.                class = "ICSharpCode.SharpDevelop.FormDesigner.InsertFormKeyHandler"/>
  16.     </Extension>
  17.  
  18.     <Extension path = "/SharpDevelop/Workbench/DisplayBindings">
  19.         <DisplayBinding id           = "CSharpDesigner"
  20.                         insertbefore = "Browser,Text"
  21.                         supportedformats = "CSharp Forms/UserControls"
  22.                         class            = "ICSharpCode.SharpDevelop.FormDesigner.CSharpDesignerDisplayBinding" />
  23.         <DisplayBinding id           = "VBNetFormsDesigner"
  24.                         insertbefore = "Browser,Text"
  25.                         supportedformats = "Windows Forms"
  26.                         class            = "ICSharpCode.SharpDevelop.FormDesigner.VBNetDesignerDisplayBinding" /> 
  27.         <DisplayBinding id           = "FormsDesigner"
  28.                         insertbefore = "Browser,Text"
  29.                         supportedformats = "Windows Forms"
  30.                         class            = "ICSharpCode.SharpDevelop.FormDesigner.FormDesignerDisplayBinding" />
  31.     </Extension>
  32.  
  33.     <Extension path = "/SharpDevelop/FormsDesigner/ContextMenus/SelectionMenu">
  34.         <MenuItem id          = "ViewCode" 
  35.                   label       = "${res:SharpDevelop.FormsDesigner.ContextMenus.ViewCodeCommand}"
  36.                   icon        = "Icons.16x16.FormsDesigner.ViewCode"
  37.                   class       = "ICSharpCode.SharpDevelop.FormEditor.Commands.ViewCode"/>
  38.             <MenuItem id = "ViewCodeSeparator" label = "-"/>
  39.                    <MenuItem id          = "BringToFront" 
  40.                           label       = "${res:XML.MainMenu.FormatMenu.HorizontalSpacingMenu.BringToFront}"
  41.                           icon        = "Icons.16x16.FormsDesigner.BringToFront"
  42.                           class       = "ICSharpCode.SharpDevelop.FormEditor.Commands.BringToFront"/>
  43.                    <MenuItem id          = "SendToBack" 
  44.                           label       = "${res:XML.MainMenu.FormatMenu.OrderMenu.SendToBack}"
  45.                           icon        = "Icons.16x16.FormsDesigner.SendToBack"
  46.                           class       = "ICSharpCode.SharpDevelop.FormEditor.Commands.SendToBack"/>
  47.             <MenuItem id = "OrderSeparator" label = "-"/>
  48.         
  49.         <MenuItem id          = "AlignToGrid" 
  50.                           label       = "${res:SharpDevelop.FormsDesigner.ContextMenus.SelectionMenu.AlignToGrid}"
  51.                           icon        = "Icons.16x16.FormsDesigner.AlignMiddles"
  52.                           class       = "ICSharpCode.SharpDevelop.FormEditor.Commands.AlignToGrid"/>
  53.             <MenuItem id = "AlignSeparator" label = "-"/>
  54.                         <MenuItem id          = "Lock" 
  55.                                       label       = "${res:XML.MainMenu.FormatMenu.Lock}"
  56.                           icon        = "Icons.16x16.FormsDesigner.LockControls"
  57.                                       class = "ICSharpCode.SharpDevelop.FormEditor.Commands.LockControls"/>
  58.             <MenuItem id = "LockSeparator" label = "-"/>
  59.             <MenuItem id = "DesignerVerbsBuilder" label = "" class = "ICSharpCode.SharpDevelop.FormEditor.Commands.DesignerVerbSubmenuBuilder" />
  60.                         <MenuItem id = "Cut" 
  61.                                   label = "${res:XML.MainMenu.EditMenu.Cut}" 
  62.                                   icon = "Icons.16x16.CutIcon" 
  63.                                   class = "ICSharpCode.SharpDevelop.Commands.Cut"/>
  64.                         <MenuItem id = "Copy" 
  65.                                   label = "${res:XML.MainMenu.EditMenu.Copy}" 
  66.                                   icon = "Icons.16x16.CopyIcon" 
  67.                                   class = "ICSharpCode.SharpDevelop.Commands.Copy"/>
  68.                         <MenuItem id = "Paste" 
  69.                                   label = "${res:XML.MainMenu.EditMenu.Paste}" 
  70.                                   icon = "Icons.16x16.PasteIcon"  
  71.                                   class = "ICSharpCode.SharpDevelop.Commands.Paste"/>
  72.                         <MenuItem id = "Delete"
  73.                                   label = "${res:XML.MainMenu.EditMenu.Delete}" 
  74.                                   icon = "Icons.16x16.DeleteIcon" 
  75.                                   class = "ICSharpCode.SharpDevelop.Commands.Delete"/>
  76.     </Extension>
  77.     
  78.     <Extension path = "/SharpDevelop/FormsDesigner/ContextMenus/ContainerMenu">
  79.          <MenuItem id          = "ViewCode" 
  80.                label       = "${res:SharpDevelop.FormsDesigner.ContextMenus.ViewCodeCommand}"
  81.                   icon        = "Icons.16x16.FormsDesigner.ViewCode"
  82.                   class       = "ICSharpCode.SharpDevelop.FormEditor.Commands.ViewCode"/>
  83.             <MenuItem id = "ViewCodeSeparator" label = "-"/>
  84.                         <MenuItem id          = "Lock" 
  85.                                       label       = "${res:XML.MainMenu.FormatMenu.Lock}"
  86.                           icon        = "Icons.16x16.FormsDesigner.LockControls"
  87.                                       class = "ICSharpCode.SharpDevelop.FormEditor.Commands.LockControls"/>
  88.             <MenuItem id = "LockSeparator" label = "-"/>
  89.                         <MenuItem id = "Paste" 
  90.                                   label = "${res:XML.MainMenu.EditMenu.Paste}" 
  91.                                   icon = "Icons.16x16.PasteIcon"  
  92.                                   class = "ICSharpCode.SharpDevelop.Commands.Paste"/>
  93.            </Extension>
  94.     
  95.     <Extension path = "/SharpDevelop/FormsDesigner/ContextMenus/TraySelectionMenu">
  96.          <MenuItem id          = "ViewCode" 
  97.                label       = "${res:SharpDevelop.FormsDesigner.ContextMenus.ViewCodeCommand}"
  98.                   icon        = "Icons.16x16.FormsDesigner.ViewCode"
  99.                   class       = "ICSharpCode.SharpDevelop.FormEditor.Commands.ViewCode"/>
  100.             <MenuItem id = "ViewCodeSeparator" label = "-"/>
  101.             <MenuItem id = "DesignerVerbsBuilder" label = "" class = "ICSharpCode.SharpDevelop.FormEditor.Commands.DesignerVerbSubmenuBuilder" />
  102.                         <MenuItem id = "Cut" 
  103.                                   label = "${res:XML.MainMenu.EditMenu.Cut}" 
  104.                                   icon = "Icons.16x16.CutIcon" 
  105.                                   class = "ICSharpCode.SharpDevelop.Commands.Cut"/>
  106.                         <MenuItem id = "Copy" 
  107.                                   label = "${res:XML.MainMenu.EditMenu.Copy}" 
  108.                                   icon = "Icons.16x16.CopyIcon" 
  109.                                   class = "ICSharpCode.SharpDevelop.Commands.Copy"/>
  110.                         <MenuItem id = "Paste" 
  111.                                   label = "${res:XML.MainMenu.EditMenu.Paste}" 
  112.                                   icon = "Icons.16x16.PasteIcon"  
  113.                                   class = "ICSharpCode.SharpDevelop.Commands.Paste"/>
  114.                         <MenuItem id = "Delete"
  115.                                   label = "${res:XML.MainMenu.EditMenu.Delete}" 
  116.                                   icon = "Icons.16x16.DeleteIcon" 
  117.                                   class = "ICSharpCode.SharpDevelop.Commands.Delete"/>
  118.     </Extension>
  119.     
  120.     <Extension path = "/SharpDevelop/FormsDesigner/ContextMenus/ComponentTrayMenu">
  121.         <MenuItem id          = "ViewCode" 
  122.                   label       = "${res:SharpDevelop.FormsDesigner.ContextMenus.ViewCodeCommand}"
  123.                   icon        = "Icons.16x16.FormsDesigner.ViewCode"
  124.                   class       = "ICSharpCode.SharpDevelop.FormEditor.Commands.ViewCode"/>
  125.             <MenuItem id = "ViewCodeSeparator" label = "-"/>
  126.                         <MenuItem id          = "Lock" 
  127.                                       label       = "${res:XML.MainMenu.FormatMenu.Lock}"
  128.                           icon        = "Icons.16x16.FormsDesigner.LockControls"
  129.                                       class = "ICSharpCode.SharpDevelop.FormEditor.Commands.LockControls"/>
  130.             <MenuItem id = "LockSeparator" label = "-"/>
  131.                         <MenuItem id = "Paste" 
  132.                                   label = "${res:XML.MainMenu.EditMenu.Paste}" 
  133.                                   icon = "Icons.16x16.PasteIcon"  
  134.                                   class = "ICSharpCode.SharpDevelop.Commands.Paste"/>
  135.             <MenuItem id = "PasteSeparator" label = "-"/>
  136.                         <MenuItem id          = "LineUpIcons" 
  137.                                       label       = "&Line Up Icons"
  138.                           class = "ICSharpCode.SharpDevelop.FormEditor.Commands.LineUpIcons"/>
  139.                         <MenuItem id          = "ShowLargeIcons" 
  140.                                       label       = "&Show Large Icons"
  141.                           class = "ICSharpCode.SharpDevelop.FormEditor.Commands.ShowLargeIcons"/>
  142.     </Extension>
  143.  
  144.     <Extension path = "/SharpDevelop/Workbench/MainMenu">
  145.         <Conditional>
  146.             <Or>
  147.                 <Condition activewindow="ICSharpCode.SharpDevelop.FormDesigner.FormDesignerDisplayBindingWrapper"/>
  148.                 <Condition activewindow="ICSharpCode.SharpDevelop.FormDesigner.CSharpDesignerDisplayBindingWrapper"/>
  149.             </Or>
  150.                 <MenuItem id = "Format" 
  151.                           label = "${res:XML.MainMenu.FormatMenu}"
  152.                           insertafter  = "Search"
  153.                           insertbefore = "Tools">
  154.                     <MenuItem id = "AlignMenu" label = "${res:XML.MainMenu.FormatMenu.AlignMenu}">
  155.                             <MenuItem id          = "AlignHorizontalLeft" 
  156.                                           label       = "${res:XML.MainMenu.FormatMenu.AlignMenu.AlignHorizontalLeft}"
  157.                                           icon        = "Icons.16x16.FormsDesigner.AlignLefts"
  158.                                           class       = "ICSharpCode.SharpDevelop.FormEditor.Commands.AlignLeft"/>
  159.                             <MenuItem id          = "AlignHorizontalCenters" 
  160.                                           label       = "${res:XML.MainMenu.FormatMenu.AlignMenu.AlignHorizontalCenters}"
  161.                                           icon        = "Icons.16x16.FormsDesigner.AlignCenters"
  162.                                           class       = "ICSharpCode.SharpDevelop.FormEditor.Commands.AlignHorizontalCenters"/>
  163.                             <MenuItem id          = "AlignHorizontalRight" 
  164.                                           label       = "${res:XML.MainMenu.FormatMenu.AlignMenu.AlignHorizontalRight}"
  165.                                           icon        = "Icons.16x16.FormsDesigner.AlignRights"
  166.                                           class       = "ICSharpCode.SharpDevelop.FormEditor.Commands.AlignRight"/>
  167.                         <MenuItem id = "HorizontalSeparator" label = "-"/>
  168.                             <MenuItem id          = "AlignTop" 
  169.                                           label       = "${res:XML.MainMenu.FormatMenu.AlignMenu.AlignTop}"
  170.                                           icon        = "Icons.16x16.FormsDesigner.AlignTops"
  171.                                           class       = "ICSharpCode.SharpDevelop.FormEditor.Commands.AlignTop"/>
  172.                             <MenuItem id          = "AlignVerticalCenters" 
  173.                                           label       = "${res:XML.MainMenu.FormatMenu.AlignMenu.AlignVerticalCenters}"
  174.                                           icon        = "Icons.16x16.FormsDesigner.AlignMiddles"
  175.                                           class       = "ICSharpCode.SharpDevelop.FormEditor.Commands.AlignVerticalCenters"/>
  176.                             <MenuItem id          = "AlignBottom" 
  177.                                           label       = "${res:XML.MainMenu.FormatMenu.AlignMenu.AlignBottom}"
  178.                                           icon        = "Icons.16x16.FormsDesigner.AlignBottoms"
  179.                                           class       = "ICSharpCode.SharpDevelop.FormEditor.Commands.AlignBottom"/>
  180.                         <MenuItem id = "VerticalSeparator" label = "-"/>
  181.                             <MenuItem id          = "AlignToGrid" 
  182.                                           label       = "${res:XML.MainMenu.FormatMenu.AlignMenu.AlignToGrid}"
  183.                                           icon        = "Icons.16x16.FormsDesigner.AlignMiddles"
  184.                                           class       = "ICSharpCode.SharpDevelop.FormEditor.Commands.AlignToGrid"/>
  185.                     </MenuItem>
  186.                     <MenuItem id = "SameSizeMenu" label = "${res:XML.MainMenu.FormatMenu.SameSizeMenu}">
  187.                             <MenuItem id          = "SizeToControlWidth" 
  188.                                           label       = "${res:XML.MainMenu.FormatMenu.SameSizeMenu.SizeToControlWidth}"
  189.                                           icon        = "Icons.16x16.FormsDesigner.MakeSameWidth"
  190.                                           class       = "ICSharpCode.SharpDevelop.FormEditor.Commands.SizeToControlWidth"/>
  191.                             <MenuItem id          = "SizeToGrid" 
  192.                                           label       = "${res:XML.MainMenu.FormatMenu.SameSizeMenu.SizeToGrid}"
  193.                                           icon        = "Icons.16x16.FormsDesigner.SizeToGrid"
  194.                                           class       = "ICSharpCode.SharpDevelop.FormEditor.Commands.SizeToGrid"/>
  195.                             <MenuItem id          = "SizeToControlHeight" 
  196.                                           label       = "${res:XML.MainMenu.FormatMenu.SameSizeMenu.SizeToControlHeight}"
  197.                                           icon        = "Icons.16x16.FormsDesigner.MakeSameHeight"
  198.                                           class       = "ICSharpCode.SharpDevelop.FormEditor.Commands.SizeToControlHeight"/>
  199.                             <MenuItem id          = "SizeToControl" 
  200.                                           label       = "${res:XML.MainMenu.FormatMenu.SameSizeMenu.SizeToControl}"
  201.                                           icon        = "Icons.16x16.FormsDesigner.MakeSameSize"
  202.                                           class       = "ICSharpCode.SharpDevelop.FormEditor.Commands.SizeToControl"/>
  203.                     </MenuItem>
  204.                     <MenuItem id = "FormatSeparator" label = "-"/>
  205.                     
  206.                     <MenuItem id = "HorizontalSpacingMenu" label = "${res:XML.MainMenu.FormatMenu.HorizontalSpacingMenu}">
  207.                             <MenuItem id          = "HorizSpaceMakeEqual" 
  208.                                           label       = "${res:XML.MainMenu.FormatMenu.HorizontalSpacingMenu.HorizSpaceMakeEqual}"
  209.                                           icon        = "Icons.16x16.FormsDesigner.EqualizeHorizontalSpace"
  210.                                           class       = "ICSharpCode.SharpDevelop.FormEditor.Commands.HorizSpaceMakeEqual"/>
  211.                             <MenuItem id          = "HorizSpaceIncrease" 
  212.                                           label       = "${res:XML.MainMenu.FormatMenu.HorizontalSpacingMenu.HorizSpaceIncrease}"
  213.                                           icon        = "Icons.16x16.FormsDesigner.IncreaseHorizontalSpace"
  214.                                           class       = "ICSharpCode.SharpDevelop.FormEditor.Commands.HorizSpaceIncrease"/>
  215.                             <MenuItem id          = "HorizSpaceDecrease" 
  216.                                           label       = "${res:XML.MainMenu.FormatMenu.HorizontalSpacingMenu.HorizSpaceDecrease}"
  217.                                           icon        = "Icons.16x16.FormsDesigner.DecreaseHorizontalSpace"
  218.                                           class       = "ICSharpCode.SharpDevelop.FormEditor.Commands.HorizSpaceDecrease"/>
  219.                             <MenuItem id          = "HorizSpaceConcatenate" 
  220.                                           label       = "${res:XML.MainMenu.FormatMenu.HorizontalSpacingMenu.HorizSpaceConcatenate}"
  221.                                           icon        = "Icons.16x16.FormsDesigner.RemoveHorizontalSpace"
  222.                                           class       = "ICSharpCode.SharpDevelop.FormEditor.Commands.HorizSpaceConcatenate"/>
  223.                     </MenuItem>
  224.                     <MenuItem id = "VerticalSpacingMenu" label = "${res:XML.MainMenu.FormatMenu.VerticalSpacingMenu}">
  225.                             <MenuItem id          = "VertSpaceMakeEqual" 
  226.                                           label       = "${res:XML.MainMenu.FormatMenu.VerticalSpacingMenu.VertSpaceMakeEqual}"
  227.                                           icon        = "Icons.16x16.FormsDesigner.EqualizeVerticalSpace"
  228.                                           class       = "ICSharpCode.SharpDevelop.FormEditor.Commands.VertSpaceMakeEqual"/>
  229.                             <MenuItem id          = "VertSpaceIncrease" 
  230.                                           label       = "${res:XML.MainMenu.FormatMenu.VerticalSpacingMenu.VertSpaceIncrease}"
  231.                                           icon        = "Icons.16x16.FormsDesigner.IncreaseVerticalSpace"
  232.                                           class       = "ICSharpCode.SharpDevelop.FormEditor.Commands.VertSpaceIncrease"/>
  233.                             <MenuItem id          = "VertSpaceDecrease" 
  234.                                           label       = "${res:XML.MainMenu.FormatMenu.VerticalSpacingMenu.VertSpaceDecrease}"
  235.                                           icon        = "Icons.16x16.FormsDesigner.DecreaseVerticalSpace"
  236.                                           class       = "ICSharpCode.SharpDevelop.FormEditor.Commands.VertSpaceDecrease"/>
  237.                             <MenuItem id          = "VertSpaceConcatenate" 
  238.                                           label       = "${res:XML.MainMenu.FormatMenu.VerticalSpacingMenu.VertSpaceConcatenate}"
  239.                                           icon        = "Icons.16x16.FormsDesigner.RemoveVerticalSpace"
  240.                                           class       = "ICSharpCode.SharpDevelop.FormEditor.Commands.VertSpaceConcatenate"/>
  241.                     </MenuItem>
  242.                     <MenuItem id = "SpacingSeparator" label = "-"/>
  243.     
  244.                     <MenuItem id = "CenterMenu" label = "${res:XML.MainMenu.FormatMenu.CenterMenu}">
  245.                             <MenuItem id          = "CenterHorizontally" 
  246.                                           label       = "${res:XML.MainMenu.FormatMenu.CenterMenu.CenterHorizontally}"
  247.                                           icon        = "Icons.16x16.FormsDesigner.CenterHorizontally"
  248.                                           class       = "ICSharpCode.SharpDevelop.FormEditor.Commands.CenterHorizontally"/>
  249.                             <MenuItem id          = "CenterVertically" 
  250.                                           label       = "${res:XML.MainMenu.FormatMenu.CenterMenu.CenterVertically}"
  251.                                           icon        = "Icons.16x16.FormsDesigner.CenterVertically"
  252.                                           class       = "ICSharpCode.SharpDevelop.FormEditor.Commands.CenterVertically"/>
  253.                     </MenuItem>
  254.                     <MenuItem id = "CenterSeparator" label = "-"/>
  255.     
  256.                     <MenuItem id = "OrderMenu" label = "${res:XML.MainMenu.FormatMenu.OrderMenu}">
  257.                             <MenuItem id          = "BringToFront" 
  258.                                           label       = "${res:XML.MainMenu.FormatMenu.OrderMenu.BringToFront}"
  259.                                           icon        = "Icons.16x16.FormsDesigner.BringToFront"
  260.                                           class       = "ICSharpCode.SharpDevelop.FormEditor.Commands.BringToFront"/>
  261.                             <MenuItem id          = "SendToBack" 
  262.                                           label       = "${res:XML.MainMenu.FormatMenu.OrderMenu.SendToBack}"
  263.                                           icon        = "Icons.16x16.FormsDesigner.SendToBack"
  264.                                           class       = "ICSharpCode.SharpDevelop.FormEditor.Commands.SendToBack"/>
  265.                     </MenuItem>
  266.                     <MenuItem id = "OrderSeparator" label = "-"/>
  267.                         <MenuItem id          = "Lock" 
  268.                                   label       = "${res:XML.MainMenu.FormatMenu.Lock}"
  269.                           icon        = "Icons.16x16.FormsDesigner.LockControls"
  270.                                       class = "ICSharpCode.SharpDevelop.FormEditor.Commands.LockControls"/>
  271.                 </MenuItem>
  272.         </Conditional>
  273.     </Extension>
  274.     
  275.     <Extension path = "/SharpDevelop/Workbench/SharpDevelopSideBar/ContextMenu">
  276.         <MenuItem id    = "CustomizeSideBarSeparator" 
  277.                   insertafter = "MoveTabDown"
  278.                   label = "-" />
  279.         <MenuItem id    = "CustomizeSideBar" 
  280.                   label = "${res:XML.FormsDesigner.SideBar.CustomizeSidebar}" 
  281.                   icon        = "Icons.16x16.Options"
  282.                   class = "ICSharpCode.SharpDevelop.FormDesigner.CustomizeSideBar"/>
  283.     </Extension>
  284.  
  285.     <Extension path = "/SharpDevelop/Dialogs/OptionsDialog">
  286.         <DialogPanel id          = "FormsDesignerOptions"
  287.                      insertafter = "ToolsOptions"
  288.                  label       = "${res:ICSharpCode.SharpDevelop.FormDesigner.Gui.OptionPanels.PanelName}">
  289.             
  290.             <DialogPanel id    = "GridOptions"
  291.                          label = "${res:ICSharpCode.SharpDevelop.FormDesigner.Gui.OptionPanels.GridOptionsPanel.PanelName}"
  292.                          class = "ICSharpCode.SharpDevelop.FormDesigner.Gui.OptionPanels.GridOptionsPanel"/>
  293.  
  294.         </DialogPanel>
  295.     </Extension>
  296. </AddIn>
  297.