Menu 'WaveMenu'
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 '设置打印机[&R]...'                  Wave:SetupPrinter
          MenuItem '打印[&P]'                             Wave:PrintDocument
          MenuItem SEPARATOR
          MenuItem '退出[&X]'                              Client:QuitFromEDAClient
     End
     Popup '编辑[&E] {E}'
     Begin
          MenuItem '剪切[&T]\tShift+Del'                    Wave:Cut
          MenuItem '复制[&C]\tCtrl+Ins'                    Wave:Copy
          MenuItem '粘贴[&P]\tShift+Ins'                  Wave:Paste
          MenuItem '清除[&L]\tCtrl+Del'                   Wave:Clear
          MenuItem SEPARATOR
          MenuItem '选择全部[&S]'                        'Wave:Select(Mode=All)'
          MenuItem SEPARATOR
          MenuItem '删除[&D]'                            'Wave:Delete(Item=Signal)'
          MenuItem '删除变换[&D]'                        'Wave:Delete(Item=Transition)'
          MenuItem SEPARATOR
          Popup '跳转[&J] {J}'
          Begin
               MenuItem '新时标[&T]...'                  'Wave:Jump(Target=Time | $Description=跳到新的时标)'
               MenuItem SEPARATOR
               MenuItem '时标 1[&1]'                 'Wave:Jump(Target=Location1 | $Description=跳到时标 1)'
               MenuItem '时标 2[&2]'                 'Wave:Jump(Target=Location2 | $Description=跳到时标 2)'
               MenuItem '时标 3[&3]'                 'Wave:Jump(Target=Location3 | $Description=跳到时标 3)'
               MenuItem '时标 4[&4]'                 'Wave:Jump(Target=Location4 | $Description=跳到时标 4)'
               MenuItem '时标 5[&5]'                 'Wave:Jump(Target=Location5 | $Description=跳到时标 5)'
               MenuItem '时标 6[&6]'                 'Wave:Jump(Target=Location6 | $Description=跳到时标 6)'
               MenuItem '时标 7[&7]'                 'Wave:Jump(Target=Location7 | $Description=跳到时标 7)'
               MenuItem '时标 8[&8]'                 'Wave:Jump(Target=Location8 | $Description=跳到时标 8)'
               MenuItem '时标 9[&9]'                 'Wave:Jump(Target=Location9 | $Description=跳到时标 9)'
               MenuItem '时标 10[&0]'                'Wave:Jump(Target=Location10 | $Description=跳到时标 10)'
               MenuItem SEPARATOR
               MenuItem '第一个跃变[&F]'             'Wave:Jump(Target=First | $Description=跳到第一个跃变)'
               MenuItem '前一个跃变[&P]'             'Wave:Jump(Target=Previous | $Description=跳到上一个跃变)'
               MenuItem '下一个跃变[&N]'             'Wave:Jump(Target=Next | $Description=跳到下一个跃变)'
               MenuItem '最后一个跃变[&L]'           'Wave:Jump(Target=Last | $Description=跳到最后一个跃变)'
          End
          Popup '设置时标[&K] {L}'
          Begin
               MenuItem '时标 1[&1]'                 'Wave:SetTimeMark(Target=Location1 | $Description=设置时标 1)'
               MenuItem '时标 2[&2]'                 'Wave:SetTimeMark(Target=Location2 | $Description=设置时标 2)'
               MenuItem '时标 3[&3]'                 'Wave:SetTimeMark(Target=Location3 | $Description=设置时标 3)'
               MenuItem '时标 4[&4]'                 'Wave:SetTimeMark(Target=Location4 | $Description=设置时标 4)'
               MenuItem '时标 5[&5]'                 'Wave:SetTimeMark(Target=Location5 | $Description=设置时标 5)'
               MenuItem '时标 6[&6]'                 'Wave:SetTimeMark(Target=Location6 | $Description=设置时标 6)'
               MenuItem '时标 7[&7]'                 'Wave:SetTimeMark(Target=Location7 | $Description=设置时标 7)'
               MenuItem '时标 8[&8]'                 'Wave:SetTimeMark(Target=Location8 | $Description=设置时标 8)'
               MenuItem '时标 9[&9]'                 'Wave:SetTimeMark(Target=Location9 | $Description=设置时标 9)'
               MenuItem '时标 10[&0]'                'Wave:SetTimeMark(Target=Location10 | $Description=设置时标 10)'
          End
          MenuItem SEPARATOR
          MenuItem '测量时间'                       'Wave:MeasureTime'
     End
     Popup '查看[&V] {V}'
     Begin
          MenuItem '适合文档[&D]'                      'Wave:Zoom(Action=Document | $Description=显示整个文档)'
          MenuItem '选区[&A]'                          'Wave:Zoom(Action=ZoomArea | $Description=适合当前文档中定义的区域)'
          MenuItem SEPARATOR
          MenuItem '放大[&I]\t+'                       'Wave:Zoom(Action=ZoomIn | $Description=放大倍数越高, 显示当前文档的范围就越小)'
          MenuItem '缩小[&O]\t-'                       'Wave:Zoom(Action=ZoomOut | $Description=缩小倍数越低, 显示当前文档的无法就越多)'
          MenuItem '滚屏[&N]'                          'Wave:Zoom(Action=ZoomPan | $Description=以光点为中心重绘屏幕)'
          MenuItem '刷新[&R]'                          'Wave:Zoom(Action=Redraw  | $Description=刷新屏幕显示)'
          MenuItem SEPARATOR
          MenuItem '设计管理器[&M]'                     Client:ToggleDocumentManager
          MenuItem '状态栏[&S]'                         Client:ToggleClientStatusBar
          MenuItem '命令状态栏'                      Client:ToggleProcessStatusBar
          MenuItem SEPARATOR
          MenuItem '主工具条[&M]'                      'Client:CustomizeResources(ToggleToolbar=波形工具|$Description=打开或关闭主工具条)'
          MenuItem '跃变工具条[&T]'                'Client:CustomizeResources(ToggleToolbar=Transition|$Description=打开或关闭跃变工具条)'
          MenuItem SEPARATOR
          MenuItem '图例[&G]'                            'Wave:Legend'


     End
     Popup '插入[&I] {I}'
     Begin
          MenuItem '信号'                             'Wave:InsertSignal(Item=Signal)'
          MenuItem '递增总线 (D0..D7)'                'Wave:MakeBus(Sort=Up)'
          MenuItem '递减总线 (D7..D0)'                'Wave:MakeBus(Sort=Down)'
          MenuItem '信号组'                           Wave:MakeBus
          MenuItem SEPARATOR
          MenuItem '高电平驱动[&D]'                     'Wave:AddTransition(Transition=High          | $Description=高电平驱动)'
          MenuItem '低电平驱动[&L]'                       'Wave:AddTransition(Transition=Low           | $Description=低电平驱动)'
          MenuItem '上拉电阻[&R]'                         'Wave:AddTransition(Transition=ResistiveHigh | $Description=上拉电阻)'
          MenuItem '下拉电阻[&O]'                         'Wave:AddTransition(Transition=ResistiveLow  | $Description=下拉电阻)'
          MenuItem '高电平[&P]'                       'Wave:AddTransition(Transition=SupplyHigh    | $Description=高电平)'
          MenuItem '低电平[&W]'                        'Wave:AddTransition(Transition=SupplyLow     | $Description=低电平)'
          MenuItem '高阻[&Z]'                            'Wave:AddTransition(Transition=HighZ         | $Description=高阻)'
          MenuItem '未知[&U]'                           'Wave:AddTransition(Transition=Unknown       | $Description=不明)'
          MenuItem SEPARATOR
          MenuItem '翻转模型[&F]'                      'Wave:AddTransition(Transition=Flip          | $Description=翻转跃变)'
     End
     Popup '选项[&O] {O}'
     Begin
          MenuItem '参数选择[&P]...'                    Wave:SetupPreferences
          MenuItem '字体[&F]...'                           Wave:ChangeFont
          MenuItem '颜色[&C]...'                          Wave:ChangeColor
     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 '基本概念[&B]'  'Client:RunHelpTopic(FileName=\Help\pldusr.hlp|Topic=ViewingTheSimulationWaveformsQT)'
          MenuItem '参考[&R]'      'Client:RunHelpTopic(FileName=\Help\Wave.hlp|Topic=contents)'
          MenuItem SEPARATOR
          MenuItem '关于[&S]'      Client:HelpAbout
     End
