Share

ItemOption

C++

enum ItemOption {
  kItemOptionNone = 0x0,
  kItemOptionSupportsAutoImage = (0x1 << 0),
  kItemOptionSupportsUserImage = (0x1 << 1),
  kItemOptionMenuUpdateImage = (0x1 << 2),
  kItemOptionMenuSetImage = (0x1 << 3),
  kItemOptionMenuRemoveImage = (0x1 << 4)
};

File

AcTc.h

Members

Members Description
kItemOptionNone No option.
kItemOptionSupportsAutoImage This option is typically specified in the stock tool (as 'option' attribute in StockTool node) in the registration file. This flag should be specified if the tool auto-generates the image. If this flag is set and the flag kItemOptionSupportsUserImage is not set then the tool won't have a menu option to specify image.
kItemOptionSupportsUserImage This option is typically specified in the stock tool (as 'option' attribute in StockTool node) in the registration file. This flag is valid only with kItemOptionSupportsAutoImage. If these two flags are set then the tool will have a menu option to specify override image and delete an override image (if one is set).
kItemOptionMenuUpdateImage This flag is valid only if the tool auto-generates the image. If this flag is specified the tools of this stock tool type will have the 'Update image' menu option on the right click menu to specify an image.
kItemOptionMenuSetImage This option is typically specified in the stock tool (as 'option' attribute in StockTool node) in the registration file. This flag is valid only if the tool auto-generates the image. If this flag is specified the tools of this stock tool type will have 'Specify image' menu option on the right click menu to specify an image.
kItemOptionMenuRemoveImage This option is typically specified in the stock tool (as 'option' attribute in StockTool node) in the registration file. This flag is valid only if the tool auto-generates the image. If this flag is specified the tools of this stock tool type will have 'Remove specified image' menu option on the right click menu to remove the specified image.

Description

Enumerates item options.

Was this information helpful?