Menu CAMManagerMenu
Begin
     Popup '文件[&F] {F}'
     Begin
          MenuItem '新建[&N]...'                  'Client:CreateNewDocument(SingleDocument=True)'
          MenuItem '新建设计[&G]...'              Client:CreateNewDocument
          MenuItem '打开[&O]...'                       Client:OpenDocument
          MenuItem '关闭[&C]'                     Client:CloseDocument
          MenuItem '关闭设计[&D]'                 Client:CloseProject
          MenuItem SEPARATOR
          MenuItem '保存[&S]'                     Client:SaveDocument
          MenuItem '另存为[&A]'                   'Client:SaveDocumentAs(Action=SaveAs)'
          MenuItem '保存副本为[&Y]'               Client:SaveDocumentAs
          MenuItem '保存全部[&L]'                 Client:SaveAllDocuments
          MenuItem SEPARATOR
          MenuItem '退出[&X]'                     Client:QuitFromEDAClient
     End
     Popup '编辑[&E] {E}'
     Begin
         MenuItem '插入材料清单[&B]...'        'CAMManager:InsertObject(Mode=Dialog|OutputType=BOM)'
         MenuItem '插入规则检查[&D]...'        'CAMManager:InsertObject(Mode=Dialog|OutputType=DRC)'
         MenuItem '插入底片[&G]...'            'CAMManager:InsertObject(Mode=Dialog|OutputType=Gerber)'
         MenuItem '插入数控钻孔[&N]...'        'CAMManager:InsertObject(Mode=Dialog|OutputType=NC Drill)'
         MenuItem '插入拾放[&P]...'            'CAMManager:InsertObject(Mode=Dialog|OutputType=Pick Place)'
         MenuItem '插入测试点报告[&T]...'      'CAMManager:InsertObject(Mode=Dialog|OutputType=Test Points)'
         MenuItem SEPARATOR
         MenuItem '删除[&L]'                       CAMManager:DeleteObject
         MenuItem '修改[&H]...'                    CAMManager:ChangeObject
         MenuItem '重复的[&U]'                     CAMManager:DuplicateObject
     End
     Popup '查看[&V] {V}'
     Begin
          MenuItem '设计管理器[&M]'               Client:ToggleDocumentManager
          MenuItem '状态栏[&S]'                   Client:ToggleClientStatusBar
          MenuItem '命令状态栏[&N]'               Client:ToggleProcessStatusBar
          MenuItem '主工具条[&B]'                'Client:CustomizeResources(ToggleToolbar=CAM管理工具条)'
     End
     Popup '工具[&T] {T}'
     Begin
         MenuItem  'CAM 向导[&W]...'             'CAMManager:InsertObject(Mode=Wizard)'
         MenuItem  '生成 CAM 文件[&G]\tF9'     CAMManager:GenerateCAMOutputs
         MenuItem  SEPARATOR
         MenuItem  '设置目标板框[&B]...'        CAMManager:DocumentOptions
         MenuItem  SEPARATOR
         MenuItem  '参数选择[&P]...'             CAMManager:SetupPreferences
     End
     Popup '窗口[&W] {W}'
     Begin
          MenuItem '平铺[&T]\tShift+F4'           Client:TileAllOpenDocuments
          MenuItem '层叠[&C]\tShift+F5'           Client:CascadeAllOpenDocuments
          MenuItem SEPARATOR
          MenuItem '水平平铺[&H]'                 'Client:TileAllOpenDocuments(Mode=Horizontal)'
          MenuItem '垂直平铺[&V]'                 'Client:TileAllOpenDocuments(Mode=Vertical)'
          MenuItem SEPARATOR
          MenuItem '排列为图标[&I]'               Client:WindowArrangeIcons
          MenuItem '关闭全部[&A]'                 Client:CloseAllOpenDocuments
     End
     Popup '帮助[&H] {H}'
     Begin
          MenuItem '内容[&C]'                  'Client:RunHelpTopic(FileName=\Help\Protel.hlp|Topic=contents)'
          MenuItem SEPARATOR
          MenuItem '使用 CAM 管理器[&U]'       'Client:RunHelpTopic(FileName=\Help\pcbusr.hlp|Topic=CAMManager)'
          MenuItem '生成输出[&O]'              'Client:RunHelpTopic(FileName=\Help\pcbusr.hlp|Topic=CamOptionsOptions)'
          MenuItem SEPARATOR
          MenuItem '材料清单[&B]'              'Client:RunHelpTopic(FileName=\Help\pcbusr.hlp|Topic=BomSetup)'
          MenuItem '设计规则检查[&D]'          'Client:RunHelpTopic(FileName=\Help\pcbusr.hlp|Topic=DrcSetup)'
          MenuItem '底片文件[&G]'              'Client:RunHelpTopic(FileName=\Help\pcbusr.hlp|Topic=GerberSetup)'
          MenuItem '数控钻孔文件[&N]'          'Client:RunHelpTopic(FileName=\Help\pcbusr.hlp|Topic=NcDrillSetup)'
          MenuItem '拾放文件[&P]'              'Client:RunHelpTopic(FileName=\Help\pcbusr.hlp|Topic=PickAndPlaceSetup)'
          MenuItem '测试点报告[&T]'            'Client:RunHelpTopic(FileName=\Help\pcbusr.hlp|Topic=TestpointSetup)'
          MenuItem SEPARATOR
          Popup '&鼠标右键[&R] {Right_Click}'
          Begin
               MenuItem 'CAM 向导[&W]...'          'CAMManager:InsertObject(Mode=Wizard)'
               MenuItem SEPARATOR
               MenuItem '插入材料清单[&B]...'      'CAMManager:InsertObject(Mode=Dialog|OutputType=BOM)'
               MenuItem '插入规则检查[&D]...'      'CAMManager:InsertObject(Mode=Dialog|OutputType=DRC)'
               MenuItem '插入底片[&G]...'          'CAMManager:InsertObject(Mode=Dialog|OutputType=Gerber)'
               MenuItem '插入数控钻孔[&N]...'      'CAMManager:InsertObject(Mode=Dialog|OutputType=NC Drill)'
               MenuItem '插入拾放[&P]...'          'CAMManager:InsertObject(Mode=Dialog|OutputType=Pick Place)'
               MenuItem '插入测试点报告[&T]...'    'CAMManager:InsertObject(Mode=Dialog|OutputType=Test Points)'
               MenuItem SEPARATOR
               MenuItem '生成 CAM 文件[&C]\tF9'     CAMManager:GenerateCAMOutputs
               MenuItem SEPARATOR
               MenuItem '删除[&L]'                  CAMManager:DeleteObject
               MenuItem '重复的[&U]'                CAMManager:DuplicateObject
               MenuItem SEPARATOR
               MenuItem '属性[&R]...'               CAMManager:ChangeObject
          End
          MenuItem SEPARATOR
          MenuItem '关于[&S]'                       Client:HelpAbout
     End
