Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
virtuoso schematic composer_5.0.pdf
Скачиваний:
97
Добавлен:
05.06.2015
Размер:
3.8 Mб
Скачать

Virtuoso Schematic Composer User Guide

Customizing the Schematic Composer

You can also customize menus for different projects or work areas. Copy the customization

files to

your_install_dir/local/workOrProjectDir/menus/{schView,schematic}.menus

For personal customization, copy the files to

~/menus/{schView,schematic}.menus

The definitions in the menus files are prefixed withschc; for example, schcSaveItem.

Change the contents of the definitions rather than change the variables holding the definitions because some of the schematics menu code processes specific definitions.

Customizing Object-Sensitive Menus

You can customize object-sensitive menus (OSM) in the following ways:

Reassigning the OSM to a different mouse button

The default bindkey file assigns OSMs to the middle mouse button.

Registering a custom menu with the pop-up manager

Issuing a Cadence SKILL command to register a menuHandle for a specific category

This procedure customizes which menu pops up when you place the cursor over specific objects.

You can type the SKILL functions in the Command Interpreter Window (CIW), in which case they remain active for the session only. Or you can type the SKILL functions in your

.cdsinit file, in which case they become active whenever you start the schematic composer.

Example of Customizing the Instance OSM

Use the following procedure to customize an Instance OSM to display these commands:

Stretch, Copy, Edit Properties, Descend Read, and Fit.

1.Define each command in the new menu.

;newMenuItem = hiCreateMenuItem(

;define new variable

;?name ’newMenuItem

;use same variable name

;?itemText "Menu String"

October 2002

487

Product Version 5.0

Virtuoso Schematic Composer User Guide

Customizing the Schematic Composer

;text displayed on menu

;?callback "MenuCommand()"

;skill command to be executed

;)

newPopUpStretch = hiCreateMenuItem( ?name ’newPopUpStretch ?itemText "Stretch"

?callback "schHiStretch()"

)

newPopUpCopy = hiCreateMenuItem( ?name ’newPopUpCopy ?itemText "Copy"

?callback "schHiCopy()"

)

newPopUpEditInstance = hiCreateMenuItem( ?name ’newPopUpEditInstance ?itemText "EditInstance"

?callback "schHiObjectProperty()"

)

newPopUpDescendRead = hiCreateMenuItem( ?name ’newPopUpDescendRead ?itemText "DescendRead"

?callback "schHiDescendRead()"

)

newPopUpFitPlus = hiCreateMenuItem(

?name

’newPopUpFitPlus

?itemText

"Fit"

?callback

"hiZoomAbsoluteScale(getCurrentWindow() 0.9)"

)

 

2.Put the following menu items into a single menu.

;newMenu = hiCreateMenu(

;create new menu ’newMenu

;use same variable name "Title String"

;text displayed at top edge of menu

;list(

;

menuItem1

: list of menus as

;menuItem2

;defined by . . .

;hiCreateMenuItem

;)

October 2002

488

Product Version 5.0

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]