home *** CD-ROM | disk | FTP | other *** search
- registerObject {
- name .doors
- type CustMenuBarButton
- objSpec {
- label Doors
- mnemonic D
- }
- }
-
- registerObject {
- name .doors.menu
- type CustMenu
- objSpec {
- pinnable 1
- }
-
- }
-
- registerObject {
- name .doors.menu.tools
- type CustCascadeButton
- objSpec {
- label Tools
- mnemonic T
- }
- }
-
- registerObject {
- name .doors.menu.tools.menu
- type CustMenu
- }
-
- registerObject {
- name .doors.menu.tools.menu.Doors
- type CustMenuPushButton
- objSpec {
- hintText "Start the DOORS project manager."
- mnemonic P
- label {Project Manager}
- activated {
- if $win95 {
- set d [OleAutoObject new DOORS.Application]
- $d delete
- } else {
- system "doors3 &"
- }
- }
- }
- }
-
- registerObject {
- name .doors.menu.tools.menu.refresh
- type CustMenuPushButton
- objSpec {
- label {Refresh Project}
- mnemonic R
- activated {
- busy {
- require drsprocs.tcl
- set doorsProject [getDoorsProjectName]
- m4_var set M4_doors_project $doorsProject
- set formalMod [m4_var get M4_doors_formal_module]
- set FORMALMODULE DOORS_${doorsProject}_$formalMod
-
- [.main messageArea] message ""
- }
- }
- }
- }
-
-
-
- registerObject {
- name .doors.menu.project_13
- type CustMenuSeparator
- objSpec {
- }
- }
-
- registerObject {
- name .doors.menu.synchronize
- type CustMenuPushButton
- objSpec {
- hintText "Synchronize with DOORS."
- label {Synchronize Current System}
- mnemonic Y
- accelerator Ctrl+Y
- activated {
- busy {
- #require drsprocs.tcl
- source [m4_path_name tcl drsprocs.tcl]
- set context [ClientContext::global]
- set sv [$context currentSystem]
- set pv [$context currentPhase]
- set dxlCommand ""
- initSynchronize
- applyToLevel $sv synObjects dxlCommand
- set dxlCommand ""
- applyToMultiple $sv $pv installRefs dxlCommand
- set dxlCommand ""
- applyRecursive $sv $pv install dxlCommand
- set dxlCommand ""
- applyToMultiple $sv $pv installClassFeatures dxlCommand
- endSynchronize
-
- }
- }
- operations "save check"
- }
- }
-
-
- registerObject {
- name .doors.menu.show
- type CustCascadeButton
- objSpec {
- label Show
- }
- }
-
- registerObject {
- name .doors.menu.show.menu
- type CustMenu
- }
-
- registerObject {
- name .doors.menu.show.menu.treeonly
- type CustMenuPushButton
- objSpec {
- hintText "Show the corresponding DOORS objects of this diagram only."
- label {Diagram Only}
- mnemonic D
- activated {
- busy {
- #require drsprocs.tcl
- source [m4_path_name tcl drsprocs.tcl]
- set cont [ClientContext::global]
- set currSys [$cont currentSystem]
- set selSet [.main fileVersion]
- set dxlCommand ""
- applyToMultiple $selSet $currSys filter dxlCommand Hide All
- applyToLevel $selSet filter dxlCommand Show Recursive
- $dxlCommand doorsFilterOn
- $dxlCommand execute currentModule
- [.main messageArea] message ""
- }
- }
- }
- }
-
- registerObject {
- name .doors.menu.show.menu.objectsonly
- type CustMenuPushButton
- objSpec {
- hintText "Show DOORS objects of this diagram only."
- label {Diagram Objects Only}
- mnemonic O
- activated {
- busy {
- #require drsprocs.tcl
- source [m4_path_name tcl drsprocs.tcl]
- set cont [ClientContext::global]
- set currSys [$cont currentSystem]
- set selSet [.main fileVersion]
- set dxlCommand ""
- applyToMultiple $selSet $currSys filter dxlCommand Hide All
- applyToLevel $selSet filter dxlCommand Show Objects
- $dxlCommand doorsFilterOn
- $dxlCommand execute currentModule
- [.main messageArea] message ""
- }
- }
- }
- }
-
-
-
-
-
- registerObject {
- name .doors.menu.show.menu.treeadd
- type CustMenuPushButton
- objSpec {
- hintText "Show the corresponding DOORS objects of this diagram too."
- label {Additional Diagram}
- mnemonic i
- activated {
- busy {
- #require drsprocs.tcl
- source [m4_path_name tcl drsprocs.tcl]
- set dxlCommand ""
- set selSet [.main fileVersion]
- applyToLevel $selSet filter dxlCommand Show Recursive
- $dxlCommand doorsFilterOn
- $dxlCommand execute currentModule
- [.main messageArea] message ""
- }
- }
- }
- }
-
- registerObject {
- name .doors.menu.show.menu.objadd
- type CustMenuPushButton
- objSpec {
- label {Additional Diagram Objects}
- mnemonic A
- activated {
- busy {
- #require drsprocs.tcl
- source [m4_path_name tcl drsprocs.tcl]
- set selSet [.main fileVersion]
- set dxlCommand ""
- applyToLevel $selSet filter dxlCommand Show Objects
- $dxlCommand doorsFilterOn
- $dxlCommand execute currentModule
- [.main messageArea] message ""
- }
- }
- }
- }
-
- registerObject {
- name .doors.menu.show.menu.classfeatures
- type CustMenuPushButton
- visible {0 0 0 1 1}
- objSpec {
- hintText "Show the corresponding class feature DOORS objects of this diagram too."
- label {Additional Class Features}
- mnemonic F
- activated {
- busy {
- #require drsprocs.tcl
- source [m4_path_name tcl drsprocs.tcl]
- set selSet [.main fileVersion]
- set dxlCommand ""
- applyToLevel $selSet filter dxlCommand Show ClassFeatures
- $dxlCommand doorsFilterOn
- $dxlCommand execute currentModule
- [.main messageArea] message ""
- }
- }
- }
- }
-
- registerObject {
- type CustMenuSeparator
- name .doors.menu.show.menu.separator1
- }
-
-
- registerObject {
- name .doors.menu.show.menu.save
- type CustMenuPushButton
- visible {0 0 0 1 1}
- objSpec {
- hintText "Save current view in DOORS."
- label {Save as DOORS View}
- mnemonic V
- activated {
- busy {
- EntryDialog new .main.doorsViewEntry \
- -title "Save DOORS View" \
- -message "Enter View Name" \
- -okPressed {
- require drsprocs.tcl
- require drsdxlcomm.tcl
- set dxlCommand [DrsDxlCommand new]
- $dxlCommand doorsViewSave [.main.doorsViewEntry entry]
- $dxlCommand execute
- [.main messageArea] message ""
- }
- .main.doorsViewEntry popUp
- }
- }
- }
- }
-