End

HotKeyTable 'WaveHotkeys'
Begin
     Key 'Wave:Zoom(Action = ZoomIn)'             +                                          EndKey
     Key 'Wave:Zoom(Action = ZoomOut)'            -                                          EndKey
     Key Wave:Jump                                  Home                   Ctrl              EndKey
     Key Wave:Zoom(Action=ZoomPan)                  Home                                     EndKey
     Key Wave:Paste                                 Insert                 Shift             EndKey
     Key Wave:Copy                                  Insert                 Ctrl              EndKey
     Key Wave:Cut                                   Delete                 Shift             EndKey
     Key Wave:Paste                                 V                      Ctrl              EndKey
     Key Wave:Copy                                  C                      Ctrl              EndKey
     Key Wave:Cut                                   X                      Ctrl              EndKey
     Key Wave:Clear                                 Delete                 Ctrl              EndKey
     Key Wave:WindowTile                            F4                     Shift             EndKey
     Key Wave:WindowCascade                         F5                     Shift             EndKey
     Key Wave:ChangeSignalGraphicallyOrSetFocus     Left_Click                               EndKey
     Key Wave:Change(Item=Signal)                   Left_Dbl_Click                           EndKey
     Key Wave:ChangeSignalGraphicallyOrMove         Left_Hold_Down                           EndKey
     Key 'Wave:Scroll(Direction = Vertical | StepType = LineUp)' Up                          EndKey
     Key 'Wave:Scroll(Direction = Vertical | StepType = LineDown)' Down                      EndKey
     Key 'Wave:Scroll(Direction = Horizontal | StepType = LineUp)' Left                      EndKey
     Key 'Wave:Scroll(Direction = Horizontal | StepType = LineDown)' Right                   EndKey
     Key 'Wave:Scroll(Direction = Vertical | StepType = PageUp)' PgUp                        EndKey
     Key 'Wave:Scroll(Direction = Vertical | StepType = PageDown)' PgDn                      EndKey
     Key 'Wave:Scroll(Direction = Horizontal | StepType = PageUp)' Left    Shift             EndKey
     Key 'Wave:Scroll(Direction = Horizontal | StepType = PageDown)' Right Shift             EndKey
     Key 'Wave:Scroll(Direction = Horizontal | StepType = Top)' Home                         EndKey
     Key 'Wave:Scroll(Direction = Horizontal | StepType = Bottom)' End                       EndKey
     Key 'Wave:Scroll(Direction = Vertical | StepType = Top)' Home         Ctrl              EndKey
     Key 'Wave:Scroll(Direction = Vertical | StepType = Bottom)' End       Ctrl              EndKey