End

HotKeyTable 'CAMManagerHotKeyTable'
Begin
     Key Client:RunHelpTopic                F1                                      EndKey
     Key Client:TileAllOpenDocuments        F4                  Shift               EndKey
     Key Client:CascadeAllOpenDocuments     F5                  Shift               EndKey
     Key CAMManager:InsertObject            N                   Ctrl                EndKey
     Key CAMManager:ChangeObject            Return              Alt                 EndKey
     Key CAMManager:DeleteObject            Delete              Ctrl                EndKey
     Key CAMManager:GenerateCAMOutputs      F9                                      EndKey
End

Toolbar CAMManagerToolBar 'Fixed Top' 1 1 50 'True' 5000
Begin
     Button 'PROJMAN.BMP'                   Client:ToggleDocumentManager
     Separator
     Button 'FILEOPEN.BMP'                  Client:OpenDocument
     Button 'FILESAVE.BMP'                  Client:SaveDocument
     Separator
     Button 'NEWBTN.BMP'                   'CAMManager:InsertObject(Mode=Wizard)'
     Button 'CONFIG.BMP'                    CAMManager:SetupPreferences
     Button 'RUN.BMP'                       CAMManager:GenerateCAMOutputs
     Separator
     Button 'HELP.BMP'                     'Client:RunHelpTopic(FileName=\Help\Protel.hlp|Topic=contents)'
End
