Class CMPanelTool extends CMPanel
CMPanelTool
ToolClassName |
ToolEditClassName |
CMTYPE_STRING |
|
CM_Tool |
|
ToolEditID |
ToolEditID |
CMTYPE_STRING |
|
CM_ToolEdit |
|
ToolInfoID |
ToolInfoID |
CMTYPE_STRING |
|
CM_ToolInfo |
|
ToolPanID |
ToolPanID |
CMTYPE_STRING |
|
CM_ToolPan |
|
ZoomInButtonID |
ZoomInButtonID |
CMTYPE_STRING |
|
CMZoomIn_0 |
|
HomeButtonID |
HomeButtonID |
CMTYPE_STRING |
|
CMHome_0 |
|
ZoomOutButtonID |
ZoomOutButtonID |
CMTYPE_STRING |
|
CMZoomOut_0 |
|
Object Functions
Returns | Function | Throws |
|
AddTool(ToolID, UnselectedFilePath, SelectedFilePath, ToolTip, TheFunction, AdditionalInfo) |
|
|
AddToolWithHandler(ToolID, UnselectedFilePath, SelectedFilePath, ToolTip, TheFunction, AdditionalInfo) |
|
|
RemoveTool(ToolID) |
|
|
SelectTool() |
|
Object Functions
AddTool(ToolID, UnselectedFilePath, SelectedFilePath, ToolTip, TheFunction, AdditionalInfo)
Add a tool to the panel.
Parameters:
ToolID - ID which will be used to create the element
UnselectedFilePath - file path for the image of the tool when unselected
SelectedFilePath - file path for the tool icon when selected
ToolTip - text to display as the tool tip or undefined
TheFunction - Function to call when the tool button is pressed (for action buttons)
AdditionalInfo - Information to pass to the function
AddToolWithHandler(ToolID, UnselectedFilePath, SelectedFilePath, ToolTip, TheFunction, AdditionalInfo)
Add a tool to the panel.
Parameters:
ToolID - ID which will be used to create the element
UnselectedFilePath - file path for the image of the tool when unselected
SelectedFilePath - file path for the tool icon when selected
ToolTip - text to display as the tool tip or undefined
TheFunction - Function to call when the tool button is pressed (for action buttons)
AdditionalInfo - Information to pass to the function
RemoveTool(ToolID)
Removes the specified tool from the panel
Parameters:
ToolID - the DOM element id for the tool.
SelectTool()
Select a specific tool based on its ID and unselect the other tools