Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CP_CommandNos.h File Reference


Namespaces

namespace  CP_CommandNos

Functions

CP_CommandNo CP_HICommandToCP_CommandNo (::HICommand inHICommand)
::HICommand CP_CP_CommandNoToHICommand (CP_CommandNo inCP_CommandNo)

Variables

CPLAT_Begin_Namespace_CPLAT
const CP_CommandNo 
CP_CMD_NoCommand = 0
const CP_CommandNo CP_CMD_New = 1
const CP_CommandNo CP_CMD_Open = 2
const CP_CommandNo CP_CMD_Close = 3
const CP_CommandNo CP_CMD_Save = 4
const CP_CommandNo CP_CMD_SaveAs = 5
const CP_CommandNo CP_CMD_Revert = 6
const CP_CommandNo CP_CMD_PageSetup = 7
const CP_CommandNo CP_CMD_Print = 8
const CP_CommandNo CP_CMD_Quit = 9
const CP_CommandNo CP_CMD_Undo = 10
const CP_CommandNo CP_CMD_Cut = 11
const CP_CommandNo CP_CMD_Copy = 12
const CP_CommandNo CP_CMD_Paste = 13
const CP_CommandNo CP_CMD_Clear = 14
const CP_CommandNo CP_CMD_SelectAll = 15
const CP_CommandNo CP_CMD_Redo = 16
const CP_CommandNo CP_CMD_Preferences = 17
const CP_CommandNo CP_CMD_About = 18
const CP_CommandNo CP_CMD_DebugMenu_ShowMessages = 900
const CP_CommandNo CP_CMD_CommandOK = CP_FOUR_CHAR_CODE('ok ')
const CP_CommandNo CP_CMD_CommandCancel = CP_FOUR_CHAR_CODE('not!')

Function Documentation

CPLAT_Begin_Namespace_CPLAT CP_CommandNo CP_CommandNos::CP_HICommandToCP_CommandNo ::HICommand  inHICommand  ) 
 

Converts the passed in MacOS HICommand to the equivalent CP_CommandNo for predefined CPLAT commands. If the passed in HICommand is not one of our known commands, then the commandID of the HICommand is returned as a CP_CommandNo.

Parameters:
inHICommand The HICommand to be checked and converted.
Exceptions:
none 
Returns:
CP_CommandNo The result of the conversion.

HICommand CP_CommandNos::CP_CP_CommandNoToHICommand CP_CommandNo  inCP_CommandNo  ) 
 

Converts the passed in CPLAT CP_CommandNo to the equivalent HICommand, if there is a corresponding HICommand. Otherwise if there is no corresponding HICommand, then the commandID is set to the passed in CP_CommandNo.

Parameters:
inCP_CommandNO The CPLAT CP_CommandNo to convert.
Exceptions:
none 
Returns:
HICommand The result of the conversion.


Variable Documentation

CPLAT_Begin_Namespace_CPLAT const CP_CommandNo CP_CMD_NoCommand = 0
 

Definitions for commands numbers used in the CPLAT framework.

const CP_CommandNo CP_CMD_New = 1
 

const CP_CommandNo CP_CMD_Open = 2
 

const CP_CommandNo CP_CMD_Close = 3
 

const CP_CommandNo CP_CMD_Save = 4
 

const CP_CommandNo CP_CMD_SaveAs = 5
 

const CP_CommandNo CP_CMD_Revert = 6
 

const CP_CommandNo CP_CMD_PageSetup = 7
 

const CP_CommandNo CP_CMD_Print = 8
 

const CP_CommandNo CP_CMD_Quit = 9
 

const CP_CommandNo CP_CMD_Undo = 10
 

const CP_CommandNo CP_CMD_Cut = 11
 

const CP_CommandNo CP_CMD_Copy = 12
 

const CP_CommandNo CP_CMD_Paste = 13
 

const CP_CommandNo CP_CMD_Clear = 14
 

const CP_CommandNo CP_CMD_SelectAll = 15
 

const CP_CommandNo CP_CMD_Redo = 16
 

const CP_CommandNo CP_CMD_Preferences = 17
 

const CP_CommandNo CP_CMD_About = 18
 

const CP_CommandNo CP_CMD_DebugMenu_ShowMessages = 900
 

const CP_CommandNo CP_CMD_CommandOK = CP_FOUR_CHAR_CODE('ok ')
 

const CP_CommandNo CP_CMD_CommandCancel = CP_FOUR_CHAR_CODE('not!')
 


Generated on Tue Sep 20 20:21:26 2005 for CPLAT_MacOS by  doxygen 1.4.0