Public Member Functions | |
Constructor / Destructor | |
| CP_CommandStatus () | |
| Constructor. | |
| CP_CommandStatus (const CP_CommandStatus &inOutStatus) | |
Enabled | |
| bool | IsEnabled () |
| void | SetIsEnabled (bool inIsEnabled) |
operators | |
| CP_CommandStatus & | operator= (const CP_CommandStatus &inOutStatus) |
Text | |
| bool | HasText () |
| void | SetText (const CP_String &inText) |
| CP_String | GetText () const |
Private Attributes | |
| bool | fIsEnabled |
| CP_String | fItemText |
|
|
Constructor.
|
|
|
|
|
|
Returns true if the command should be enabled.
|
|
|
Sets the enabled status for this command.
|
|
|
|
|
|
Returns true if there is any text associated with this command.
|
|
|
Sets the text associated with this command. This only needs to be called if the command alters a menu, such as undo / redo, otherwise the text is not used.
|
|
|
Returns the text associated with this command. This is used for commands, such as undo / redo that alter the text of a menu.
|
|
|
|
|
|
Flag to indicate if the command is enabled. |
1.4.0