Adding menus to Artist, waveform and Viruoso window with skill

Adding menus to Artist, waveform and Viruoso window with skill

Post by Matthias Loche » Fri, 01 Dec 2000 04:00:00



Hello

I would like to add menus with skill to

Artist window,
Waveform Window
Virtuoso Window and
Schematic Window

how can i do that?
I don't like to define it by the menus directory
I know how to generate menus for a given window, but not that each
window of these applications get the menus when they are opening.

Isn't there something with installPostAppTrigger(l_args)?
But what must the l_args be for the mentioned tools?

Regards

Matthias

--
Matthias Locher

 
 
 

Adding menus to Artist, waveform and Viruoso window with skill

Post by Alan Wolfram Glase » Sat, 02 Dec 2000 04:00:00


: I would like to add menus with skill to
<snip>
: Isn't there something with installPostAppTrigger(l_args)?
: But what must the l_args be for the mentioned tools?

Hi Matthias,

We do some of this in the NCSU CDK
(http://www.ece.ncsu.edu/cadence/CDK.html). In particular, we set up our
own menus in Virtuoso and Composer, and modify some of the existing
Virtuoso menu entries.

We do this using user triggers, e.g.

deRegUserTriggers( "maskLayout" 'NCSU_LayoutAppTrigger
                                'NCSU_MenuTrigger
                                'NCSU_LayoutPITrigger )

deRegUserTriggers( "schematic"  nil
                                'NCSU_MenuTrigger )

The routine you're probably most interested in is
NCSU_LayoutPITrigger(); it modifies some of the menu entries in the
Virtuoso "Verify" and "Create" menus:

procedure( NCSU_LayoutPITrigger( args )

    ; modify "Create->Label..." to bring up our form
    hiSetMenuItemCallback( leCreateMenu
                           'LabelItem
                           "doCreateLabels()" )

    ; modify "Verify->LVS..." to bring up our form
    hiSetMenuItemCallback( leVerifyMenu
                           'LVSItem
                           "setLVSForm()" )

    ; modify "Verify->Extract..." so we can set default behavior
    hiSetMenuItemCallback( leVerifyMenu
                           'ExtractItem
                           "setExtForm()" )

    ; modify "Verify->DRC..." so we can set default behavior
    hiSetMenuItemCallback( leVerifyMenu
                           'DRCItem
                           "setDRCForm()" )
)

Note that the above code uses menu and item names from IC4.4.5; 4.4.2
and earlier used different names.

I'll be happy to send you a tarball with all of our menu-modification
code if you'd like.

Hope this helps,

--
Alan Glaser                         "It's not a competition,
ECE Dept.                            it's just a mint..." - K
North Carolina State University
PGP fingerprint: 14 C8 D6 30 D0 A6 03 6F  23 F3 9F 1D 61 43 EE 8C