Справочник Пользователя для ITT Rule IDL Version 7.0

Скачать
Страница из 430
Chapter 7: Creating an Operation
183
iTool Developer’s Guide
Registering an Operation
ICON
A string value giving the name of an icon to be associated with this object. Typically, 
this property is the name of a bitmap file to be used when displaying the object in a 
tree view. See 
 on page 44 for details on where bitmap icon files are 
located.
IDENTIFIER
A string that will be used as the identifier of the object. Identifier strings specify 
where within an iTool’s object hierarchy an object is located; this, in turn, may affect 
whether and where the object is revealed in the iTool’s graphical user interface. For 
example, to display a menu item for an operation named 
'MyOperation'
 in the 
iTool Operations menu, you would specify the identifier string 
'Operations/MyOperation'
. See 
Developer’s Guide) for details about how identifiers are named.
If this property is not specified, then the value of the OperationName argument is 
used as the identifier. 
REVERSIBLE_OPERATION
A boolean value that indicates whether the operation is reversible. When an operation 
is reversible, it can be undone by applying an operation rather than restoring a stored 
value. Rotation by a specified angle is an example of an operation that is reversible, 
since applying another rotation by the same angle in the opposite direction returns the 
visualization to its original state. Individual operations should use the value of this 
property to determine how the operation should be undone.
SHOW_EXECUTION_UI
A boolean value that indicates whether the operation should display a user interface 
element such as a dialog when the operation is executed.
TYPES
A string or an array of strings indicating the types of data to which the operation can 
be applied. iTools data types are described in 
. Set this 
property to a null string (
''
) to specify that the operation can be applied to all types 
of data.