End

Toolbar 'WaveTools' 'Fixed Top' 0 0
Begin
     Button PROJMAN.BMP       Client:ToggleDocumentManager
     Separator
     Button FILEOPEN.BMP      Client:OpenDocument
     Button FILESAVE.BMP      Client:SaveDocument
     Button Print.BMP         Wave:SetupPrinter
     Separator
     Button ZOOMIN.BMP        'Wave:Zoom(Action=ZoomIn)'
     Button ZOOMOUT.BMP       'Wave:Zoom(Action=ZoomOut)'
     Button ZOOMDOC.BMP       'Wave:Zoom(Action=Document)'
     Separator
     Button XProbe.BMP        'Client:CrossProbe(Repeat=False | FocusWindows=True)'
     Separator
     Button CUT.BMP           Wave:Cut
     Button COPY.BMP          Wave:Copy
     Button PASTE.BMP         Wave:Paste
     Separator
     Button HELP.BMP          'Client:RunHelpTopic(FileName=\Help\Protel.hlp|Topic=contents)'
End

Toolbar 'Transition' 'Always Floating' 100 200
Begin
     Button 'HDRIVING.BMP' 'Wave:AddTransition(Transition=High | $Description=Driving High)'
     Button 'HRESISTI.BMP' 'Wave:AddTransition(Transition=ResistiveHigh | $Description=Resistive High)'
     Button 'HSUPPLY.BMP'  'Wave:AddTransition(Transition=SupplyHigh | $Description=Supply High)'
     Button 'HIGHZ.BMP'    'Wave:AddTransition(Transition=HighZ | $Description=High Impedence)'
     Separator
     Button 'LDRIVING.BMP' 'Wave:AddTransition(Transition = Low | $Description=Driving Low)'
     Button 'LRESISTI.BMP' 'Wave:AddTransition(Transition=ResistiveLow | $Description=Resistive Low)'
     Button 'LSUPPLY.BMP'  'Wave:AddTransition(Transition=SupplyLow | $Description=Supply Low)'
     Button 'UNKNOWN.BMP'  'Wave:AddTransition(Transition=Unknown | $Description=Unknown)'
End


