triggers.il #4

  • //
  • guest/
  • robert_yu/
  • perforce/
  • cdsp4/
  • release/
  • 2.2/
  • Skill/
  • Triggers/
  • triggers.il
  • View
  • Commits
  • Open Download .zip Download (2 KB)
;; Single Point Trigger insertion file


procedure(trigger_reg()


;; register all the triggers, just once, here


;; We need to deal with

;; CDSP4
;; Avanti
;; Site  specific

	;; get rid of any pre-defined crap

	;;printf("Unregistering triggers\n")
	;;deUnRegUserTriggers("maskLayout")


	;;printf("Binding trigger functions\n")
	bind_trigger_functions()

	;;printf("Registering triggers\n")

	deRegUserTriggers("maskLayout" 
                      'lay_app_trigger
		      'lay_menu_trigger
                      'lay_pit_trigger
		      )

)

procedure(bind_trigger_functions()

;; bind the functions     

bind_lay_app()
bind_lay_pit()

)


procedure(bind_lay_app()


let((procnames bindstring) 

    ;; define the application trigger names here
    
    ;; current contents
    ;; cdsp4 edit trigger integrity code

    procnames=list("CDS_P4EditTrigger(arglist)")


    ;; build the composite
    sprintf(bindstring "procedure(lay_app_trigger(arglist) ")
    foreach(el procnames
	       sprintf(bindstring "%s%s " bindstring el)
)
    sprintf(bindstring "%s)" bindstring)
    evalstring(bindstring)
    t
    )
)




procedure(lay_menu_trigger(args)

    ;; define the menu triggers here
    ;; just add items here in the list

    ;; current contents: the avanti pulldown 
    ;; add your own 

    list(avntHXLayPulldownMenu())
)




procedure(bind_lay_pit()

;; define the post install triggers here

let((procnames bindstring)

;; current contents

;; cdsp4 window trigger integrity code    

    procnames=list("CDS_P4WindowTrigger(arglist)")


    ;; build the composite
    sprintf(bindstring "procedure(lay_pit_trigger(arglist) ")
    foreach(el procnames
	       sprintf(bindstring "%s%s " bindstring el)
    )
    sprintf(bindstring "%s)" bindstring)
    evalstring(bindstring)
    t
    )
)
trigger_reg()
# Change User Description Committed
#4 4548 robert_yu restored.
#3 4547 robert_yu update
#2 4541 robert_yu avntHXLayoutPullDownMenu undefined
#1 4529 robert_yu p4 integrate from public/perforce/cdsp4/release/2.2/...
//guest/perforce_software/cdsp4/release/2.2/Skill/Triggers/triggers.il
#2 1681 Shiv Sikand cleanup
#1 1680 Shiv Sikand trigger support code