#include <cmdctrl.h>
Inheritance diagram for CmdControl:
Public Member Functions | |
CmdControl () | |
CmdControl (OpDescriptor *Owner) | |
Constructor for the CmdControl Class. | |
virtual BOOL | IsEnabled () |
Identifies if the current CmdControl is available. This function is used when updating the state of a CmdControl. | |
virtual void | PerformAction () |
Performs the action assoicated with a CmdControl. | |
virtual BOOL | UpdateControlState () |
Obtains the state of a CmdControl. | |
virtual String_256 * | GetWhyDisabled () |
Gets the reason why a CmdControl has been disabled. | |
virtual OpDescriptor * | GetOpDescriptor () const |
Protected Attributes | |
UINT32 | ControlId |
String_256 | WhyDisabled |
OpState | ControlState |
OpDescriptor * | OwnerOperation |
Private Member Functions | |
CC_DECLARE_MEMDUMP (CmdControl) |
Definition at line 136 of file cmdctrl.h.
|
Definition at line 140 of file cmdctrl.h.
|
|
Constructor for the CmdControl Class.
Definition at line 128 of file cmdctrl.cpp. 00129 { 00130 ENSURE( Owner, "No owner for CmdControl" ); 00131 00132 ControlId = 0; 00133 OwnerOperation = Owner; 00134 ControlState = OpState(FALSE, TRUE); 00135 00136 WhyDisabled.Empty(); 00137 }
|
|
|
|
Definition at line 232 of file cmdctrl.cpp. 00233 { 00234 return OwnerOperation; 00235 }
|
|
Gets the reason why a CmdControl has been disabled.
Definition at line 176 of file cmdctrl.cpp. 00177 { 00178 return &WhyDisabled; 00179 }
|
|
Identifies if the current CmdControl is available. This function is used when updating the state of a CmdControl.
Definition at line 156 of file cmdctrl.cpp. 00157 { 00158 return (!ControlState.Greyed); 00159 }
|
|
Performs the action assoicated with a CmdControl.
Reimplemented in MenuItem. Definition at line 195 of file cmdctrl.cpp. 00196 { 00197 ENSURE(OwnerOperation, "Cannot Perform Action with NULL Owner"); 00198 00199 OwnerOperation->Invoke(); 00200 }
|
|
Obtains the state of a CmdControl.
Definition at line 217 of file cmdctrl.cpp. 00218 { 00219 return TRUE; 00220 }
|
|
|
|
|
|
|
|
|