All Frameworks Class Hierarchy This Framework Indexes
DialogEngine Class CATCmdSwitchAgent
Usage: you must use this class as is. You should never derive it.
public class CATCmdSwitchAgent
Class which defines an acquisition agent visualizable in a toolbar.
Role: This agent is displayed in a toolbar. Each valuation (switch) is represented by
an icon. The count of switch represents the count of possible value for the agent.
Use the CATICmdSwitchAgent interface to handle it.
To see the agent in the toolbar:
In a toolbar you must have a starter with a
CATCommandHeaderWithSDOForAgent command header. In the constructor of this header you have set the IID of
the
CATIAfrDialogForAgent interface. CATCmdSwitchAgent implements this interface.
Constructor and Destructor Index
- o
CATCmdSwitchAgent(CATString&,CATString&,CATDlgEngBehavior,CATCommandMode)
- Constructs the dialog agent.
Constructor and Destructor
o CATCmdSwitchAgent
| public CATCmdSwitchAgent( | const | iName, |
| const | iAgentResID, |
| | iBehavior | =NULL, |
| | iStatus | =CATCommandModeUndefined) |
-
Constructs the dialog agent.
- Parameters:
-
- iName
- The name of the command
- iAgentResID
- The resource identificator of the agent. Refer to the
CATICmdSwitchAgent.AddSwitch method to get explanations about this parameter.
- iBehavior
- See
CATDialogAgent.CATDialogAgent.
- iStatus
- See
CATCommand.
This object is included in the file: CATCmdSwitchAgent.h
If needed, your Imakefile.mk should include the module: CATDialogEngine