home *** CD-ROM | disk | FTP | other *** search
/ PC World 1997 November / PCWorld_1997-11_cd.bin / software / programy / komix / DATA.Z / drsdiagra.mnu < prev    next >
Encoding:
Text File  |  1997-05-21  |  7.2 KB  |  278 lines

  1. registerObject  {
  2.     name        .doors
  3.     type        CustMenuBarButton
  4.     objSpec        {
  5.         label        Doors
  6.         mnemonic    D
  7.     }
  8. }
  9.  
  10. registerObject  {
  11.     name        .doors.menu
  12.     type        CustMenu
  13.     objSpec         {
  14.                 pinnable        1
  15.         }
  16.  
  17. }
  18.  
  19. registerObject  {
  20.         name            .doors.menu.tools
  21.         type            CustCascadeButton
  22.         objSpec         {
  23.                 label           Tools
  24.         mnemonic    T
  25.         }
  26. }
  27.  
  28. registerObject  {
  29.         name            .doors.menu.tools.menu
  30.         type            CustMenu
  31. }
  32.  
  33. registerObject  {
  34.     name        .doors.menu.tools.menu.Doors
  35.     type        CustMenuPushButton
  36.     objSpec        {
  37.         hintText        "Start the DOORS project manager."
  38.         mnemonic    P
  39.         label        {Project Manager}
  40.         activated    {
  41.                 if $win95 {
  42.                 set d [OleAutoObject new DOORS.Application]
  43.                                 $d delete
  44.                 } else {
  45.                 system "doors3 &"
  46.                 }
  47.             }
  48.     }
  49. }
  50.  
  51. registerObject  {
  52.     name        .doors.menu.tools.menu.refresh 
  53.     type        CustMenuPushButton
  54.     objSpec        {
  55.         label        {Refresh Project}
  56.         mnemonic    R
  57.         activated    {
  58.             busy {
  59.                                 require drsprocs.tcl
  60.                                 set doorsProject [getDoorsProjectName]
  61.                                 m4_var set M4_doors_project $doorsProject
  62.                                 set formalMod [m4_var get M4_doors_formal_module]
  63.                                 set FORMALMODULE DOORS_${doorsProject}_$formalMod
  64.  
  65.                 [.main messageArea] message  ""
  66.             }
  67.         }
  68.     }
  69.  
  70.  
  71.  
  72. registerObject  {
  73.     name        .doors.menu.project_13
  74.     type        CustMenuSeparator
  75.     objSpec        {
  76.     }
  77. }
  78.  
  79. registerObject  {
  80.     name        .doors.menu.synchronize
  81.     type        CustMenuPushButton
  82.     objSpec        {
  83.         hintText        "Synchronize with DOORS."
  84.         label        {Synchronize Current System}
  85.         mnemonic    Y
  86.         accelerator    Ctrl+Y
  87.         activated    {
  88.             busy {
  89.                  #require drsprocs.tcl
  90.                 source [m4_path_name tcl drsprocs.tcl]
  91.                 set context [ClientContext::global]
  92.                 set sv [$context currentSystem]
  93.                 set pv [$context currentPhase]
  94.                 set dxlCommand ""
  95.                 initSynchronize
  96.                                 applyToLevel $sv synObjects dxlCommand
  97.                                 set dxlCommand ""
  98.                                 applyToMultiple $sv $pv installRefs dxlCommand
  99.                                 set dxlCommand ""
  100.                                 applyRecursive $sv $pv install dxlCommand
  101.                                 set dxlCommand ""
  102.                                 applyToMultiple $sv $pv installClassFeatures dxlCommand
  103.                 endSynchronize
  104.  
  105.             }
  106.         }
  107.         operations    "save check"
  108.     }
  109. }
  110.  
  111.  
  112. registerObject  {
  113.         name            .doors.menu.show
  114.         type            CustCascadeButton
  115.         objSpec         {
  116.                 label           Show
  117.         }
  118. }
  119.  
  120. registerObject  {
  121.         name            .doors.menu.show.menu
  122.         type            CustMenu
  123. }
  124.  
  125. registerObject  {
  126.     name        .doors.menu.show.menu.treeonly
  127.     type        CustMenuPushButton
  128.     objSpec        {
  129.         hintText        "Show the corresponding DOORS objects of this diagram only."
  130.         label        {Diagram Only}
  131.         mnemonic    D
  132.         activated    {
  133.             busy {
  134.                 #require drsprocs.tcl
  135.                 source [m4_path_name tcl drsprocs.tcl]
  136.                 set cont [ClientContext::global]
  137.                 set currSys [$cont currentSystem]
  138.                 set selSet [.main fileVersion]
  139.                 set dxlCommand ""
  140.                                 applyToMultiple $selSet $currSys filter dxlCommand Hide All
  141.                 applyToLevel $selSet filter dxlCommand  Show Recursive
  142.                 $dxlCommand doorsFilterOn
  143.                 $dxlCommand execute currentModule
  144.                 [.main messageArea] message  ""
  145.             }
  146.         }
  147.     }
  148.  
  149. registerObject  {
  150.     name        .doors.menu.show.menu.objectsonly
  151.     type        CustMenuPushButton
  152.     objSpec        {
  153.         hintText        "Show DOORS objects of this diagram only."
  154.         label        {Diagram Objects Only}
  155.         mnemonic    O
  156.         activated    {
  157.             busy {
  158.                 #require drsprocs.tcl
  159.                 source [m4_path_name tcl drsprocs.tcl]
  160.                 set cont [ClientContext::global]
  161.                 set currSys [$cont currentSystem]
  162.                 set selSet [.main fileVersion]
  163.                 set dxlCommand ""
  164.                                 applyToMultiple $selSet $currSys filter dxlCommand  Hide All
  165.                 applyToLevel $selSet filter dxlCommand  Show Objects
  166.                 $dxlCommand doorsFilterOn
  167.                 $dxlCommand execute currentModule
  168.                 [.main messageArea] message  ""
  169.             }
  170.         }
  171.     }
  172. }
  173.  
  174.  
  175.  
  176.  
  177.  
  178. registerObject  {
  179.     name        .doors.menu.show.menu.treeadd
  180.     type        CustMenuPushButton
  181.     objSpec        {
  182.         hintText        "Show the corresponding DOORS objects of this diagram too."
  183.         label        {Additional Diagram}
  184.         mnemonic    i
  185.         activated    {
  186.             busy {
  187.                 #require drsprocs.tcl
  188.                 source [m4_path_name tcl drsprocs.tcl]
  189.                 set dxlCommand ""
  190.                 set selSet [.main fileVersion]
  191.                 applyToLevel $selSet filter dxlCommand  Show Recursive
  192.                 $dxlCommand doorsFilterOn
  193.                 $dxlCommand execute currentModule
  194.                 [.main messageArea] message  ""
  195.             }
  196.         }
  197.     }
  198.  
  199. registerObject  {
  200.     name        .doors.menu.show.menu.objadd
  201.     type        CustMenuPushButton
  202.     objSpec        {
  203.         label        {Additional Diagram Objects}
  204.         mnemonic    A
  205.         activated    {
  206.             busy {
  207.                 #require drsprocs.tcl
  208.                 source [m4_path_name tcl drsprocs.tcl]
  209.                 set selSet [.main fileVersion]
  210.                 set dxlCommand ""
  211.                 applyToLevel $selSet filter dxlCommand  Show Objects
  212.                 $dxlCommand doorsFilterOn
  213.                 $dxlCommand execute currentModule
  214.                 [.main messageArea] message  ""
  215.             }
  216.         }
  217.     }
  218. }
  219.  
  220. registerObject  {
  221.         name            .doors.menu.show.menu.classfeatures
  222.         type            CustMenuPushButton
  223.         visible         {0 0 0 1 1}
  224.         objSpec         {
  225.         hintText        "Show the corresponding class feature DOORS objects of this diagram too."
  226.                 label           {Additional Class Features}
  227.                 mnemonic        F
  228.                 activated       {
  229.                     busy {
  230.                                 #require drsprocs.tcl
  231.                                 source [m4_path_name tcl drsprocs.tcl]
  232.                                 set selSet [.main fileVersion]
  233.                                 set dxlCommand ""
  234.                                 applyToLevel $selSet filter dxlCommand Show ClassFeatures
  235.                 $dxlCommand doorsFilterOn
  236.                                 $dxlCommand execute currentModule
  237.                 [.main messageArea] message  ""
  238.                         }
  239.                 }
  240.         }
  241. }
  242.  
  243. registerObject {
  244.     type        CustMenuSeparator
  245.     name        .doors.menu.show.menu.separator1
  246. }
  247.  
  248.  
  249. registerObject  {
  250.         name            .doors.menu.show.menu.save
  251.         type            CustMenuPushButton
  252.         visible         {0 0 0 1 1}
  253.         objSpec         {
  254.         hintText        "Save current view in DOORS."
  255.                 label           {Save as DOORS View}
  256.                 mnemonic        V
  257.                 activated       {
  258.                     busy {
  259.             EntryDialog new .main.doorsViewEntry \
  260.                 -title "Save DOORS View" \
  261.                 -message "Enter View Name" \
  262.                 -okPressed {
  263.                 require drsprocs.tcl
  264.                 require drsdxlcomm.tcl
  265.                 set dxlCommand [DrsDxlCommand new]
  266.                 $dxlCommand doorsViewSave [.main.doorsViewEntry entry]
  267.                 $dxlCommand execute
  268.                 [.main messageArea] message  ""
  269.                 }
  270.              .main.doorsViewEntry popUp
  271.                         }
  272.                 }
  273.         }
  274. }
  275.