Menu SimViewMenu
Begin
     Popup '文件[&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]...'  SimView:SetupPrinter
          MenuItem '打印[&P]'             SimView:PrintDocument
          MenuItem SEPARATOR
          MenuItem '退出[&X]'              Client:QuitFromEDAClient
     End
     Popup '编辑[&E]'
     Begin
          MenuItem '剪切[&T]\tShift+Del'    SimView:Cut
          MenuItem '粘贴[&P]\tShift+Ins'  SimView:Paste
          MenuItem '清除[&L]\tCtrl+Del'   SimView:Clear
          MenuItem SEPARATOR
          MenuItem '插入[&I]'            SimView:InsertCell
          MenuItem '删除[&D]'            SimView:Delete
     End
     Popup '查看[&V]'
     Begin
          MenuItem '适合波形[&F]'     SimView:FitWaveforms
          MenuItem SEPARATOR
          MenuItem '设计管理器[&M]'    Client:ToggleDocumentManager
          MenuItem '状态栏[&S]'        Client:ToggleClientStatusBar
          MenuItem '命令状态栏'    Client:ToggleProcessStatusBar
          MenuItem '工具条[&B]'          'Client:CustomizeResources(ToggleToolbar=TextTools)'
          MenuItem SEPARATOR
          MenuItem '比例[&C]...'        SimView:SetupScaling
          MenuItem '亮度[&R]...'     SimView:ModifyWaveColors
          MenuItem SEPARATOR
          MenuItem '选项[&O]...'        SimView:SetupDocumentOptions
     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]'
     Begin
          MenuItem '内容[&C]'                        'Client:RunHelpTopic(FileName=\Help\Protel.hlp|Topic=contents)'
          MenuItem '仿真器主题[&I]'               'Client:RunHelpTopic(FileName=\help\simusr.hlp|Topic=Contents)'
          MenuItem SEPARATOR
          Popup '帮助在[&O]'
          Begin
               MenuItem '仿真设置[&U]'  'Client:RunHelpTopic(FileName=\help\simusr.hlp|Topic=SettingUpForSimulation)'
               MenuItem '工作在波形中[&W]'     'Client:RunHelpTopic(FileName=\help\simusr.hlp|Topic=WorkingWithWaveforms)'
          End
          MenuItem SEPARATOR
          MenuItem '关于[&S]'  Client:HelpAbout
     End
End

HotKeyTable SimViewHotKeyTable
Begin
     Key SimView:Paste                            Insert     Shift                    EndKey
     Key SimView:Cut                              Delete     Shift                    EndKey
     Key SimView:Clear                            Delete     Ctrl                     EndKey
     Key SimView:Paste                            V          Ctrl                     EndKey
     Key SimView:Cut                              X          Ctrl                     EndKey
     Key 'Client:RunHelpTopic(FileName=\help\Protel.hlp|Topic=contents)'    F1        EndKey
     Key Client:TileAllOpenDocuments              F4         Shift                    EndKey
     Key Client:CascadeAllOpenDocuments           F5         Shift                    EndKey

     Key 'SimView:Scroll(Direction = Vertical | StepType = LineUp)' Up                          EndKey
     Key 'SimView:Scroll(Direction = Vertical | StepType = LineDown)' Down                      EndKey
     Key 'SimView:Scroll(Direction = Horizontal | StepType = LineUp)' Left                      EndKey
     Key 'SimView:Scroll(Direction = Horizontal | StepType = LineDown)' Right                   EndKey
     Key 'SimView:Scroll(Direction = Vertical | StepType = PageUp)' Up        Shift             EndKey
     Key 'SimView:Scroll(Direction = Vertical | StepType = PageDown)' Down    Shift             EndKey
     Key 'SimView:Scroll(Direction = Horizontal | StepType = PageUp)' Left    Shift             EndKey
     Key 'SimView:Scroll(Direction = Horizontal | StepType = PageDown)' Right Shift             EndKey
     Key 'SimView:Scroll(Direction = Vertical | StepType = Top)' Up           Ctrl              EndKey
     Key 'SimView:Scroll(Direction = Vertical | StepType = Bottom)' Down      Ctrl              EndKey
     Key 'SimView:Scroll(Direction = Horizontal | StepType = Top)' Left       Ctrl              EndKey
     Key 'SimView:Scroll(Direction = Horizontal | StepType = Bottom)' Right   Ctrl              EndKey

     Key 'SimView:SetCurrentAnalysis(Action = Next)'     +                       EndKey
     Key 'SimView:SetCurrentAnalysis(Action = Previous)' -                       EndKey

     Key 'SimView:Zoom(Action = InAtCursor)'  PgUp                       EndKey
     Key 'SimView:Zoom(Action = OutAtCursor)' PgDn                       EndKey
     Key 'SimView:FitWaveforms'               PgDn  Ctrl                 EndKey
     Key 'SimView:Zoom(Action = Redraw)'      End                        EndKey

End

Toolbar SimViewToolBar 'Fixed Top' 1 1 50 'True' 5000
Begin
     Button 'PROJMAN.BMP'  Client:ToggleDocumentManager
     Separator
     Button 'FILEOPEN.BMP' Client:OpenDocument
     Button 'FILESAVE.BMP' Client:SaveDocument
     Button 'PRINT.BMP'    SimView:PrintDocument
     Separator
     Button 'ZOOMIN.BMP'  'SimView:Zoom(Action=InAtCenter|$Description=按中心放大)'
     Button 'ZOOMOUT.BMP' 'SimView:Zoom(Action=OutAtCenter|$Description=按中心缩小)'
     Button 'ZOOMDOC.BMP'  SimView:FitWaveforms
     Separator
     Button 'CUT.BMP'      SimView:Cut
     Button 'PASTE.BMP'    SimView:Paste
     Separator
     Button 'SIMSTOP.BMP'  Sim:StopSimulator
     Separator
     Button HELP                                     'Client:RunHelpTopic(FileName=\help\Protel.hlp|Topic=contents|$Description=帮助系统主题索引)'
End

