ToolOpDescriptor Class Reference

The ToolOpDescriptor class describes a Tool Selection operation. It contains pointers to the literal token describing the operation (used by the macro language, among other things) and pointers to some static member functions of the operation which allow dynamic creation of the operation. More...

#include <opdesc.h>

Inheritance diagram for ToolOpDescriptor:

OpDescriptor MessageHandler ListItem CCObject SimpleCCObject List of all members.

Public Member Functions

 ToolOpDescriptor (UINT32 toolID, UINT32 txID, CCRuntimeClass *Op, TCHAR *tok=NULL, pfnGetState gs=NULL, UINT32 hlpID=0, UINT32 bubID=0, UINT32 resID=0, UINT32 ctlID=0, BOOL ReceiveMessages=TRUE, BOOL Smart=FALSE, BOOL Clean=FALSE, BOOL fCheckable=FALSE)
 Construct a new ToolOpDescriptor object and link it into the list of all OpDescriptors.
void SetCurrentTool (BOOL State)
BOOL IsCurrentTool ()

Private Attributes

BOOL CurrentTool

Detailed Description

The ToolOpDescriptor class describes a Tool Selection operation. It contains pointers to the literal token describing the operation (used by the macro language, among other things) and pointers to some static member functions of the operation which allow dynamic creation of the operation.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
16/8/93
See also:
operation

Definition at line 748 of file opdesc.h.


Constructor & Destructor Documentation

ToolOpDescriptor::ToolOpDescriptor UINT32  toolID,
UINT32  txID,
CCRuntimeClass Op,
TCHAR tok = NULL,
pfnGetState  gs = NULL,
UINT32  hlpID = 0,
UINT32  bubID = 0,
UINT32  resID = 0,
UINT32  ctlID = 0,
BOOL  ReceiveMessages = TRUE,
BOOL  Smart = FALSE,
BOOL  Clean = FALSE,
BOOL  fCheckable = FALSE
 

Construct a new ToolOpDescriptor object and link it into the list of all OpDescriptors.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
16/8/93
Parameters:
[INPUTS] toolID - Identifier of tool in which resources can be found txID - Text description resource Identifier [ token - Operation Token string (???????????????????? eh Mario?????) ] tok - pointer to a static string that describe the operation ("token") gs - pointer to the GetState function in your operation hlpID - helpfile "jump" ID for this tool (?) bubID - bubble help string resource ID resID - resource ID associated with this ToolOp ctlID - control ID associated with this ToolOp
Returns:
Errors:

Definition at line 1635 of file opdesc.cpp.

01650  : OpDescriptor(toolID,  txID, Op, tok, gs, hlpID, bubID, resID, ctlID, ReceiveMessages,
01651                 Smart, Clean, fCheckable )
01652 {
01653     CurrentTool = FALSE;        
01654 }


Member Function Documentation

BOOL ToolOpDescriptor::IsCurrentTool  )  [inline]
 

Definition at line 777 of file opdesc.h.

00777 { return CurrentTool;}

void ToolOpDescriptor::SetCurrentTool BOOL  State  )  [inline]
 

Definition at line 776 of file opdesc.h.

00776 { CurrentTool = State; }


Member Data Documentation

BOOL ToolOpDescriptor::CurrentTool [private]
 

Definition at line 773 of file opdesc.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 04:02:00 2007 for Camelot by  doxygen 1.4.4